From 4335acb19fe1cc246762198609ef0d1bb1bfbd6f Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 11 Nov 2019 14:27:31 +0100 Subject: Fix text jitter for the layer slider CURA-6854 --- plugins/SimulationView/SimulationSliderLabel.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/SimulationView') 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 { } } -- cgit v1.2.3