aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAlexandra Betouni <ABetouni@luxoft.com>2019-10-23 18:23:47 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2020-01-13 14:00:02 +0000
commit40ec240c338780a661bb43486b2e9b4598ef6886 (patch)
tree0b1bbac22288d368e5def2f6a5b22205f781bbf4 /apps
parent61b8e68fa3a9cfbf86d94b3aebcd096779fc4ed1 (diff)
[instrument cluster] Adding dark theme assets
Added dial and background assets for dark theme Change-Id: I52bdd241f72853b65d972b2138df3028e1038201 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/com.theqtcompany.cluster/panels/DialFramePanel.qml13
-rw-r--r--apps/com.theqtcompany.cluster/panels/DialSpeedPanel.qml2
2 files changed, 8 insertions, 7 deletions
diff --git a/apps/com.theqtcompany.cluster/panels/DialFramePanel.qml b/apps/com.theqtcompany.cluster/panels/DialFramePanel.qml
index 391caf0b..d50bd5f8 100644
--- a/apps/com.theqtcompany.cluster/panels/DialFramePanel.qml
+++ b/apps/com.theqtcompany.cluster/panels/DialFramePanel.qml
@@ -88,7 +88,8 @@ Item {
PropertyChanges { target: outBg; opacity: 1; width: Sizes.dp(520) }
PropertyChanges { target: outSmallBg; opacity: 0; width: Sizes.dp(560) }
PropertyChanges { target: outEdge; opacity: 1; width: Sizes.dp(520) }
- PropertyChanges { target: outShadow; opacity: 1; width: Sizes.dp(560) }
+ //TODO breaks dark graphic size, either replace asset or delete this
+ //PropertyChanges { target: outShadow; opacity: 1; width: Sizes.dp(580) }
},
State {
name: "navi"
@@ -203,7 +204,7 @@ Item {
height: width
anchors.centerIn: parent
visible: true
- source: Utils.localAsset("dial-outer-circle-bg")
+ source: Utils.localAsset("dial-outer-circle-bg", Style.theme)
}
Image {
@@ -213,17 +214,17 @@ Item {
anchors.centerIn: parent
z: 1
visible: true
- source: Utils.localAsset("dial-outer-circle-edge")
+ source: Utils.localAsset("dial-outer-circle-edge", Style.theme)
}
Image {
id: outShadow
- width: Sizes.dp(560)
+ width: Sizes.dp(sourceSize.width)
height: width
anchors.centerIn: parent
z: 1
visible: true
- source: Utils.localAsset("dial-outer-circle-shadow")
+ source: Utils.localAsset("dial-outer-circle-shadow", Style.theme)
}
Shape {
@@ -334,7 +335,7 @@ Item {
height: width
anchors.centerIn: parent
visible: true
- source: Utils.localAsset("dial-inner-circle")
+ source: Utils.localAsset("dial-inner-circle", Style.theme)
}
Image {
diff --git a/apps/com.theqtcompany.cluster/panels/DialSpeedPanel.qml b/apps/com.theqtcompany.cluster/panels/DialSpeedPanel.qml
index 75b3998a..f81d13ab 100644
--- a/apps/com.theqtcompany.cluster/panels/DialSpeedPanel.qml
+++ b/apps/com.theqtcompany.cluster/panels/DialSpeedPanel.qml
@@ -322,7 +322,7 @@ Item {
width: Sizes.dp(330)
height: width
anchors.centerIn: parent
- source: Utils.localAsset("dial-cruise-circle")
+ source: Utils.localAsset("dial-cruise-circle", Style.theme)
}
}