forked from alex-adam/Tesla
-
Notifications
You must be signed in to change notification settings - Fork 1
/
InnerRing.qml
74 lines (61 loc) · 1.72 KB
/
InnerRing.qml
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
import QtQuick 2.0
import QtGraphicalEffects 1.0
Item {
property int speed: 0
height: 200 //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: 64
font.bold: true
font.family: "Eurostile"
y: 90
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: "km/h"
font.pixelSize: 12
font.bold: true
font.family: "Eurostile"
y: 180
color: "white"
anchors.horizontalCenter: parent.horizontalCenter
}
/*Text {
text: "209"
font.pixelSize: 25
font.bold: true
font.family: "Eurostile"
y: 120
color: "white"
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
text: "Total covered"
font.pixelSize: 13
font.bold: true
font.family: "Eurostile"
y: 150
color: "#666666"
anchors.horizontalCenter: parent.horizontalCenter
}*/
}
}