forked from analogdevicesinc/scopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomSwitch.qss
61 lines (53 loc) · 995 Bytes
/
customSwitch.qss
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
QPushButton {
min-height: 30px;
max-height: 30px;
min-width: 100px;
max-width: 100px;
background-color: black;
border-radius: 4px;
}
QPushButton:disabled {
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.501, y2:0, stop:0 #727273, stop:1 #141416);
}
QWidget#handle {
min-height: 30px;
max-height: 30px;
min-width: 50px;
max-width: 50px;
background-color: #4a64ff;
border-radius: 2px;
}
QWidget#handle:disabled {
background-color: #aaaaaa;
}
QLabel {
margin-top: 6px;
background-color: transparent;
font: 14px;
}
QLabel#on {
margin-top: 0px;
min-height:30px;
max-height:30px;
min-width:50px;
max-width:50px;
qproperty-alignment: AlignCenter AlignCenter;
margin-left: 0px;
color: white;
}
QLabel#on:disabled {
color: rgba(255,255,255,102);
}
QLabel#off {
margin-top: 0px;
min-height:30px;
max-height:30px;
min-width:50px;
max-width:50px;
margin-left: 50px;
color: white;
qproperty-alignment: AlignCenter AlignCenter;
}
QLabel#off:disabled {
color: rgba(255,255,255,51);
}