aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-09-10 16:15:01 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-09-27 11:39:47 +0000
commitfb6763fddfce329924ccb3678fbdf7875978a7ca (patch)
tree9a27d6b9c9ccbb5f954bb57c55c655fd3c59eedb /examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
parent8a87193078d7a51c5a049e4698c44b0af43edbb3 (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/Fitness/FitnessPage.qml')
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml b/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
index d4db0ca0..1f018e2e 100644
--- a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
+++ b/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
@@ -72,18 +72,18 @@ Item {
text: qsTr("Steps: ") + FitnessData.getSteps()
font.italic: true
font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Image {
anchors.horizontalCenter: parent.horizontalCenter
- source: "images/man-walking.png"
+ source: UIStyle.themeImagePath("images/man-walking")
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Calories: ") + FitnessData.getCalories()
font.pixelSize: UIStyle.fontSizeS
font.italic: true
- color: UIStyle.colorQtGray3
+ color: UIStyle.themeColorQtGray3
}
}
}
@@ -102,11 +102,11 @@ Item {
+ qsTr(" miles")
font.italic: true
font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.colorQtGray1
+ color: UIStyle.themeColorQtGray1
}
Image {
anchors.horizontalCenter: parent.horizontalCenter
- source: "images/man-running.png"
+ source: UIStyle.themeImagePath("images/man-running")
}
Text {
anchors.horizontalCenter: parent.horizontalCenter
@@ -115,7 +115,7 @@ Item {
+ qsTr(" mins")
font.pixelSize: UIStyle.fontSizeS
font.italic: true
- color: UIStyle.colorQtGray3
+ color: UIStyle.themeColorQtGray3
}
}
}