blob: 1236ea4201d37c09dc7966e5e09ebce67e25b878 (
plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
import QtQuick 2.0
import com.ford.hmiframework 1.0
import "../Widgets"
FLayout {
id: statusLayout
width: 800
height: 480
property alias menuTouch: menuTouch
Rectangle{
id: ln1
anchors.horizontalCenter: statusLayout.horizontalCenter
y:15
height:1
width: 14
color: "#1d81d5"
}
Rectangle{
id: ln2
anchors.horizontalCenter: statusLayout.horizontalCenter
y:19
height:1
width: 14
color: "#1d81d5"
}
Rectangle{
id: ln3
anchors.horizontalCenter: statusLayout.horizontalCenter
y:23
height:1
width: 14
color: "#1d81d5"
}
BaseText{
id: menuTxt
anchors.horizontalCenter: statusLayout.horizontalCenter
anchors.bottom: statusLayout.top
anchors.bottomMargin: -50
horAlignment: Text.AlignHCenter
vertAlignment: Text.AlignBottom
text: "MENU"
color: "#1d81d5"
pxSize: 22
theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
}
BaseText{
id: tempTxt
x:25
anchors.bottom: statusLayout.top
anchors.bottomMargin: -50
horAlignment: Text.AlignLeft
vertAlignment: Text.AlignBottom
text: "75" + "\xBA"
color: "#1d81d5"
theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
pxSize: 28
}
BaseText{
id: clockTxt
anchors.right: statusLayout.right
anchors.rightMargin: 25
anchors.bottom: statusLayout.top
anchors.bottomMargin: -50
horAlignment: Text.AlignRight
vertAlignment: Text.AlignBottom
text: "12:45"
color: "#1d81d5"
theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
pxSize: 28
}
FWdgtTouchArea{
id: menuTouch
height: 75
width: 80
y:0
anchors.horizontalCenter: statusLayout.horizontalCenter
}
FViewUseCase{condition: menuTouch.pressed === true
//FActScriptCall { onScript: { FLogger.debug("Test color should change") } }
PropertyChanges {
target: ln1; color: "white"
}
PropertyChanges {
target: ln2; color: "white"
}
PropertyChanges {
target: ln3; color: "white"
}
PropertyChanges {
target: menuTxt; color: "white"
}
}
FViewUseCase{
condition: dataPool.mainPCAmenuShown ===true
PropertyChanges {
target: ln1; visible: false
}
PropertyChanges {
target: ln2; visible: false
}
PropertyChanges {
target: ln3; visible: false
}
PropertyChanges {
target: menuTxt; visible: false
}
}
}
|