diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-11-11 16:27:31 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-11-11 16:27:31 +0300 |
commit | 4335acb19fe1cc246762198609ef0d1bb1bfbd6f (patch) | |
tree | 8632de6c3c7c802560f03e66b0423229c647e552 /plugins/SimulationView | |
parent | 3e50cf5253106c77e073fe725289198768d1f05a (diff) |
Fix text jitter for the layer slider
CURA-6854
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationSliderLabel.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/SimulationView/SimulationSliderLabel.qml b/plugins/SimulationView/SimulationSliderLabel.qml index a241a50145..41eea7aa9e 100644 --- a/plugins/SimulationView/SimulationSliderLabel.qml +++ b/plugins/SimulationView/SimulationSliderLabel.qml @@ -46,6 +46,7 @@ UM.PointingRectangle { anchors { verticalCenter: parent.verticalCenter horizontalCenter: parent.horizontalCenter + alignWhenCentered: false } width: ((maximumValue + 1).toString().length + 1) * 8 * screenScaleFactor @@ -57,8 +58,9 @@ UM.PointingRectangle { Keys.onDownPressed: sliderLabelRoot.setValue(sliderLabelRoot.value - ((event.modifiers & Qt.ShiftModifier) ? 10 : 1)) style: TextFieldStyle { - textColor: UM.Theme.getColor("setting_control_text") - font: UM.Theme.getFont("small") + textColor: UM.Theme.getColor("text") + font: UM.Theme.getFont("default") + renderType: Text.NativeRendering background: Item { } } |