-
Notifications
You must be signed in to change notification settings - Fork 14
/
stylesheet.qss
227 lines (168 loc) · 4.55 KB
/
stylesheet.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
/* QT stylesheet don't have variables. Some sort of sass solution could be used.
/*
First we define brand colors and after that we define colors based on brand colors
to be used in software.
==== Brand colors
Dark orange / text
rgb(128, 33, 19);
Medium orange
rgb(199, 99, 44);
Light orange
rgb(248, 231, 209);
Red black
rgb(40, 12, 9)
Secondary brand color
Finland blue
rgb(0,46,162);
Complementary blue to medium orange.
rgb(44, 134, 199);
Light background
rgb(252, 251, 252);
Dark background
rgb(40, 12, 9)
==== Layout color
1. primary brand color if its versatile enough to use on black and white backgrounds.
Medium orange?
2. Low contrast neutral. On light and dark.
Light background
rgb(243, 242, 243);
Dark background
rgb(210, 210, 210);
3. Higher contrast neutral. On light and dark.
Light background
Dark background
IGNORED
4. Reduced contrast neutral = reverse of 2.
Light background
rgb(210, 210, 210);
Dark background
IGNORED
===== Denotive colors
1. Error color, non brand red. Must fit both dark and light background.
2. Success color, usually green. Must fit both dark and light background.
3. Disabled colors. Two colors for light and dark backgrounds. Content must be readable even if its disabled.
Error red used in end call buttons.
rgb(180, 60, 60);
Light background
Dark background
Success green used in start call buttons.
===== Interactive colors. Use as few as possible.
1. Choose one color. Can be a brand color.
Color
rgb(250, 158, 66); Medium orange
lighter +1
rgb(248, 215, 179);
darker -1
rgb(199, 99, 44);
lighter +2
rgb(248, 231, 209);
darker -2
rgb(128, 33, 19);
*/
QFrame {
border-width: 2px;
border-color: rgb(120, 120, 120);
}
/* Define buttons */
QPushButton, QComboBox {
border-style: solid;
border-radius: 6px;
font: bold 14px;
min-width: 20px;
min-height: 20px;
padding: 1px;
background-color: rgb(199, 99, 44);
border-color: rgb(199, 99, 44);
border-top-color: rgb(248, 215, 179);
border-bottom-color: rgb(128, 33, 19);
border-width: 4px;
color: rgb(255, 255, 255);
margin: 0px;
position: relative;
top: -10ex;
}
QPushButton:pressed {
border-style: inset;
background-color: rgb(185, 87, 0);
border-color: rgb(185, 87, 0);
border-right-color: rgb(185, 87, 0);
border-top-color: rgb(128, 33, 19);
}
QPushButton:disabled {
background-color: rgb(170, 170, 170);
border-color: rgb(170, 170, 170);
color: rgb(50, 50, 50);
}
/* red end call buttons */
QWidget#EndCallButton, QWidget#declineButton, QWidget#cancelCall {
border-style: solid;
border-width: 4px;
font: bold 14px;
min-width: 20px;
min-height: 20px;
padding: 1px;
background-color: rgb(180, 60, 60);
border-color: rgb(180, 60, 60);
border-top-color: rgb(210, 110, 110);
border-bottom-color: rgb(150, 50, 50);
}
/* red end call buttons */
QWidget#EndCallButton:pressed , QWidget#declineButton:pressed , QWidget#cancelCall:pressed {
background-color: rgb(160, 50, 50);
border-color: rgb(160, 50, 50);
border-bottom-color: rgb(210, 110, 110);
border-top-color: rgb(140, 45, 45);
}
/* green start call buttons */
QWidget#CallButton, QWidget#acceptButton {
border-style: solid;
border-width: 4px;
font: bold 14px;
min-width: 20px;
min-height: 20px;
padding: 1px;
background-color: rgb(42, 186, 42);
border-color: rgb(42, 186, 42);
border-top-color: rgb(62, 226, 62);
border-bottom-color: rgb(32, 156, 32);
}
/* green start call buttons */
QWidget#CallButton:pressed, QWidget#acceptButton:pressed {
background-color: rgb(38, 166, 32);
border-color: rgb(38, 166, 32);
border-bottom-color: rgb(62, 226, 62);
border-top-color: rgb(32, 156, 32);
}
/* because the contactlist button is so small, define separate borders. */
QWidget#CallButton {
border-width: 2px;
}
/* set secondary background color */
QMenuBar, QListWidget, QWidget#OutgoingCall, QWidget#IncomingCall {
background-color: rgb(243, 242, 243);
}
/* Contactlist as well as in/out calling widgets. */
QListWidget, QWidget#OutgoingCall, QWidget#IncomingCall {
border-style: solid;
border-radius: 0px;
border-width: 4px;
border-color: rgb(243, 242, 243);
/*border-top-color: rgb(252, 251, 252);
border-bottom-color: rgb(210, 210, 210);*/
}
QListWidget::item {
border-bottom: 1px solid rgb(180, 180, 180);
background-image: url(dense6pattern.png);
background-repeat: repeat-xy;
}
QComboBox {
border-radius: 5px;
}
QMainWindow {
background-color: rgb(252, 251, 252);
border-style: inset;
}
QListWidget::item{
margin: 0px;
position: relative;
}