author | Wuzzy <Wuzzy2@mail.ru> |
Wed, 04 Apr 2018 21:34:09 +0200 | |
changeset 13310 | af229e3d274a |
parent 9665 | bfd62e380327 |
child 13631 | 946b21a1fbf6 |
permissions | -rw-r--r-- |
6579 | 1 |
/****************************************************************************** |
2 |
* |
|
3 |
* CSS-like definition of Qt frontend appearance |
|
4 |
* |
|
5 |
****************************************************************************** |
|
6 |
* |
|
7 |
* see http://doc.qt.nokia.com/4.5/stylesheet.html |
|
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 |
* |
|
14 |
* <userdir>/Data/css/christmas.css |
|
15 |
* <datadir>/css/christmas.css |
|
16 |
* <internal default style-sheet> (:/res/css/christmas.css) |
|
17 |
* |
|
18 |
*****************************************************************************/ |
|
19 |
||
20 |
HWForm,QDialog { |
|
21 |
background-image: url(":/res/BackgroundChristmas.png"); |
|
22 |
background-position: bottom center; |
|
23 |
background-repeat: repeat-x; |
|
8321 | 24 |
background-color: #0c0f28; |
6579 | 25 |
} |
26 |
||
27 |
* { |
|
28 |
color: #ffcc00; |
|
29 |
selection-background-color: #ffcc00; |
|
30 |
selection-color: #00351d; |
|
31 |
} |
|
32 |
||
33 |
a { color:#c8c8ff; } |
|
34 |
||
7900
e5e7678e4b2f
Fix white background in players list on halloween, christmas and easter
unc0rr
parents:
7447
diff
changeset
|
35 |
QLineEdit, QListWidget, QListView, QTableView, QTextBrowser, QSpinBox, QComboBox, |
9665 | 36 |
QComboBox QAbstractItemView, QPlainTextEdit, QMenu::item, #labelLikeLineEdit { |
6579 | 37 |
background-color: rgba(13, 5, 68, 70%); |
38 |
} |
|
39 |
||
40 |
QComboBox::separator { |
|
41 |
border: solid; border-width: 3px; border-color: #ffcc00; |
|
42 |
} |
|
43 |
||
7900
e5e7678e4b2f
Fix white background in players list on halloween, christmas and easter
unc0rr
parents:
7447
diff
changeset
|
44 |
QPushButton, QListWidget, QListView, QTableView, QLineEdit, QHeaderView, |
7447
01111960a48d
uploading to youtube, it works, but user interface is still incomplete
Stepan777 <stepik-777@mail.ru>
parents:
6579
diff
changeset
|
45 |
QTextBrowser, QSpinBox, QToolBox, QComboBox, QPlainTextEdit, |
6579 | 46 |
QComboBox QAbstractItemView, IconedGroupBox, |
9665 | 47 |
.QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget, |
48 |
QTabWidget::pane, QTabBar::tab, #mapPreview, #labelLikeLineEdit { |
|
6579 | 49 |
border: solid; |
50 |
border-width: 3px; |
|
51 |
border-color: #ffcc00; |
|
52 |
} |
|
53 |
||
7900
e5e7678e4b2f
Fix white background in players list on halloween, christmas and easter
unc0rr
parents:
7447
diff
changeset
|
54 |
QPushButton:hover, QLineEdit:hover, QListWidget:hover, QListView:hover, |
6579 | 55 |
QSpinBox:hover, QToolBox:hover, QComboBox:hover { |
56 |
border-color: yellow; |
|
57 |
} |
|
58 |
||
9665 | 59 |
QToolButton { |
60 |
background-color: #11084A; |
|
61 |
} |
|
62 |
||
63 |
QToolButton:hover { |
|
64 |
background-color: #150A61; |
|
65 |
} |
|
66 |
||
67 |
QToolButton:pressed { |
|
68 |
background-color: #100744; |
|
69 |
} |
|
70 |
||
71 |
QLineEdit, QListWidget, QListView, QTableView, QTextBrowser, |
|
72 |
QSpinBox, QToolBox, QPlainTextEdit, QToolButton, #mapPreview, #labelLikeLineEdit { |
|
6579 | 73 |
border-radius: 10px; |
74 |
} |
|
75 |
||
9665 | 76 |
#mapPreview { |
77 |
background-color: #0d0544; |
|
78 |
} |
|
79 |
||
7900
e5e7678e4b2f
Fix white background in players list on halloween, christmas and easter
unc0rr
parents:
7447
diff
changeset
|
80 |
QLineEdit, QLabel, QHeaderView, QListWidget, QListView, QTableView, |
6579 | 81 |
QSpinBox, QToolBox::tab, QComboBox, QComboBox QAbstractItemView, |
9665 | 82 |
IconedGroupBox, .QGroupBox, #gameStackContainer, TeamSelWidget, |
7447
01111960a48d
uploading to youtube, it works, but user interface is still incomplete
Stepan777 <stepik-777@mail.ru>
parents:
6579
diff
changeset
|
83 |
SelWeaponWidget, QCheckBox, QRadioButton, QPushButton, QPlainTextEdit { |
6579 | 84 |
font: bold 13px; |
85 |
} |
|
86 |
SelWeaponWidget QTabWidget::pane, SelWeaponWidget QTabBar::tab:selected { |
|
87 |
background-position: bottom center; |
|
88 |
background-repeat: repeat-x; |
|
89 |
background-color: #000000; |
|
90 |
} |
|
9665 | 91 |
.QGroupBox, #gameStackContainer, TeamSelWidget, SelWeaponWidget { |
6579 | 92 |
background-position: bottom center; |
93 |
background-repeat: repeat-x; |
|
94 |
border-radius: 16px; |
|
95 |
background-color: rgba(13, 5, 68, 70%); |
|
96 |
padding: 6px; |
|
97 |
} |
|
98 |
/* Experimenting with PaintOnScreen and border-radius on IconedGroupBox children didn't work out well |
|
99 |
IconedGroupBox QComboBox, IconedGroupBox QPushButton, IconedGroupBox QLineEdit, |
|
100 |
IconedGroupBox QSpinBox { |
|
101 |
border-radius: 0; |
|
102 |
} |
|
103 |
IconedGroupBox, IconedGroupBox *, QTabWidget::pane, QTabBar::tab:selected, QToolBox::tab QWidget{" */ |
|
104 |
IconedGroupBox, QTabWidget::pane, QTabBar::tab:selected, QToolBox::tab QWidget{ |
|
105 |
background-color: #130f2c; |
|
106 |
} |
|
107 |
||
9665 | 108 |
QTabWidget::pane { |
109 |
border-radius: 8px; |
|
110 |
border-top-left-radius: 0px; |
|
111 |
} |
|
112 |
||
113 |
QLineEdit:disabled, QSpinBox:disabled { |
|
114 |
border-color: gray; |
|
115 |
} |
|
116 |
||
117 |
GameCFGWidget { |
|
118 |
border: none; |
|
119 |
} |
|
6579 | 120 |
|
121 |
QPushButton { |
|
122 |
border-radius: 8px; |
|
123 |
background-origin: margin; |
|
124 |
background-position: top left; |
|
125 |
background-color: rgba(18, 42, 5, 70%); |
|
126 |
} |
|
127 |
||
9665 | 128 |
QPushButton:pressed, QToolButton:pressed { |
6579 | 129 |
border-color: white; |
130 |
} |
|
131 |
||
132 |
QPushButton:focus { |
|
133 |
outline: none; |
|
134 |
} |
|
135 |
||
136 |
QHeaderView { |
|
137 |
border-radius: 0; |
|
138 |
border-width: 0; |
|
139 |
border-bottom-width: 3px; |
|
140 |
background-color: #00351d; |
|
141 |
} |
|
142 |
QTableView { |
|
143 |
alternate-background-color: #2f213a; |
|
144 |
gridline-color: transparent; |
|
145 |
} |
|
9665 | 146 |
QTabWidget::pane { top: -2px; } |
6579 | 147 |
QTabBar::tab { |
148 |
border-radius: 0; |
|
149 |
border-top-left-radius: 6px; |
|
150 |
border-top-right-radius: 6px; |
|
151 |
padding: 3px; |
|
9665 | 152 |
background-color: #00351d; |
153 |
color: #ffcc00; |
|
6579 | 154 |
} |
9665 | 155 |
QTabBar::tab:selected { |
156 |
border-bottom-color: #0d0544; |
|
157 |
border-bottom-width: 0; |
|
6579 | 158 |
} |
159 |
QSpinBox::up-button{ |
|
160 |
background: transparent; |
|
161 |
width: 16px; |
|
162 |
height: 10px; |
|
163 |
} |
|
164 |
||
165 |
QSpinBox::up-arrow { |
|
166 |
image: url(":/res/spin_up.png"); |
|
167 |
} |
|
168 |
||
169 |
QSpinBox::down-arrow { |
|
170 |
image: url(":/res/spin_down.png"); |
|
171 |
} |
|
172 |
||
173 |
QSpinBox::down-button { |
|
174 |
background: transparent; |
|
175 |
width: 16px; |
|
176 |
height: 10px; |
|
177 |
} |
|
178 |
||
179 |
QComboBox { |
|
180 |
border-radius: 10px; |
|
181 |
padding: 3px; |
|
9665 | 182 |
height: 18px; |
6579 | 183 |
} |
184 |
QComboBox:pressed{ |
|
185 |
border-color: white; |
|
186 |
} |
|
187 |
QComboBox::drop-down{ |
|
188 |
border: transparent; |
|
189 |
width: 25px; |
|
190 |
} |
|
191 |
QComboBox::down-arrow { |
|
192 |
image: url(":/res/dropdown.png"); |
|
193 |
} |
|
194 |
||
195 |
VertScrArea { |
|
196 |
background-position: bottom center; |
|
197 |
background-repeat: repeat-x; |
|
198 |
} |
|
199 |
||
200 |
IconedGroupBox { |
|
201 |
border-radius: 16px; |
|
202 |
padding: 2px; |
|
203 |
} |
|
204 |
||
205 |
QGroupBox::title{ |
|
206 |
subcontrol-origin: margin; |
|
207 |
subcontrol-position: top left; |
|
208 |
text-align: left; |
|
209 |
left: 15px; |
|
210 |
top: -4px; |
|
211 |
} |
|
212 |
||
213 |
QCheckBox::indicator:checked{ |
|
214 |
image: url(":/res/checked.png"); |
|
215 |
} |
|
216 |
QCheckBox::indicator:unchecked{ |
|
217 |
image: url(":/res/unchecked.png"); |
|
218 |
} |
|
219 |
||
220 |
.QWidget{ |
|
221 |
background: transparent; |
|
222 |
} |
|
223 |
||
224 |
QTabWidget::pane { |
|
225 |
border-top-width: 2px; |
|
226 |
} |
|
227 |
||
228 |
QMenu{ |
|
229 |
background-color: #ffcc00; |
|
230 |
margin: 3px; |
|
231 |
} |
|
232 |
QMenu::item { |
|
233 |
background-color: #0d0544; |
|
234 |
border: 1px solid transparent; |
|
235 |
font: bold; |
|
236 |
padding: 2px 25px 2px 20px; |
|
237 |
} |
|
238 |
QMenu::item:selected { |
|
239 |
background-color: #2d2564; |
|
240 |
} |
|
241 |
QMenu::indicator { |
|
242 |
width: 16px; |
|
243 |
height: 16px; |
|
244 |
} |
|
245 |
QMenu::indicator:non-exclusive:checked{ |
|
246 |
image: url(":/res/checked.png"); |
|
247 |
} |
|
248 |
QMenu::indicator:non-exclusive:unchecked{ |
|
249 |
image: url(":/res/unchecked.png"); |
|
250 |
} |
|
251 |
||
252 |
QToolTip{ |
|
253 |
background-color: #0d0544; |
|
254 |
border: 1px solid #ffcc00; |
|
255 |
} |
|
256 |
||
257 |
:disabled{ |
|
258 |
color: #a0a0a0; |
|
259 |
} |
|
260 |
SquareLabel, ItemNum { |
|
261 |
background-color: #000000; |
|
262 |
} |
|
263 |
||
264 |
QSlider::groove::horizontal { |
|
265 |
height: 2px; |
|
266 |
margin: 2px 0px; |
|
267 |
background-color: #ffcc00; |
|
268 |
} |
|
269 |
||
270 |
QSlider::handle::horizontal { |
|
271 |
border: 0px; |
|
9665 | 272 |
margin: -8px 0px; |
273 |
background-color: #ffcc00; |
|
274 |
width: 12px; |
|
275 |
height: 6px; |
|
6579 | 276 |
border-radius: 3px; |
9665 | 277 |
} |
278 |
||
279 |
HatButton, ThemeButton { |
|
280 |
text-align: left; |
|
281 |
} |
|
282 |
||
283 |
#hatList, #hatList:hover, #themeList, #themeList:hover { |
|
284 |
border-color: #F6CB1C; |
|
285 |
} |
|
286 |
||
287 |
#hatList QScrollBar, #themeList QScrollBar { |
|
288 |
background-color: #130F2A; |
|
289 |
border-top-right-radius: 10px; |
|
290 |
border-bottom-right-radius: 10px; |
|
291 |
} |
|
292 |
||
293 |
#hatList, #themeList { |
|
294 |
border-color: #F6CB1C; |
|
295 |
border-width: 3px; |
|
296 |
border-style: solid; |
|
297 |
border-radius: 10px; |
|
298 |
border-top-left-radius: 0px; |
|
299 |
} |
|
300 |
||
301 |
#hatList::item, #themeList::item { |
|
302 |
background-color: #11084A; |
|
303 |
padding: 4px; |
|
304 |
border-radius: 10px; |
|
305 |
color: #ffcc00 !important; |
|
306 |
font: 8px; |
|
307 |
border-width: 2px; |
|
308 |
border-color: #11084A; |
|
309 |
} |
|
310 |
||
311 |
#hatList::item:hover, #themeList::item:hover { |
|
312 |
background-color: #150A61; |
|
313 |
} |
|
314 |
||
315 |
#hatList::item:selected, #themeList::item:selected { |
|
316 |
background-color: #150A61; |
|
317 |
} |
|
318 |
||
319 |
QDialogButtonBox QPushButton { |
|
320 |
padding: 3px 5px; |
|
321 |
} |
|
322 |
||
323 |
#gameCfgWidgetTabs { |
|
324 |
border-radius: 16px; |
|
325 |
border-top-left-radius: 0px; |
|
326 |
} |
|
327 |
||
328 |
TeamSelWidget, #gameStackContainer, #GBoxOptions { |
|
329 |
border-radius: 10px; |
|
6579 | 330 |
} |
331 |
||
9663
1fa74f92555d
so, lack of this was causing the team area to be too squat. at this point tho, I get the impression qt.css is outright replaced by birthday/christmas. This seems inconvenient, and if so, we should merge in changes to qt.css which has quite a bit more stuff in it
nemo
parents:
8321
diff
changeset
|
332 |
PageMultiplayer TeamSelWidget { |
1fa74f92555d
so, lack of this was causing the team area to be too squat. at this point tho, I get the impression qt.css is outright replaced by birthday/christmas. This seems inconvenient, and if so, we should merge in changes to qt.css which has quite a bit more stuff in it
nemo
parents:
8321
diff
changeset
|
333 |
min-height: 500px; |
1fa74f92555d
so, lack of this was causing the team area to be too squat. at this point tho, I get the impression qt.css is outright replaced by birthday/christmas. This seems inconvenient, and if so, we should merge in changes to qt.css which has quite a bit more stuff in it
nemo
parents:
8321
diff
changeset
|
334 |
} |