summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Base/ButtonStyle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Styles/Base/ButtonStyle.qml')
-rw-r--r--src/controls/Styles/Base/ButtonStyle.qml8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/controls/Styles/Base/ButtonStyle.qml b/src/controls/Styles/Base/ButtonStyle.qml
index d0299a55..566f93e5 100644
--- a/src/controls/Styles/Base/ButtonStyle.qml
+++ b/src/controls/Styles/Base/ButtonStyle.qml
@@ -79,12 +79,6 @@ Style {
/*! The \l {QtQuick.Controls::}{Button} attached to this style. */
readonly property Button control: __control
- /*! \internal */
- property var __syspal: SystemPalette {
- colorGroup: control.enabled ?
- SystemPalette.Active : SystemPalette.Disabled
- }
-
/*! The padding between the background and the label components. */
padding {
top: 4
@@ -150,7 +144,7 @@ Style {
renderType: Text.NativeRendering
anchors.verticalCenter: parent.verticalCenter
text: control.text
- color: __syspal.buttonText
+ color: SystemPaletteSingleton.buttonText(control.enabled)
}
}
}