diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-09-10 16:15:01 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-09-27 11:39:47 +0000 |
commit | fb6763fddfce329924ccb3678fbdf7875978a7ca (patch) | |
tree | 9a27d6b9c9ccbb5f954bb57c55c655fd3c59eedb /examples/quickcontrols2/wearable/qml/Style/Switch.qml | |
parent | 8a87193078d7a51c5a049e4698c44b0af43edbb3 (diff) |
wearable: add a dark theme with a runtime switch on the Settings page
Change-Id: Iaa205c19aa413de7a5537f17f74d969547d5e558
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/quickcontrols2/wearable/qml/Style/Switch.qml')
-rw-r--r-- | examples/quickcontrols2/wearable/qml/Style/Switch.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Style/Switch.qml b/examples/quickcontrols2/wearable/qml/Style/Switch.qml index 54295aff..6f663920 100644 --- a/examples/quickcontrols2/wearable/qml/Style/Switch.qml +++ b/examples/quickcontrols2/wearable/qml/Style/Switch.qml @@ -65,7 +65,7 @@ T.Switch { height: 26 radius: 13 - color: control.down ? UIStyle.colorQtGray6 : UIStyle.colorQtGray10 + color: control.down ? UIStyle.themeColorQtGray6 : UIStyle.themeColorQtGray10 border.color: !control.checked ? "#999999" : (control.down ? UIStyle.colorQtAuxGreen2 : UIStyle.colorQtAuxGreen1) @@ -80,7 +80,7 @@ T.Switch { radius: 13 color: control.checked ? UIStyle.colorQtAuxGreen2 : "#E6173D" border.color: control.checked ? UIStyle.colorQtAuxGreen2 - : UIStyle.colorQtGray6 + : UIStyle.themeColorQtGray6 } } |