diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-09-21 10:11:04 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-09-22 11:20:27 +0000 |
commit | 188b5e2a02926b6f1b43793f0bc1f6435bb949c4 (patch) | |
tree | 35d358ba9b0757f3065963af5cc9b60c31da0b1f /src/imports/controls/SpinBox.qml | |
parent | 72d9c1bfb7f814163880386584cc6edde9158713 (diff) |
Default: use palette.text
Make editors and delegates use the "text" color role from palettes.
This color role is normally used as a foreground color for the "base"
background color.
Task-number: QTBUG-63331
Change-Id: Ic08463f54c1b04a4eccf791a576ae792f75bf89b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/SpinBox.qml')
-rw-r--r-- | src/imports/controls/SpinBox.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml index 5d800c77..33e0c51e 100644 --- a/src/imports/controls/SpinBox.qml +++ b/src/imports/controls/SpinBox.qml @@ -65,10 +65,9 @@ T.SpinBox { contentItem: TextInput { z: 2 text: control.textFromValue(control.value, control.locale) - opacity: control.enabled ? 1 : 0.3 font: control.font - color: Default.textColor + color: control.palette.text selectionColor: Default.focusColor selectedTextColor: Default.textLightColor horizontalAlignment: Qt.AlignHCenter |