mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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
|
||||
}
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue