author | alfadur <mail@none> |
Tue, 05 Feb 2019 01:40:16 +0300 | |
changeset 14681 | 9377ee00f1f1 |
parent 14567 | af22a14c6a23 |
child 14860 | 6d95d314ae8b |
permissions | -rw-r--r-- |
13310 | 1 |
/****************************************************************************** |
2 |
* |
|
13636
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
3 |
* CSS definition of Qt frontend appearance: April 1 style. |
13310 | 4 |
* |
5 |
****************************************************************************** |
|
6 |
* |
|
13636
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
7 |
* see https://doc.qt.io/qt-5/style-reference.html |
13310 | 8 |
* |
9 |
****************************************************************************** |
|
10 |
* |
|
11 |
* This file can be stored at different locations, but it will be read only |
|
12 |
* once, based on first file found in this order: |
|
13 |
* |
|
13636
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
14 |
* <userdir>/Data/css/april1.css |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
15 |
* <datadir>/css/april1.css |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
16 |
* <internal default style-sheet> (:/res/css/april1.css) |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
17 |
* |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
18 |
***************************************************************************** |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
19 |
* |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
20 |
* This file is based off qt.css with minimal changes. The altered parts are |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
21 |
* marked with “CUSTOM”. |
13310 | 22 |
* |
23 |
*****************************************************************************/ |
|
24 |
||
13636
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
25 |
#infoButton |
13310 | 26 |
{ |
27 |
border: transparent; |
|
13636
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
28 |
background: transparent; |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
29 |
width: 800px; /* CUSTOM */ |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
30 |
min-width: 800px; /* CUSTOM */ |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
31 |
qproperty-icon: url(":/res/TomatowarsTitle.png"); /* CUSTOM */ |
946b21a1fbf6
Update outdated and broken holiday stylesheets
Wuzzy <Wuzzy2@mail.ru>
parents:
13310
diff
changeset
|
32 |
qproperty-iconSize: 800px 165px; /* CUSTOM */ |
13310 | 33 |
} |
34 |
HWForm,QDialog { |
|
35 |
background-image: url(":/res/Background.png"); |
|
36 |
background-position: bottom center; |
|
37 |
background-repeat: repeat-x; |
|
38 |
background-color: #141250; |
|
39 |
} |
|
40 |
||
41 |
* { |
|
42 |
color: #ffcc00; |
|
43 |
selection-background-color: #ffcc00; |
|
44 |
selection-color: #00351d; |
|
45 |
} |
|
46 |
||
47 |
a { color:#c8c8ff; } |
|
48 |
||
49 |
QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser, QSpinBox, QComboBox, |
|
50 |
QComboBox QAbstractItemView, QPlainTextEdit, QMenu::item, #labelLikeLineEdit { |
|
51 |
background-color: rgba(13, 5, 68, 70%); |
|
52 |
} |
|
53 |
||
54 |
VertScrArea, QGraphicsView { |
|
55 |
border-style: solid; border-width: 2px; border-color: #cca300; border-radius: 3px; |
|
56 |
} |
|
57 |
#gameStatsView { |
|
58 |
border-color: #332816; |
|
59 |
} |
|
60 |
||
61 |
QSplitter::handle { |
|
62 |
background-image: url(":/res/splitter.png"); |
|
63 |
background-clip: content; |
|
64 |
} |
|
65 |
QSplitter::handle:horizontal { |
|
66 |
width: 7px; |
|
67 |
background-repeat: repeat-y; |
|
68 |
} |
|
69 |
QSplitter::handle:vertical { |
|
70 |
height: 7px; |
|
71 |
background-repeat: repeat-x; |
|
72 |
} |
|
73 |
||
74 |
QComboBox::separator { |
|
75 |
border: solid; border-width: 3px; border-color: #ffcc00; |
|
76 |
} |
|
77 |
||
78 |
QPushButton, QListWidget, QListView, QTableView, QTableWidget, QLineEdit, |
|
79 |
QTextBrowser, QSpinBox, QToolBox, QComboBox, QPlainTextEdit, |
|
80 |
QComboBox QAbstractItemView, IconedGroupBox, |
|
81 |
.QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget, |
|
82 |
QTabWidget::pane, QTabBar::tab, #mapPreview, #labelLikeLineEdit { |
|
83 |
border: solid; |
|
84 |
border-width: 3px; |
|
85 |
border-color: #ffcc00; |
|
86 |
} |
|
87 |
||
88 |
QPushButton:hover, QLineEdit:hover, QListWidget:hover, QListView:hover, |
|
89 |
QSpinBox:hover, QToolBox:hover, QComboBox:hover { |
|
90 |
border-color: yellow; |
|
91 |
} |
|
92 |
||
93 |
TeamShowWidget QPushButton { |
|
94 |
icon-size: 48px; |
|
95 |
text-align: left; |
|
96 |
background-color: #0d0544; |
|
97 |
color: orange; |
|
98 |
font: bold; |
|
99 |
border-width: 2px; |
|
100 |
margin: 6px 0px 6px 0px; |
|
101 |
} |
|
102 |
TeamShowWidget QPushButton:disabled { |
|
103 |
color: #a0a0a0; |
|
104 |
} |
|
105 |
||
106 |
QToolButton { |
|
107 |
background-color: #11084A; |
|
108 |
} |
|
109 |
||
110 |
QToolButton:hover { |
|
111 |
background-color: #150A61; |
|
112 |
} |
|
113 |
||
114 |
QToolButton:pressed { |
|
115 |
background-color: #100744; |
|
116 |
} |
|
117 |
||
118 |
QLineEdit, QListWidget, QListView, QTableView, QTableWidget, QTextBrowser, |
|
119 |
QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit { |
|
120 |
border-radius: 10px; |
|
121 |
} |
|
122 |
||
123 |
#mapPreview { |
|
124 |
background-color: #0d0544; |
|
125 |
} |
|
126 |
#mapPreview:disabled{ |
|
127 |
border-color: #a0a0a0; |
|
128 |
background-color: #0d0544; |
|
129 |
color: #ffffff; |
|
130 |
} |
|
131 |
||
132 |
QLineEdit, QLabel, QHeaderView, QListWidget, QListView, QTableView, |
|
133 |
QTableWidget, QSpinBox, QToolBox::tab, QComboBox, QComboBox QAbstractItemView, |
|
134 |
IconedGroupBox, .QGroupBox, #gameStackContainer, TeamSelWidget, |
|
135 |
SelWeaponWidget, QCheckBox, QRadioButton, QPushButton, QPlainTextEdit, |
|
136 |
#mapName { |
|
137 |
font: bold 13px; |
|
138 |
} |
|
139 |
.QLabel{ |
|
140 |
background-color: transparent; |
|
141 |
} |
|
142 |
SelWeaponWidget QTabWidget::pane, SelWeaponWidget QTabBar::tab:selected { |
|
143 |
background-position: bottom center; |
|
144 |
background-repeat: repeat-x; |
|
145 |
background-color: #000000; |
|
146 |
} |
|
147 |
.QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget { |
|
148 |
background-position: bottom center; |
|
149 |
background-repeat: repeat-x; |
|
150 |
border-radius: 16px; |
|
151 |
background-color: rgba(13, 5, 68, 70%); |
|
152 |
padding: 6px; |
|
153 |
margin-top: 4px; |
|
154 |
} |
|
155 |
/* Experimenting with PaintOnScreen and border-radius on IconedGroupBox children didn't work out well |
|
156 |
IconedGroupBox QComboBox, IconedGroupBox QPushButton, IconedGroupBox QLineEdit, |
|
157 |
IconedGroupBox QSpinBox { |
|
158 |
border-radius: 0; |
|
159 |
} |
|
160 |
IconedGroupBox, IconedGroupBox *, QTabWidget::pane, QTabBar::tab:selected, QToolBox::tab QWidget{" */ |
|
161 |
IconedGroupBox, QTabWidget::pane, QTabBar::tab:selected, QToolBox::tab QWidget{ |
|
162 |
background-color: #130f2c; |
|
163 |
} |
|
164 |
||
165 |
QTabWidget::pane { |
|
166 |
border-radius: 8px; |
|
167 |
border-top-left-radius: 0px; |
|
168 |
} |
|
169 |
||
170 |
GameCFGWidget { |
|
171 |
border: none; |
|
172 |
} |
|
173 |
||
174 |
QPushButton { |
|
175 |
border-radius: 8px; |
|
176 |
background-origin: margin; |
|
177 |
background-position: top left; |
|
178 |
background-color: rgba(18, 42, 5, 70%); |
|
179 |
} |
|
180 |
||
181 |
QPushButton:pressed, QToolButton:pressed { |
|
182 |
border-color: white; |
|
183 |
} |
|
184 |
||
185 |
QPushButton:focus { |
|
186 |
outline: none; |
|
187 |
} |
|
188 |
||
189 |
QHeaderView { |
|
190 |
background-color: #00351d; |
|
191 |
border: solid; |
|
192 |
border-bottom-width: 3px; |
|
193 |
border-top-width: 0px; |
|
194 |
border-left-width: 0px; |
|
195 |
border-right-width: 0px; |
|
196 |
border-color: #ffcc00; |
|
197 |
} |
|
198 |
QHeaderView::section { |
|
199 |
border-left-width: 1px; |
|
200 |
border-right-width: 1px; |
|
201 |
border-top-width: 0; |
|
202 |
border-bottom-width: 0px; |
|
203 |
border-color: #001d10; |
|
204 |
border-style: solid; |
|
205 |
background-color: #00351d; |
|
206 |
padding: 4px; |
|
207 |
} |
|
208 |
QHeaderView::section:pressed { |
|
209 |
background-color: #00250d; |
|
210 |
} |
|
211 |
QHeaderView::up-arrow { |
|
212 |
image: url(":/res/sort_up.png"); |
|
213 |
} |
|
214 |
QHeaderView::down-arrow{ |
|
215 |
image: url(":/res/sort_down.png"); |
|
216 |
} |
|
217 |
||
218 |
QTableView, QTableWidget { |
|
219 |
alternate-background-color: #2f213a; |
|
220 |
gridline-color: transparent; |
|
221 |
} |
|
222 |
QTabWidget::pane { top: -2px; } |
|
223 |
QTabBar::tab { |
|
224 |
border-radius: 0; |
|
225 |
border-top-left-radius: 6px; |
|
226 |
border-top-right-radius: 6px; |
|
227 |
padding: 3px; |
|
228 |
background-color: #00351d; |
|
229 |
color: #ffcc00; |
|
230 |
} |
|
231 |
QTabBar::tab:selected { |
|
232 |
border-bottom-color: #0d0544; |
|
233 |
border-bottom-width: 0; |
|
234 |
} |
|
235 |
QSpinBox::up-button{ |
|
236 |
background: transparent; |
|
237 |
width: 16px; |
|
238 |
height: 10px; |
|
239 |
} |
|
240 |
||
241 |
QSpinBox::up-arrow { |
|
242 |
image: url(":/res/spin_up.png"); |
|
243 |
} |
|
244 |
QSpinBox::up-arrow:disabled { |
|
245 |
image: url(":/res/spin_up_disabled.png"); |
|
246 |
} |
|
247 |
||
248 |
QSpinBox::down-arrow { |
|
249 |
image: url(":/res/spin_down.png"); |
|
250 |
} |
|
251 |
QSpinBox::down-arrow:disabled { |
|
252 |
image: url(":/res/spin_down_disabled.png"); |
|
253 |
} |
|
254 |
||
255 |
QSpinBox::down-button { |
|
256 |
background: transparent; |
|
257 |
width: 16px; |
|
258 |
height: 10px; |
|
259 |
} |
|
260 |
||
261 |
QComboBox { |
|
262 |
border-radius: 10px; |
|
263 |
padding: 3px; |
|
264 |
height: 18px; |
|
265 |
} |
|
266 |
QComboBox:pressed{ |
|
267 |
border-color: white; |
|
268 |
} |
|
269 |
QComboBox::drop-down{ |
|
270 |
border: transparent; |
|
271 |
width: 25px; |
|
272 |
} |
|
273 |
QComboBox::down-arrow { |
|
274 |
image: url(":/res/dropdown.png"); |
|
275 |
} |
|
276 |
QComboBox::down-arrow:disabled { |
|
277 |
image: url(":/res/dropdown_disabled.png"); |
|
278 |
} |
|
279 |
||
280 |
VertScrArea { |
|
281 |
background-position: bottom center; |
|
282 |
background-repeat: repeat-x; |
|
283 |
} |
|
284 |
||
285 |
IconedGroupBox { |
|
286 |
border-radius: 16px; |
|
287 |
padding: 2px; |
|
288 |
} |
|
289 |
||
290 |
QGroupBox::title{ |
|
291 |
subcontrol-origin: margin; |
|
292 |
subcontrol-position: top left; |
|
293 |
text-align: left; |
|
294 |
left: 15px; |
|
295 |
} |
|
296 |
||
297 |
QCheckBox::indicator:checked{ |
|
298 |
image: url(":/res/checked.png"); |
|
299 |
} |
|
300 |
QCheckBox::indicator:checked:hover{ |
|
301 |
image: url(":/res/checkedHover.png"); |
|
302 |
} |
|
303 |
QCheckBox::indicator:checked:pressed{ |
|
304 |
image: url(":/res/checkedPressed.png"); |
|
305 |
} |
|
306 |
QCheckBox::indicator:unchecked{ |
|
307 |
image: url(":/res/unchecked.png"); |
|
308 |
} |
|
309 |
QCheckBox::indicator:unchecked:hover{ |
|
310 |
image: url(":/res/uncheckedHover.png"); |
|
311 |
} |
|
312 |
QCheckBox::indicator:unchecked:pressed{ |
|
313 |
image: url(":/res/uncheckedPressed.png"); |
|
314 |
} |
|
315 |
||
316 |
QRadioButton::indicator:checked{ |
|
317 |
image: url(":/res/radioButtonChecked.png"); |
|
318 |
} |
|
319 |
QRadioButton::indicator:checked:hover{ |
|
320 |
image: url(":/res/radioButtonCheckedHover.png"); |
|
321 |
} |
|
322 |
QRadioButton::indicator:checked:pressed{ |
|
323 |
image: url(":/res/radioButtonCheckedPressed.png"); |
|
324 |
} |
|
325 |
QRadioButton::indicator:unchecked{ |
|
326 |
image: url(":/res/radioButtonUnchecked.png"); |
|
327 |
} |
|
328 |
QRadioButton::indicator:unchecked:hover{ |
|
329 |
image: url(":/res/radioButtonUncheckedHover.png"); |
|
330 |
} |
|
331 |
QRadioButton::indicator:unchecked:pressed{ |
|
332 |
image: url(":/res/radioButtonUncheckedPressed.png"); |
|
333 |
} |
|
334 |
||
335 |
.QWidget{ |
|
336 |
background: transparent; |
|
337 |
} |
|
338 |
||
339 |
QTabWidget::pane { |
|
340 |
border-top-width: 2px; |
|
341 |
} |
|
342 |
||
343 |
QMenu{ |
|
344 |
background-color: #ffcc00; |
|
345 |
margin: 3px; |
|
346 |
} |
|
347 |
QMenu::item { |
|
348 |
background-color: #0d0544; |
|
349 |
border: 1px solid transparent; |
|
350 |
font: bold; |
|
351 |
padding: 2px 25px 2px 20px; |
|
352 |
} |
|
353 |
QMenu::item:selected { |
|
354 |
background-color: #2d2564; |
|
355 |
} |
|
356 |
QMenu::indicator { |
|
357 |
width: 16px; |
|
358 |
height: 16px; |
|
359 |
} |
|
360 |
QMenu::indicator:non-exclusive:checked{ |
|
361 |
image: url(":/res/checked.png"); |
|
362 |
} |
|
363 |
QMenu::indicator:non-exclusive:unchecked{ |
|
364 |
image: url(":/res/unchecked.png"); |
|
365 |
} |
|
366 |
||
367 |
QToolTip{ |
|
368 |
background-color: #0d0544; |
|
369 |
border: 1px solid #ffcc00; |
|
370 |
} |
|
371 |
||
372 |
:disabled{ |
|
373 |
color: #a0a0a0; |
|
374 |
border-color: #a0a0a0; |
|
375 |
} |
|
376 |
QListWidget:item:selected:disabled, QListView:item:selected:disabled{ |
|
377 |
color: rgba(13, 5, 68, 70%); |
|
378 |
background-color: #a0a0a0; |
|
379 |
} |
|
380 |
SquareLabel, ItemNum { |
|
381 |
background-color: #000000; |
|
382 |
} |
|
383 |
||
384 |
QSlider::groove::horizontal { |
|
385 |
height: 2px; |
|
386 |
margin: 2px 0px; |
|
387 |
background-color: #ffcc00; |
|
388 |
} |
|
389 |
QSlider::groove::horizontal:disabled { |
|
390 |
background-color: #a0a0a0; |
|
391 |
} |
|
392 |
||
393 |
QSlider::handle::horizontal { |
|
394 |
border: 0px; |
|
395 |
margin: -8px 0px; |
|
396 |
background-color: #ffcc00; |
|
397 |
width: 12px; |
|
398 |
height: 6px; |
|
399 |
border-radius: 3px; |
|
400 |
} |
|
401 |
QSlider::handle::horizontal:disabled { |
|
402 |
background-color: #a0a0a0; |
|
403 |
} |
|
404 |
||
405 |
HatButton, ThemeButton { |
|
406 |
text-align: left; |
|
407 |
} |
|
408 |
||
409 |
#hatList, #hatList:hover, #themeList, #themeList:hover { |
|
410 |
border-color: #F6CB1C; |
|
411 |
} |
|
412 |
||
413 |
#hatList QScrollBar, #themeList QScrollBar { |
|
414 |
background-color: #130F2A; |
|
415 |
border-top-right-radius: 10px; |
|
416 |
border-bottom-right-radius: 10px; |
|
417 |
} |
|
418 |
||
419 |
#hatList, #themeList { |
|
420 |
border-color: #F6CB1C; |
|
421 |
border-width: 3px; |
|
422 |
border-style: solid; |
|
423 |
border-radius: 10px; |
|
424 |
border-top-left-radius: 0px; |
|
425 |
} |
|
426 |
||
427 |
#hatList::item, #themeList::item { |
|
428 |
background-color: #11084A; |
|
429 |
padding: 4px; |
|
430 |
border-radius: 10px; |
|
431 |
color: #ffcc00 !important; |
|
432 |
font: 8px; |
|
433 |
border-width: 2px; |
|
434 |
border-color: #11084A; |
|
435 |
} |
|
436 |
||
437 |
#hatList::item:hover, #themeList::item:hover { |
|
438 |
background-color: #150A61; |
|
439 |
} |
|
440 |
||
441 |
#hatList::item:selected, #themeList::item:selected { |
|
442 |
background-color: #150A61; |
|
443 |
} |
|
444 |
||
14567
af22a14c6a23
Frontend: Tweak button padding once more
Wuzzy <Wuzzy2@mail.ru>
parents:
14564
diff
changeset
|
445 |
.QPushButton, .QPushButtonWithSound { |
13310 | 446 |
padding: 3px 5px; |
447 |
} |
|
448 |
||
449 |
#gameCfgWidgetTabs { |
|
450 |
border-radius: 16px; |
|
451 |
border-top-left-radius: 0px; |
|
452 |
} |
|
453 |
||
454 |
TeamSelWidget, #gameStackContainer, #GBoxOptions { |
|
455 |
border-radius: 10px; |
|
456 |
} |
|
457 |
||
458 |
PageMultiplayer TeamSelWidget { |
|
459 |
min-height: 500px; |
|
460 |
} |