-
Notifications
You must be signed in to change notification settings - Fork 1
/
Flasher.qml
134 lines (104 loc) · 2.42 KB
/
Flasher.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
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
124
125
126
127
128
129
130
131
import QtQuick 2.3
import QtQuick.Window 2.2
import QtGraphicalEffects 1.0
import QtQuick.Controls.Material 2.0
import "main.js" as Scripts
Item {
id:popup
anchors.centerIn: parent
width:parent.width * 1.2
height:parent.height * 1.2
z:-1
Timer{
id:pressed
running:false
repeat: false
interval: 300
onTriggered: popup.state = "InActive"
}
state:"InActive"
states: [
State {
name:"Active"
PropertyChanges {
target: circle
//z: 3
//visible:true
color: Qt.rgba(0.5,0.5,0.5,0.5)
}
PropertyChanges {
target: thedrop
//z: 3
visible:true
}
PropertyChanges {
target: pressed
//z: 3
running:true
}
},
State {
name:"InActive"
PropertyChanges {
target: circle
//z: -2
//visible:true
//color: Qt.rgba(0.5,0.5,0.5,0.5)
color:highLightColor1
// z:-1
opacity: 0.9
}
PropertyChanges {
target: thedrop
//z: 3
visible:true
}
},
State {
name:"Alert"
PropertyChanges {
target: circle
//z: -2
// visible:true
color:Qt.rgba(1.0,0.0,0.0,0.5)
//z:-1
}
PropertyChanges {
target: thedrop
//z: 3
visible:true
}
},
State {
name:"Enabled"
PropertyChanges {
target: circle
//z: -2
visible:true
color:activeColor
// z:-1
}
}
]
Rectangle {
id:circle
property string number: "0"
property string list:""
radius: width / 2
visible: false
//clip: true
//onStateChanged: Scripts.loadActions(list)
anchors.fill: parent
}
DropShadow {
id:thedrop
anchors.fill: circle
horizontalOffset: 0
verticalOffset: 2
radius: 5.0
samples: 17
color: "#80000000"
source: circle
z:-1
}
}