From d40e91cc081751c60957b731a335fdda391d0abb Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Tue, 22 Feb 2022 10:37:13 +0100 Subject: [PATCH] Remove unneccesary opacity assignment. Change padding to styled width CURA-8688 --- resources/qml/SpinBox.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/qml/SpinBox.qml b/resources/qml/SpinBox.qml index c3e6e4fd50..b93a569e99 100644 --- a/resources/qml/SpinBox.qml +++ b/resources/qml/SpinBox.qml @@ -43,7 +43,7 @@ Item editable: base.editable topPadding: 0 bottomPadding: 0 - padding: UM.Theme.getSize("spinbox").height / 4 + padding: UM.Theme.getSize("narrow_margin").width // The stepSize of the SpinBox is intentionally set to be always `1` // As SpinBoxes can only contain integer values the `base.stepSize` is concidered the precision/resolution @@ -71,12 +71,7 @@ Item base.value = value * base.stepSize; } - background: Item - { - // Makes space between buttons and textfield transparent - opacity: 0 - } - + background: Item {} //TextField should be swapped with UM.TextField when it is restyled contentItem: TextField