diff options
Diffstat (limited to 'src/controls/Styles/Desktop/SpinBoxStyle.qml')
-rw-r--r-- | src/controls/Styles/Desktop/SpinBoxStyle.qml | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/controls/Styles/Desktop/SpinBoxStyle.qml b/src/controls/Styles/Desktop/SpinBoxStyle.qml index da3beeff..d7d32916 100644 --- a/src/controls/Styles/Desktop/SpinBoxStyle.qml +++ b/src/controls/Styles/Desktop/SpinBoxStyle.qml @@ -44,11 +44,6 @@ import QtQuick.Controls.Private 1.0 Style { readonly property SpinBox control: __control - property var __syspal: SystemPalette { - colorGroup: control.enabled ? - SystemPalette.Active : SystemPalette.Disabled - } - padding { top: control.__panel ? control.__panel.topPadding + (styleitem.style === "mac" ? 2 : 0) : 0 left: control.__panel ? control.__panel.leftPadding : 0 @@ -70,10 +65,10 @@ Style { property alias font: styleitem.font - property color foregroundColor: __syspal.text - property color backgroundColor: __syspal.base - property color selectionColor: __syspal.highlight - property color selectedTextColor: __syspal.highlightedText + property color foregroundColor: SystemPaletteSingleton.text(control.enabled) + property color backgroundColor: SystemPaletteSingleton.base(control.enabled) + property color selectionColor: SystemPaletteSingleton.highlight(control.enabled) + property color selectedTextColor: SystemPaletteSingleton.highlightedText(control.enabled) property int topPadding: edit.anchors.topMargin property int leftPadding: 3 + edit.anchors.leftMargin |