forked from alex-adam/Tesla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInnerRing.qml
More file actions
77 lines (66 loc) · 1.88 KB
/
InnerRing.qml
File metadata and controls
77 lines (66 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import QtQuick 2.0
import QtGraphicalEffects 1.0
Item {
property int speed: 0
height: 335 //TODO: Groesse skalierbar machen
width: height
x: (parent.width / 2) - (width / 2)
y: (parent.height / 2) - (height / 2)
Image {
id: innerRingRect
height: parent.height
width: parent.width
source: "/pics/Tacho_Mitte.png"
Text {
id: speeddigit
text: speed
font.pixelSize: 86
font.bold: true
font.family: "Eurostile"
y: 40
color: "white"
anchors.horizontalCenter: parent.horizontalCenter
}
DropShadow {
anchors.fill: speeddigit
horizontalOffset: 0
verticalOffset: 8
radius: 4.0
samples: 16
color: "black"
source: speeddigit
}
Text {
text: "mph"
font.pixelSize: 16
font.bold: true
font.family: "Eurostile"
y: 132
color: "white"
anchors.horizontalCenter: parent.horizontalCenter
}
Image {
source: "/pics/Lade-Balken.png"
anchors.horizontalCenter: parent.horizontalCenter
y: parent.height /2 + 7
}
Text {
text: "209"
font.pixelSize: 34
font.bold: true
font.family: "Eurostile"
y: 220
color: "white"
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Rated Range"
font.pixelSize: 18
font.bold: true
font.family: "Eurostile"
y: 260
color: "#666666"
anchors.horizontalCenter: parent.horizontalCenter
}
}
}