-
Notifications
You must be signed in to change notification settings - Fork 1
/
CircleIndicator.qml
70 lines (60 loc) · 1.44 KB
/
CircleIndicator.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
import QtQuick 2.9
import QtGraphicalEffects 1.0
import IO 1.0
import QtQuick.LocalStorage 2.0 as Sql
Item {
property string fillColor: "white"
property string icon: ""
Rectangle {
id: circle
property string number: "0"
property string list: ""
radius: width / 2
visible: false
color: fillColor
opacity: if (parent.enabled == true) {
1
} else {
0.4
}
anchors.fill: parent
}
DropShadow {
id: thedrop
anchors.fill: circle
horizontalOffset: 0
verticalOffset: 2
radius: 5.0
samples: 17
color: "#80000000"
source: circle
opacity: if (parent.enabled == true) {
1
} else {
0.4
}
}
Image {
id: theicon
anchors.centerIn: parent
source: icon
width: parent.width * 0.6
height: parent.height * 0.6
visible: false
opacity: if (parent.enabled == true) {
1
} else {
0.4
}
}
ColorOverlay {
source: theicon
anchors.fill: theicon
color: overlayColor
opacity: if (parent.enabled == true) {
1
} else {
0.4
}
}
}