-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTelltalePanel.qml
More file actions
47 lines (41 loc) · 1.83 KB
/
Copy pathTelltalePanel.qml
File metadata and controls
47 lines (41 loc) · 1.83 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
import QtQuick
Item {
id: root
property bool warningGeneral: false
property bool absActive: false
property bool espActive: false
property bool oilLow: false
property bool batteryLow: false
property bool engineCheck: false
property bool seatbeltOff: true
property bool doorOpen: false
property bool lowBeam: true
property bool highBeam: false
property bool fogLights: false
property color borderAccent: "#262d3d" // NEW
implicitWidth: 600
implicitHeight: 50
Rectangle {
anchors.fill: parent
radius: 8
color: "#10141f"
border.color: root.borderAccent
border.width: 1.5
Behavior on border.color { ColorAnimation { duration: 400 } }
}
Row {
anchors.centerIn: parent
spacing: 6
WarningLight { label: "!"; active: root.warningGeneral; activeColor: "#ff5252" }
WarningLight { label: "ABS"; active: root.absActive; activeColor: "#ffaa00" }
WarningLight { label: "ESP"; active: root.espActive; activeColor: "#ffaa00" }
WarningLight { label: "OIL"; active: root.oilLow; activeColor: "#ff5252" }
WarningLight { label: "BAT"; active: root.batteryLow; activeColor: "#ff5252" }
WarningLight { label: "ENG"; active: root.engineCheck; activeColor: "#ffaa00" }
WarningLight { label: "SBL"; active: root.seatbeltOff; activeColor: "#ff5252" }
WarningLight { label: "DRS"; active: root.doorOpen; activeColor: "#ffaa00" }
WarningLight { label: "LO"; active: root.lowBeam; activeColor: "#00c896" }
WarningLight { label: "HI"; active: root.highBeam; activeColor: "#3b8ed4" }
WarningLight { label: "FOG"; active: root.fogLights; activeColor: "#00c896" }
}
}