aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/Dial.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-09-08 10:29:57 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-09-12 08:27:37 +0000
commit2bdf059e6e62fda8e1df108f0a68651e546b0f67 (patch)
treef7b3bdf8a5b61814b827217bf3ad66e8879cd670 /src/imports/controls/Dial.qml
parent86180aed5008779b1b94731d9b4c6b1fdac8f3d3 (diff)
Default: consolidate style colors into a singleton
This reduces all of the duplicate literals that we currently have. Task-number: QTBUG-55867 Change-Id: I28f1f646d25f2f6578d52b4ba96f8f0f3ad6706b Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/Dial.qml')
-rw-r--r--src/imports/controls/Dial.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/Dial.qml b/src/imports/controls/Dial.qml
index 87c44b38..cc202772 100644
--- a/src/imports/controls/Dial.qml
+++ b/src/imports/controls/Dial.qml
@@ -49,7 +49,7 @@ T.Dial {
background: DialRing {
width: control.availableWidth
height: control.availableHeight
- color: control.visualFocus ? "#0066ff" : "#353637"
+ color: control.visualFocus ? Default.focusColor : Default.frameDarkColor
progress: control.position
opacity: control.enabled ? 1 : 0.3
}
@@ -62,7 +62,7 @@ T.Dial {
y: background.y + background.height / 2 - handle.height / 2
width: 14
height: 10
- source: "image://default/dial-indicator/" + (control.visualFocus ? "#0066ff" : "#353637")
+ source: "image://default/dial-indicator/" + (control.visualFocus ? Default.focusColor : Default.textColor)
sourceSize.width: width
sourceSize.height: height
antialiasing: true