Debian Codegraph @

Source/Core/DolphinQt/Styles/Dark/dark.qss

raw
1 /*
2 Theme for a look and feel like our default Windows theme, but dark
3 */
4
5 * {
6 color: #dcdcdc;
7 }
8 *:disabled {
9 color: #7e7e7e;
10 }
11
12 /*
13 window title bars apparently can't be styled
14 would be #000000 for active, #2b2b2b for background
15 */
16
17 QMenu {
18 border: 1px solid #7e7e7e;
19 }
20 QMenuBar {
21 background-color: #202020;
22 color: #dcdcdc;
23 border: 0px;
24 }
25 QMenu {
26 background-color: #202020;
27 color: #dcdcdc;
28 border: 1px solid #7e7e7e;
29 }
30 QMenuBar::item {
31 background-color: #202020;
32 color: #dcdcdc;
33 border: 0px;
34 padding-left: 8px;
35 padding-right: 8px;
36 padding-top: 3px;
37 padding-bottom: 2px;
38 margin: 0px;
39 }
40 QMenuBar {
41 border-color: #404040;
42 }
43 QMenu::item {
44 background-color: #202020;
45 color: #dcdcdc;
46 border: 0px;
47 padding-left: 8px;
48 padding-right: 32px;
49 padding-top: 4px;
50 padding-bottom: 4px;
51 margin: 0px;
52 }
53 QMenuBar::item:hover, QMenuBar::item:selected, QMenu::item:hover, QMenu::item:selected {
54 background-color: #404040;
55 color: #dcdcdc;
56 }
57 QMenuBar::item:disabled, QMenu::item:disabled {
58 color: #7e7e7e;
59 }
60 QMenu::separator {
61 height: 1px;
62 background-color: #7e7e7e;
63 margin-left: 2px;
64 margin-right: 2px;
65 margin-top: 5px;
66 margin-bottom: 5px;
67 }
68
69 QWidget {
70 background-color: #202020;
71 }
72 QColumnView, QListView, QTableView, QTableWidget, QTreeView {
73 background-color: #202020;
74 alternate-background-color: #303030;
75 border: 1px solid #7e7e7e;
76 selection-background-color: #505050; /* #202050; */
77 gridline-color: #606060;
78 }
79 /*
80 would be consistent with Explorer, but Qt keeps the focus color even if you click away from the item, which is confusing
81 QColumnView::item:focus, QListView::item:focus, QTableView::item:focus, QTableWidget::item:focus, QTreeView::item:focus {
82 background-color: #606060;
83 }
84 */
85
86 /*
87 Qt is extremely convinced that the sort arrow belongs on the right side
88 of the header and will reserve space for it there. The padding is to deal with this fact.
89 */
90 QHeaderView::section {
91 background-color: #202020;
92 border: 0px;
93 border-right: 1px solid #7e7e7e;
94 padding-right: -10px;
95 }
96 QHeaderView::section::vertical {
97 padding-left: 10px;
98 padding-right: 0px;
99 }
100 QHeaderView::section:last {
101 border-right: 0px;
102 }
103 QHeaderView::section:hover, QHeaderView::section:checked {
104 background-color: #404040;
105 }
106 QHeaderView::down-arrow {
107 subcontrol-origin: margin;
108 subcontrol-position: top center;
109 image: url(:/dolphin_dark_win/table-header-sort-arrow-down.svg);
110 width: 10px;
111 height: 7px;
112 background: transparent;
113 }
114 QHeaderView::up-arrow {
115 subcontrol-origin: margin;
116 subcontrol-position: top center;
117 image: url(:/dolphin_dark_win/table-header-sort-arrow-up.svg);
118 width: 10px;
119 height: 7px;
120 background: transparent;
121 }
122
123 QTabWidget::pane {
124 border: 1px solid #7e7e7e;
125 top: -1px; /* move border behind tabs */
126 }
127 QTabWidget::tab-bar {
128 left: 2px; /* leave space on the side of the tabs */
129 }
130
131 QTabBar {
132 /* The outline on the focused tab has an incorrect position and as far as I can tell there's no way to move it.
133 So as a hack, remove it and apply an underline to the text instead. */
134 outline: 0px;
135 }
136 QTabBar::tab {
137 background-color: #303030;
138 border-left: 1px solid #7e7e7e;
139 border-right: 1px solid #7e7e7e;
140 border-top: 1px solid #7e7e7e;
141 border-bottom: 1px solid #7e7e7e;
142 padding-top: 2px;
143 padding-bottom: 2px;
144 padding-left: 9px;
145 padding-right: 10px;
146 margin-right: -1px; /* so adjacent tab borders overlap */
147 }
148 QTabBar::tab:only-one {
149 margin-right: 0px;
150 }
151 QTabBar::tab:last {
152 margin-right: 0px;
153 }
154 QTabBar::tab:hover {
155 background-color: #404040;
156 }
157 QTabBar::tab:selected {
158 border-bottom: 0px;
159 background-color: #202020;
160 padding-bottom: 1px;
161 }
162 QTabBar::tab:focus {
163 text-decoration: underline;
164 }
165 QTabBar::tab:!selected {
166 margin-top: 2px;
167 }
168
169 QDockWidget {
170 background-color: #404040;
171 titlebar-close-icon: url(:/dolphin_dark_win/dockwidget-close.svg);
172 titlebar-normal-icon: url(:/dolphin_dark_win/dockwidget-undock.svg);
173 }
174
175 QPushButton {
176 background-color: #303030;
177 border: 1px solid #7e7e7e;
178 padding: 2px;
179 min-width: 67px;
180 }
181 QToolButton {
182 background-color: #303030;
183 border: 1px solid #7e7e7e;
184 padding: 2px;
185 min-width: 24px;
186 min-height: 16px;
187 }
188 QPushButton:hover, QToolButton:hover {
189 background-color: #404040;
190 }
191 QPushButton:focus, QToolButton:focus {
192 background-color: #404040;
193 }
194 QPushButton:disabled, QToolButton:disabled {
195 background-color: #505050;
196 }
197 QPushButton:checked, QToolButton:checked {
198 background-color: #101010;
199 }
200
201 /* the dropdownarrow on the right of the button in menu popup mode */
202 QToolButton[popupMode="1"] {
203 padding-right: 19px;
204 }
205 QToolButton::menu-button {
206 border: 0px;
207 border-left: 1px solid #7e7e7e;
208 width: 18px;
209 }
210 QToolButton::menu-arrow {
211 image: url(:/dolphin_dark_win/down-triangle.svg);
212 width: 14px;
213 }
214
215 /* the icon bar at the top of the main window */
216 QToolBar {
217 border: 0px;
218 }
219 QToolBar QToolButton {
220 border: 0px;
221 padding: 0px;
222 padding-left: 3px;
223 padding-right: 2px;
224 min-width: 50px;
225 background-color: #202020;
226 }
227 QToolBar QToolButton:hover {
228 background-color: #404040;
229 }
230 QToolBar QToolButton:focus {
231 background-color: #404040;
232 }
233 QToolBar QToolButton:disabled {
234 background-color: #202020;
235 }
236 QToolBar::separator {
237 min-width: 0px;
238 width: 1px;
239 margin-left: 3px;
240 margin-right: 2px;
241 background-color: #7e7e7e;
242 }
243
244 QGroupBox {
245 border: 1px solid #7e7e7e;
246 margin-top: 9px;
247 padding-top: 7px;
248 padding-bottom: 0px;
249 padding-left: 1px;
250 padding-right: 1px;
251 }
252 QGroupBox::title {
253 subcontrol-origin: margin;
254 subcontrol-position: top left;
255 left: 9px;
256 padding-top: 1px;
257 min-width: 0px;
258 }
259
260 QLineEdit, QTextEdit {
261 border: 1px solid #7e7e7e;
262 }
263 QLineEdit:disabled, QTextEdit:disabled {
264 background-color: #505050;
265 }
266
267 QComboBox {
268 background-color: #303030;
269 border: 1px solid #7e7e7e;
270 margin: 0px;
271 padding-left: 3px;
272 padding-right: 3px;
273 padding-top: 1px;
274 padding-bottom: 1px;
275 }
276 QComboBox:disabled {
277 background-color: #505050;
278 }
279 QComboBox:selected {
280 background-color: #404040;
281 }
282 QComboBox:editable {
283 background-color: #202020;
284 }
285 QComboBox::drop-down {
286 border: 0px;
287 }
288 QComboBox::down-arrow {
289 image: url(:/dolphin_dark_win/dropdown-arrow.svg);
290 height: 10px;
291 width: 15px;
292 }
293 QComboBox QAbstractItemView {
294 background-color: #303030;
295 selection-background-color: #404040;
296 border: 1px solid #7e7e7e;
297 padding: 0px;
298 margin: 0px;
299 outline: 0px;
300 }
301 QComboBox QAbstractItemView::item:selected {
302 color: #dcdcdc;
303 background-color: #404040;
304 }
305 QComboBox QAbstractItemView::item:last {
306 border: 0px;
307 }
308
309 QScrollBar:vertical {
310 border: 0px;
311 background: #303030;
312 width: 15px;
313 margin: 15px 0px;
314 }
315 QScrollBar::handle:vertical { /* the bar in the middle */
316 border: 0px;
317 background: #606060;
318 min-height: 20px;
319 }
320 QScrollBar::add-line:vertical { /* the down button at the bottom */
321 border: 0px;
322 background: #303030;
323 height: 15px;
324 subcontrol-position: bottom;
325 subcontrol-origin: margin;
326 }
327 QScrollBar::sub-line:vertical { /* the up button at the top */
328 border: 0px;
329 background: #303030;
330 height: 15px;
331 subcontrol-position: top;
332 subcontrol-origin: margin;
333 }
334 QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { /* the area between the bar and the up/down buttons */
335 border: 0px;
336 background: none;
337 }
338 QScrollBar::up-arrow:vertical {
339 image: url(:/dolphin_dark_win/scrollbar-arrow-up.svg);
340 height: 15px;
341 }
342 QScrollBar::down-arrow:vertical {
343 image: url(:/dolphin_dark_win/scrollbar-arrow-down.svg);
344 height: 15px;
345 }
346 QScrollBar:horizontal {
347 border: 0px;
348 background: #303030;
349 height: 15px;
350 margin: 0px 15px;
351 }
352 QScrollBar::handle:horizontal { /* the bar in the middle */
353 border: 0px;
354 background: #606060;
355 min-width: 20px;
356 }
357 QScrollBar::add-line:horizontal { /* the right button */
358 border: 0px;
359 background: #303030;
360 width: 15px;
361 subcontrol-position: right;
362 subcontrol-origin: margin;
363 }
364 QScrollBar::sub-line:horizontal { /* the left button */
365 border: 0px;
366 background: #303030;
367 width: 15px;
368 subcontrol-position: left;
369 subcontrol-origin: margin;
370 }
371 QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { /* the area between the bar and the left/right buttons */
372 border: 0px;
373 background: none;
374 }
375 QScrollBar::left-arrow:horizontal {
376 image: url(:/dolphin_dark_win/scrollbar-arrow-left.svg);
377 width: 15px;
378 }
379 QScrollBar::right-arrow:horizontal {
380 image: url(:/dolphin_dark_win/scrollbar-arrow-right.svg);
381 width: 15px;
382 }
383
384 QSpinBox, QDateEdit, QDateTimeEdit, QTimeEdit, QDoubleSpinBox {
385 border: 1px solid #7e7e7e;
386 padding-right: 4px;
387 }
388 QSpinBox:disabled, QDateEdit:disabled, QDateTimeEdit:disabled, QTimeEdit:disabled, QDoubleSpinBox:disabled {
389 background-color: #505050;
390 }
391 QSpinBox::up-button, QDateEdit::up-button, QDateTimeEdit::up-button, QTimeEdit::up-button, QDoubleSpinBox::up-button {
392 border: 1px transparent;
393 subcontrol-origin: border;
394 subcontrol-position: top right;
395 width: 16px;
396 }
397 QSpinBox::down-button, QDateEdit::down-button, QDateTimeEdit::down-button, QTimeEdit::down-button, QDoubleSpinBox::down-button {
398 border: 1px transparent;
399 subcontrol-origin: border;
400 subcontrol-position: bottom right;
401 width: 16px;
402 }
403 QSpinBox::up-arrow, QDateEdit::up-arrow, QDateTimeEdit::up-arrow, QTimeEdit::up-arrow, QDoubleSpinBox::up-arrow {
404 image: url(:/dolphin_dark_win/up-triangle-spinbox.svg);
405 width: 14px;
406 height: 7px;
407 }
408 QSpinBox::down-arrow, QDateEdit::down-arrow, QDateTimeEdit::down-arrow, QTimeEdit::down-arrow, QDoubleSpinBox::down-arrow {
409 image: url(:/dolphin_dark_win/down-triangle-spinbox.svg);
410 width: 14px;
411 height: 7px;
412 }
413
414 /*
415 QSlider ticks break if you try to style the groove.
416 https://stackoverflow.com/questions/27531542/tick-marks-disappear-on-styled-qslider
417 https://bugreports.qt.io/browse/QTBUG-3564 (yes that's from 2009 and it's still accurate)
418 Truly bizarre. I'll just refrain from styling it from now...
419 */
420 QSlider::handle {
421 background-color: #dcdcdc;
422 }
423 QSlider::handle:disabled {
424 background-color: #7e7e7e;
425 }
426
427 QCheckBox {
428 padding: 2px 0px;
429 }
430 QCheckBox::indicator {
431 padding: 0px;
432 margin: 0px;
433 border: 0px;
434 width: 13px;
435 height: 13px;
436 }
437 QCheckBox::indicator:unchecked {
438 image: url(:/dolphin_dark_win/checkbox-empty.svg);
439 }
440 QCheckBox::indicator:unchecked:disabled {
441 image: url(:/dolphin_dark_win/checkbox-empty-disabled.svg);
442 }
443 QCheckBox::indicator:checked {
444 image: url(:/dolphin_dark_win/checkbox-checked.svg);
445 }
446 QCheckBox::indicator:checked:disabled {
447 image: url(:/dolphin_dark_win/checkbox-checked-disabled.svg);
448 }
449 QCheckBox::indicator:indeterminate {
450 image: url(:/dolphin_dark_win/checkbox-half.svg);
451 }
452 QCheckBox::indicator:indeterminate:disabled {
453 image: url(:/dolphin_dark_win/checkbox-half-disabled.svg);
454 }
455
456 QRadioButton {
457 padding: 2px 0px;
458 }
459 QRadioButton::indicator {
460 padding: 0px;
461 margin: 0px;
462 border: 0px;
463 width: 13px;
464 height: 13px;
465 }
466 QRadioButton::indicator:unchecked {
467 image: url(:/dolphin_dark_win/radiobutton-empty.svg);
468 }
469 QRadioButton::indicator:unchecked:disabled {
470 image: url(:/dolphin_dark_win/radiobutton-empty-disabled.svg);
471 }
472 QRadioButton::indicator:checked {
473 image: url(:/dolphin_dark_win/radiobutton-checked.svg);
474 }
475 QRadioButton::indicator:checked:disabled {
476 image: url(:/dolphin_dark_win/radiobutton-checked-disabled.svg);
477 }
478
479 QListView::indicator:unchecked {
480 image: url(:/dolphin_dark_win/checkbox-empty.svg);
481 }
482 QListView::indicator:checked {
483 image: url(:/dolphin_dark_win/checkbox-checked.svg);
484 }
485 QListView::indicator:indeterminate {
486 image: url(:/dolphin_dark_win/checkbox-half.svg);
487 }
488
489 QTabBar QToolButton {
490 background-color: #202020;
491 min-width: 0px;
492 }
493 QTabBar QToolButton::left-arrow {
494 image: url(:/dolphin_dark_win/left-triangle-tabbar.svg);
495 }
496 QTabBar QToolButton::right-arrow {
497 image: url(:/dolphin_dark_win/right-triangle-tabbar.svg);
498 }
499
500 QTableCornerButton::section {
501 background-color: #202020;
502 border: 1px solid #7e7e7e;
503 border-top: 0px;
504 border-left: 0px;
505 border-bottom: 0px;
506 }
507
508 QProgressBar {
509 background-color: #202020;
510 border: 1px solid #7e7e7e;
511 color: #dcdcdc;
512 text-align: center;
513 }
514 QProgressBar::chunk {
515 background-color: #24a806;
516 width: 1px;
517 }