mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Refactor: simplify SimulationSliderLabel width
This commit is contained in:
parent
f4b9c0fdd4
commit
27b4e9a063
1 changed files with 2 additions and 2 deletions
|
@ -55,6 +55,7 @@ UM.PointingRectangle {
|
||||||
alignWhenCentered: false
|
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
|
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
|
||||||
|
@ -66,8 +67,7 @@ UM.PointingRectangle {
|
||||||
textColor: UM.Theme.getColor("text")
|
textColor: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
// valueLabel width
|
background: Item { }
|
||||||
background: Item { implicitWidth: maxValueMetrics.width + UM.Theme.getSize("default_margin").width }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue