aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNedim Hadzic <nedim.hadzic@pelagicore.com>2016-12-08 18:14:14 +0100
committerNedim Hadzic <nedim.hadzic@pelagicore.com>2016-12-11 16:42:52 +0000
commitd98753dc5964c6806657572649c69d6b1bd9459e (patch)
tree87e48c6143850c8724a283aae9d3b24f6a696412
parentfd18dcbb9f53eb3948da890704530007327c476f (diff)
Set fixed right dial icon size
Using the scaling was causing image not to look natural and could cover other parts of the cluster. Updated dial animation parameters. The old ones were slow. Change-Id: I6d7c4f6f7577b1700f511a110d89ae75898defa7 Reviewed-by: Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>
-rw-r--r--imports/system/models/VehicleModel.qml4
-rw-r--r--sysui/Cluster/RightDial.qml9
2 files changed, 8 insertions, 5 deletions
diff --git a/imports/system/models/VehicleModel.qml b/imports/system/models/VehicleModel.qml
index 9f03bd7..fb545eb 100644
--- a/imports/system/models/VehicleModel.qml
+++ b/imports/system/models/VehicleModel.qml
@@ -81,8 +81,8 @@ QtObject {
Behavior on speed {
SmoothedAnimation {
- velocity: 6
- duration : 5000
+ velocity: 8
+ duration : 4000
easing.overshoot: 0
}
}
diff --git a/sysui/Cluster/RightDial.qml b/sysui/Cluster/RightDial.qml
index bd89b37..8d5cd54 100644
--- a/sysui/Cluster/RightDial.qml
+++ b/sysui/Cluster/RightDial.qml
@@ -156,12 +156,15 @@ Item {
Image {
id: fuelSymbol
+ width: 70
+ height: 70
anchors.top: parent.top
- anchors.topMargin: 60
+ anchors.topMargin: 55
anchors.horizontalCenter: parent.horizontalCenter
- anchors.horizontalCenterOffset: 5
+ anchors.horizontalCenterOffset: 0
source: VehicleModel.rightDialIcon
- scale: VehicleModel.rightIconScale
+ fillMode: Image.PreserveAspectFit
+
}
Item {