mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:19:04 +08:00
Refactor: simplify SimulationSliderLabel width
This commit is contained in:
parent
f4b9c0fdd4
commit
27b4e9a063
@ -55,6 +55,7 @@ UM.PointingRectangle {
|
||||
alignWhenCentered: false
|
||||
}
|
||||
|
||||
width: maxValueMetrics.width + UM.Theme.getSize("default_margin").width
|
||||
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
|
||||
horizontalAlignment: TextInput.AlignHCenter
|
||||
|
||||
@ -66,8 +67,7 @@ UM.PointingRectangle {
|
||||
textColor: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("default")
|
||||
renderType: Text.NativeRendering
|
||||
// valueLabel width
|
||||
background: Item { implicitWidth: maxValueMetrics.width + UM.Theme.getSize("default_margin").width }
|
||||
background: Item { }
|
||||
}
|
||||
|
||||
onEditingFinished: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user