Debian Codegraph @

dark/dstyle.qss

raw
1 /* ---------------------------------------------------------------------------
2
3 WARNING! File created programmatically. All changes made in this file will be lost!
4
5 Created by the qtsass compiler v0.3.0
6
7 The definitions are in the "qdarkstyle.qss._styles.scss" module
8
9 --------------------------------------------------------------------------- */
10 /* Light Style - QDarkStyleSheet ------------------------------------------ */
11 /*
12
13 See Qt documentation:
14
15 - https://doc.qt.io/qt-5/stylesheet.html
16 - https://doc.qt.io/qt-5/stylesheet-reference.html
17 - https://doc.qt.io/qt-5/stylesheet-examples.html
18
19 --------------------------------------------------------------------------- */
20 /* Reset elements ------------------------------------------------------------
21
22 Resetting everything helps to unify styles across different operating systems
23
24 --------------------------------------------------------------------------- */
25 * {
26 padding: 0px;
27 margin: 0px;
28 border: 0px;
29 border-style: none;
30 border-image: none;
31 outline: 0;
32 }
33
34 /* specific reset for elements inside QToolBar */
35 QToolBar * {
36 margin: 0px;
37 padding: 0px;
38 }
39
40 /* QWidget ----------------------------------------------------------------
41
42 --------------------------------------------------------------------------- */
43 QWidget {
44 background-color: #19232D;
45 border: 0px solid #455364;
46 padding: 0px;
47 color: #E0E1E3;
48 selection-background-color: #346792;
49 selection-color: #E0E1E3;
50 }
51
52 QWidget:disabled {
53 background-color: #19232D;
54 color: #9DA9B5;
55 selection-background-color: #26486B;
56 selection-color: #9DA9B5;
57 }
58
59 QWidget::item:selected {
60 background-color: #346792;
61 }
62
63 QWidget::item:hover:!selected {
64 background-color: #1A72BB;
65 }
66
67 /* QMainWindow ------------------------------------------------------------
68
69 This adjusts the splitter in the dock widget, not qsplitter
70 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmainwindow
71
72 --------------------------------------------------------------------------- */
73 QMainWindow::separator {
74 background-color: #455364;
75 border: 0px solid #19232D;
76 spacing: 0px;
77 padding: 2px;
78 }
79
80 QMainWindow::separator:hover {
81 background-color: #60798B;
82 border: 0px solid #1A72BB;
83 }
84
85 QMainWindow::separator:horizontal {
86 width: 5px;
87 margin-top: 2px;
88 margin-bottom: 2px;
89 image: url(":/dark/rc/toolbar_separator_vertical.png");
90 }
91
92 QMainWindow::separator:vertical {
93 height: 5px;
94 margin-left: 2px;
95 margin-right: 2px;
96 image: url(":/dark/rc/toolbar_separator_horizontal.png");
97 }
98
99 /* QToolTip ---------------------------------------------------------------
100
101 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtooltip
102
103 --------------------------------------------------------------------------- */
104 QToolTip {
105 background-color: #346792;
106 color: #E0E1E3;
107 /* If you remove the border property, background stops working on Windows */
108 border: none;
109 /* Remove padding, for fix combo box tooltip */
110 padding: 0px;
111 /* Remove opacity, fix #174 - may need to use RGBA */
112 }
113
114 /* QStatusBar -------------------------------------------------------------
115
116 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qstatusbar
117
118 --------------------------------------------------------------------------- */
119 QStatusBar {
120 border: 1px solid #455364;
121 /* Fixes Spyder #9120, #9121 */
122 background: #455364;
123 /* Fixes #205, white vertical borders separating items */
124 }
125
126 QStatusBar::item {
127 border: none;
128 }
129
130 QStatusBar QToolTip {
131 background-color: #1A72BB;
132 border: 1px solid #19232D;
133 color: #19232D;
134 /* Remove padding, for fix combo box tooltip */
135 padding: 0px;
136 /* Reducing transparency to read better */
137 opacity: 230;
138 }
139
140 QStatusBar QLabel {
141 /* Fixes Spyder #9120, #9121 */
142 background: transparent;
143 }
144
145 /* QCheckBox --------------------------------------------------------------
146
147 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox
148
149 --------------------------------------------------------------------------- */
150 QCheckBox {
151 background-color: #19232D;
152 color: #E0E1E3;
153 spacing: 4px;
154 outline: none;
155 padding-top: 4px;
156 padding-bottom: 4px;
157 }
158
159 QCheckBox:focus {
160 border: none;
161 }
162
163 QCheckBox QWidget:disabled {
164 background-color: #19232D;
165 color: #9DA9B5;
166 }
167
168 QCheckBox::indicator {
169 margin-left: 2px;
170 height: 14px;
171 width: 14px;
172 }
173
174 QCheckBox::indicator:unchecked {
175 image: url(":/dark/rc/checkbox_unchecked.png");
176 }
177
178 QCheckBox::indicator:unchecked:hover, QCheckBox::indicator:unchecked:focus, QCheckBox::indicator:unchecked:pressed {
179 border: none;
180 image: url(":/dark/rc/checkbox_unchecked_focus.png");
181 }
182
183 QCheckBox::indicator:unchecked:disabled {
184 image: url(":/dark/rc/checkbox_unchecked_disabled.png");
185 }
186
187 QCheckBox::indicator:checked {
188 image: url(":/dark/rc/checkbox_checked.png");
189 }
190
191 QCheckBox::indicator:checked:hover, QCheckBox::indicator:checked:focus, QCheckBox::indicator:checked:pressed {
192 border: none;
193 image: url(":/dark/rc/checkbox_checked_focus.png");
194 }
195
196 QCheckBox::indicator:checked:disabled {
197 image: url(":/dark/rc/checkbox_checked_disabled.png");
198 }
199
200 QCheckBox::indicator:indeterminate {
201 image: url(":/dark/rc/checkbox_indeterminate.png");
202 }
203
204 QCheckBox::indicator:indeterminate:disabled {
205 image: url(":/dark/rc/checkbox_indeterminate_disabled.png");
206 }
207
208 QCheckBox::indicator:indeterminate:focus, QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed {
209 image: url(":/dark/rc/checkbox_indeterminate_focus.png");
210 }
211
212 /* QGroupBox --------------------------------------------------------------
213
214 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qgroupbox
215
216 --------------------------------------------------------------------------- */
217 QGroupBox {
218 font-weight: bold;
219 border: 1px solid #455364;
220 border-radius: 4px;
221 padding: 2px;
222 margin-top: 6px;
223 margin-bottom: 4px;
224 }
225
226 QGroupBox::title {
227 subcontrol-origin: margin;
228 subcontrol-position: top left;
229 left: 4px;
230 padding-left: 2px;
231 padding-right: 4px;
232 padding-top: -4px;
233 }
234
235 QGroupBox::indicator {
236 margin-left: 2px;
237 margin-top: 2px;
238 padding: 0;
239 height: 14px;
240 width: 14px;
241 }
242
243 QGroupBox::indicator:unchecked {
244 border: none;
245 image: url(":/dark/rc/checkbox_unchecked.png");
246 }
247
248 QGroupBox::indicator:unchecked:hover, QGroupBox::indicator:unchecked:focus, QGroupBox::indicator:unchecked:pressed {
249 border: none;
250 image: url(":/dark/rc/checkbox_unchecked_focus.png");
251 }
252
253 QGroupBox::indicator:unchecked:disabled {
254 image: url(":/dark/rc/checkbox_unchecked_disabled.png");
255 }
256
257 QGroupBox::indicator:checked {
258 border: none;
259 image: url(":/dark/rc/checkbox_checked.png");
260 }
261
262 QGroupBox::indicator:checked:hover, QGroupBox::indicator:checked:focus, QGroupBox::indicator:checked:pressed {
263 border: none;
264 image: url(":/dark/rc/checkbox_checked_focus.png");
265 }
266
267 QGroupBox::indicator:checked:disabled {
268 image: url(":/dark/rc/checkbox_checked_disabled.png");
269 }
270
271 /* QRadioButton -----------------------------------------------------------
272
273 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton
274
275 --------------------------------------------------------------------------- */
276 QRadioButton {
277 background-color: #19232D;
278 color: #E0E1E3;
279 spacing: 4px;
280 padding-top: 4px;
281 padding-bottom: 4px;
282 border: none;
283 outline: none;
284 }
285
286 QRadioButton:focus {
287 border: none;
288 }
289
290 QRadioButton:disabled {
291 background-color: #19232D;
292 color: #9DA9B5;
293 border: none;
294 outline: none;
295 }
296
297 QRadioButton QWidget {
298 background-color: #19232D;
299 color: #E0E1E3;
300 spacing: 0px;
301 padding: 0px;
302 outline: none;
303 border: none;
304 }
305
306 QRadioButton::indicator {
307 border: none;
308 outline: none;
309 margin-left: 2px;
310 height: 14px;
311 width: 14px;
312 }
313
314 QRadioButton::indicator:unchecked {
315 image: url(":/dark/rc/radio_unchecked.png");
316 }
317
318 QRadioButton::indicator:unchecked:hover, QRadioButton::indicator:unchecked:focus, QRadioButton::indicator:unchecked:pressed {
319 border: none;
320 outline: none;
321 image: url(":/dark/rc/radio_unchecked_focus.png");
322 }
323
324 QRadioButton::indicator:unchecked:disabled {
325 image: url(":/dark/rc/radio_unchecked_disabled.png");
326 }
327
328 QRadioButton::indicator:checked {
329 border: none;
330 outline: none;
331 image: url(":/dark/rc/radio_checked.png");
332 }
333
334 QRadioButton::indicator:checked:hover, QRadioButton::indicator:checked:focus, QRadioButton::indicator:checked:pressed {
335 border: none;
336 outline: none;
337 image: url(":/dark/rc/radio_checked_focus.png");
338 }
339
340 QRadioButton::indicator:checked:disabled {
341 outline: none;
342 image: url(":/dark/rc/radio_checked_disabled.png");
343 }
344
345 /* QMenuBar ---------------------------------------------------------------
346
347 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar
348
349 --------------------------------------------------------------------------- */
350 QMenuBar {
351 background-color: #455364;
352 padding: 2px;
353 border: 1px solid #19232D;
354 color: #E0E1E3;
355 selection-background-color: #1A72BB;
356 }
357
358 QMenuBar:focus {
359 border: 1px solid #346792;
360 }
361
362 QMenuBar::item {
363 background: transparent;
364 padding: 4px;
365 }
366
367 QMenuBar::item:selected {
368 padding: 4px;
369 background: transparent;
370 border: 0px solid #455364;
371 background-color: #1A72BB;
372 }
373
374 QMenuBar::item:pressed {
375 padding: 4px;
376 border: 0px solid #455364;
377 background-color: #1A72BB;
378 color: #E0E1E3;
379 margin-bottom: 0px;
380 padding-bottom: 0px;
381 }
382
383 /* QMenu ------------------------------------------------------------------
384
385 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
386
387 --------------------------------------------------------------------------- */
388 QMenu {
389 border: 0px solid #455364;
390 color: #E0E1E3;
391 margin: 0px;
392 background-color: #37414F;
393 selection-background-color: #1A72BB;
394 }
395
396 QMenu::separator {
397 height: 1px;
398 background-color: #60798B;
399 color: #E0E1E3;
400 }
401
402 QMenu::item {
403 background-color: #37414F;
404 padding: 4px 24px 4px 28px;
405 /* Reserve space for selection border */
406 border: 1px transparent #455364;
407 }
408
409 QMenu::item:selected {
410 color: #E0E1E3;
411 background-color: #1A72BB;
412 }
413
414 QMenu::item:pressed {
415 background-color: #1A72BB;
416 }
417
418 QMenu::icon {
419 padding-left: 10px;
420 width: 14px;
421 height: 14px;
422 }
423
424 QMenu::indicator {
425 padding-left: 8px;
426 width: 12px;
427 height: 12px;
428 /* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
429 /* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
430 }
431
432 QMenu::indicator:non-exclusive:unchecked {
433 image: url(":/dark/rc/checkbox_unchecked.png");
434 }
435
436 QMenu::indicator:non-exclusive:unchecked:hover, QMenu::indicator:non-exclusive:unchecked:focus, QMenu::indicator:non-exclusive:unchecked:pressed {
437 border: none;
438 image: url(":/dark/rc/checkbox_unchecked_focus.png");
439 }
440
441 QMenu::indicator:non-exclusive:unchecked:disabled {
442 image: url(":/dark/rc/checkbox_unchecked_disabled.png");
443 }
444
445 QMenu::indicator:non-exclusive:checked {
446 image: url(":/dark/rc/checkbox_checked.png");
447 }
448
449 QMenu::indicator:non-exclusive:checked:hover, QMenu::indicator:non-exclusive:checked:focus, QMenu::indicator:non-exclusive:checked:pressed {
450 border: none;
451 image: url(":/dark/rc/checkbox_checked_focus.png");
452 }
453
454 QMenu::indicator:non-exclusive:checked:disabled {
455 image: url(":/dark/rc/checkbox_checked_disabled.png");
456 }
457
458 QMenu::indicator:non-exclusive:indeterminate {
459 image: url(":/dark/rc/checkbox_indeterminate.png");
460 }
461
462 QMenu::indicator:non-exclusive:indeterminate:disabled {
463 image: url(":/dark/rc/checkbox_indeterminate_disabled.png");
464 }
465
466 QMenu::indicator:non-exclusive:indeterminate:focus, QMenu::indicator:non-exclusive:indeterminate:hover, QMenu::indicator:non-exclusive:indeterminate:pressed {
467 image: url(":/dark/rc/checkbox_indeterminate_focus.png");
468 }
469
470 QMenu::indicator:exclusive:unchecked {
471 image: url(":/dark/rc/radio_unchecked.png");
472 }
473
474 QMenu::indicator:exclusive:unchecked:hover, QMenu::indicator:exclusive:unchecked:focus, QMenu::indicator:exclusive:unchecked:pressed {
475 border: none;
476 outline: none;
477 image: url(":/dark/rc/radio_unchecked_focus.png");
478 }
479
480 QMenu::indicator:exclusive:unchecked:disabled {
481 image: url(":/dark/rc/radio_unchecked_disabled.png");
482 }
483
484 QMenu::indicator:exclusive:checked {
485 border: none;
486 outline: none;
487 image: url(":/dark/rc/radio_checked.png");
488 }
489
490 QMenu::indicator:exclusive:checked:hover, QMenu::indicator:exclusive:checked:focus, QMenu::indicator:exclusive:checked:pressed {
491 border: none;
492 outline: none;
493 image: url(":/dark/rc/radio_checked_focus.png");
494 }
495
496 QMenu::indicator:exclusive:checked:disabled {
497 outline: none;
498 image: url(":/dark/rc/radio_checked_disabled.png");
499 }
500
501 QMenu::right-arrow {
502 margin: 5px;
503 padding-left: 12px;
504 image: url(":/dark/rc/arrow_right.png");
505 height: 12px;
506 width: 12px;
507 }
508
509 /* QAbstractItemView ------------------------------------------------------
510
511 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
512
513 --------------------------------------------------------------------------- */
514 QAbstractItemView {
515 alternate-background-color: #19232D;
516 color: #E0E1E3;
517 border: 1px solid #455364;
518 border-radius: 4px;
519 }
520
521 QAbstractItemView QLineEdit {
522 padding: 2px;
523 }
524
525 /* QAbstractScrollArea ----------------------------------------------------
526
527 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
528
529 --------------------------------------------------------------------------- */
530 QAbstractScrollArea {
531 background-color: #19232D;
532 border: 1px solid #455364;
533 border-radius: 4px;
534 /* fix #159 */
535 padding: 1px;
536 /* remove min-height to fix #244 */
537 color: #E0E1E3;
538 }
539
540 QAbstractScrollArea:disabled {
541 color: #9DA9B5;
542 }
543
544 /* QScrollArea ------------------------------------------------------------
545
546 --------------------------------------------------------------------------- */
547 QScrollArea QWidget QWidget:disabled {
548 background-color: #19232D;
549 }
550
551 /* QScrollBar -------------------------------------------------------------
552
553 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar
554
555 --------------------------------------------------------------------------- */
556 QScrollBar:horizontal {
557 height: 10px;
558 margin: 1px 10px 1px 10px;
559 border: 1px solid #455364;
560 border-radius: 3px;
561 background-color: #19232D;
562 }
563
564 QScrollBar:vertical {
565 background-color: #19232D;
566 width: 10px;
567 margin: 10px 1px 10px 1px;
568 border: 1px solid #455364;
569 border-radius: 3px;
570 }
571
572 QScrollBar::handle:horizontal {
573 background-color: #60798B;
574 border: 1px solid #455364;
575 border-radius: 3px;
576 min-width: 6px;
577 }
578
579 QScrollBar::handle:horizontal:hover {
580 background-color: #346792;
581 border: #346792;
582 border-radius: 3px;
583 min-width: 6px;
584 }
585
586 QScrollBar::handle:horizontal:focus {
587 border: 1px solid #1A72BB;
588 }
589
590 QScrollBar::handle:vertical {
591 background-color: #60798B;
592 border: 1px solid #455364;
593 min-height: 8px;
594 border-radius: 4px;
595 }
596
597 QScrollBar::handle:vertical:hover {
598 background-color: #346792;
599 border: #346792;
600 border-radius: 4px;
601 min-height: 8px;
602 }
603
604 QScrollBar::handle:vertical:focus {
605 border: 1px solid #1A72BB;
606 }
607
608 QScrollBar::add-line:horizontal {
609 margin: 0px 0px 0px 0px;
610 border-image: url(":/dark/rc/arrow_right_disabled.png");
611 height: 12px;
612 width: 12px;
613 subcontrol-position: right;
614 subcontrol-origin: margin;
615 }
616
617 QScrollBar::add-line:horizontal:hover, QScrollBar::add-line:horizontal:on {
618 border-image: url(":/dark/rc/arrow_right.png");
619 height: 12px;
620 width: 12px;
621 subcontrol-position: right;
622 subcontrol-origin: margin;
623 }
624
625 QScrollBar::add-line:vertical {
626 margin: 3px 0px 3px 0px;
627 border-image: url(":/dark/rc/arrow_down_disabled.png");
628 height: 12px;
629 width: 12px;
630 subcontrol-position: bottom;
631 subcontrol-origin: margin;
632 }
633
634 QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on {
635 border-image: url(":/dark/rc/arrow_down.png");
636 height: 12px;
637 width: 12px;
638 subcontrol-position: bottom;
639 subcontrol-origin: margin;
640 }
641
642 QScrollBar::sub-line:horizontal {
643 margin: 0px 3px 0px 3px;
644 border-image: url(":/dark/rc/arrow_left_disabled.png");
645 height: 12px;
646 width: 12px;
647 subcontrol-position: left;
648 subcontrol-origin: margin;
649 }
650
651 QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on {
652 border-image: url(":/dark/rc/arrow_left.png");
653 height: 12px;
654 width: 12px;
655 subcontrol-position: left;
656 subcontrol-origin: margin;
657 }
658
659 QScrollBar::sub-line:vertical {
660 margin: 3px 0px 3px 0px;
661 border-image: url(":/dark/rc/arrow_up_disabled.png");
662 height: 12px;
663 width: 12px;
664 subcontrol-position: top;
665 subcontrol-origin: margin;
666 }
667
668 QScrollBar::sub-line:vertical:hover, QScrollBar::sub-line:vertical:on {
669 border-image: url(":/dark/rc/arrow_up.png");
670 height: 12px;
671 width: 12px;
672 subcontrol-position: top;
673 subcontrol-origin: margin;
674 }
675
676 QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal {
677 background: none;
678 }
679
680 QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
681 background: none;
682 }
683
684 QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
685 background: none;
686 }
687
688 QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
689 background: none;
690 }
691
692 /* QTextEdit --------------------------------------------------------------
693
694 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-specific-widgets
695
696 --------------------------------------------------------------------------- */
697 QTextEdit {
698 background-color: #19232D;
699 color: #E0E1E3;
700 border-radius: 4px;
701 border: 1px solid #455364;
702 }
703
704 QTextEdit:focus {
705 border: 1px solid #1A72BB;
706 }
707
708 QTextEdit:selected {
709 background: #346792;
710 color: #455364;
711 }
712
713 /* QPlainTextEdit ---------------------------------------------------------
714
715 --------------------------------------------------------------------------- */
716 QPlainTextEdit {
717 background-color: #19232D;
718 color: #E0E1E3;
719 border-radius: 4px;
720 border: 1px solid #455364;
721 }
722
723 QPlainTextEdit:focus {
724 border: 1px solid #1A72BB;
725 }
726
727 QPlainTextEdit:selected {
728 background: #346792;
729 color: #455364;
730 }
731
732 /* QSizeGrip --------------------------------------------------------------
733
734 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsizegrip
735
736 --------------------------------------------------------------------------- */
737 QSizeGrip {
738 background: transparent;
739 width: 12px;
740 height: 12px;
741 image: url(":/dark/rc/window_grip.png");
742 }
743
744 /* QStackedWidget ---------------------------------------------------------
745
746 --------------------------------------------------------------------------- */
747 QStackedWidget {
748 padding: 2px;
749 border: 1px solid #455364;
750 border: 1px solid #19232D;
751 }
752
753 /* QToolBar ---------------------------------------------------------------
754
755 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
756
757 --------------------------------------------------------------------------- */
758 QToolBar {
759 background-color: #455364;
760 border-bottom: 1px solid #19232D;
761 padding: 1px;
762 font-weight: bold;
763 spacing: 2px;
764 }
765
766 QToolBar:disabled {
767 /* Fixes #272 */
768 background-color: #455364;
769 }
770
771 QToolBar::handle:horizontal {
772 width: 16px;
773 image: url(":/dark/rc/toolbar_move_horizontal.png");
774 }
775
776 QToolBar::handle:vertical {
777 height: 16px;
778 image: url(":/dark/rc/toolbar_move_vertical.png");
779 }
780
781 QToolBar::separator:horizontal {
782 width: 16px;
783 image: url(":/dark/rc/toolbar_separator_horizontal.png");
784 }
785
786 QToolBar::separator:vertical {
787 height: 16px;
788 image: url(":/dark/rc/toolbar_separator_vertical.png");
789 }
790
791 QToolButton#qt_toolbar_ext_button {
792 background: #455364;
793 border: 0px;
794 color: #E0E1E3;
795 image: url(":/dark/rc/arrow_right.png");
796 }
797
798 /* QAbstractSpinBox -------------------------------------------------------
799
800 --------------------------------------------------------------------------- */
801 QAbstractSpinBox {
802 background-color: #19232D;
803 border: 1px solid #455364;
804 color: #E0E1E3;
805 /* This fixes 103, 111 */
806 padding-top: 2px;
807 /* This fixes 103, 111 */
808 padding-bottom: 2px;
809 padding-left: 4px;
810 padding-right: 4px;
811 border-radius: 4px;
812 /* min-width: 5px; removed to fix 109 */
813 }
814
815 QAbstractSpinBox:up-button {
816 background-color: transparent #19232D;
817 subcontrol-origin: border;
818 subcontrol-position: top right;
819 border-left: 1px solid #455364;
820 border-bottom: 1px solid #455364;
821 border-top-left-radius: 0;
822 border-bottom-left-radius: 0;
823 margin: 1px;
824 width: 12px;
825 margin-bottom: -1px;
826 }
827
828 QAbstractSpinBox::up-arrow, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::up-arrow:off {
829 image: url(":/dark/rc/arrow_up_disabled.png");
830 height: 8px;
831 width: 8px;
832 }
833
834 QAbstractSpinBox::up-arrow:hover {
835 image: url(":/dark/rc/arrow_up.png");
836 }
837
838 QAbstractSpinBox:down-button {
839 background-color: transparent #19232D;
840 subcontrol-origin: border;
841 subcontrol-position: bottom right;
842 border-left: 1px solid #455364;
843 border-top: 1px solid #455364;
844 border-top-left-radius: 0;
845 border-bottom-left-radius: 0;
846 margin: 1px;
847 width: 12px;
848 margin-top: -1px;
849 }
850
851 QAbstractSpinBox::down-arrow, QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::down-arrow:off {
852 image: url(":/dark/rc/arrow_down_disabled.png");
853 height: 8px;
854 width: 8px;
855 }
856
857 QAbstractSpinBox::down-arrow:hover {
858 image: url(":/dark/rc/arrow_down.png");
859 }
860
861 QAbstractSpinBox:hover {
862 border: 1px solid #346792;
863 color: #E0E1E3;
864 }
865
866 QAbstractSpinBox:focus {
867 border: 1px solid #1A72BB;
868 }
869
870 QAbstractSpinBox:selected {
871 background: #346792;
872 color: #455364;
873 }
874
875 /* ------------------------------------------------------------------------ */
876 /* DISPLAYS --------------------------------------------------------------- */
877 /* ------------------------------------------------------------------------ */
878 /* QLabel -----------------------------------------------------------------
879
880 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
881
882 --------------------------------------------------------------------------- */
883 QLabel {
884 background-color: #19232D;
885 border: 0px solid #455364;
886 padding: 2px;
887 margin: 0px;
888 color: #E0E1E3;
889 }
890
891 QLabel:disabled {
892 background-color: #19232D;
893 border: 0px solid #455364;
894 color: #9DA9B5;
895 }
896
897 /* QTextBrowser -----------------------------------------------------------
898
899 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
900
901 --------------------------------------------------------------------------- */
902 QTextBrowser {
903 background-color: #19232D;
904 border: 1px solid #455364;
905 color: #E0E1E3;
906 border-radius: 4px;
907 }
908
909 QTextBrowser:disabled {
910 background-color: #19232D;
911 border: 1px solid #455364;
912 color: #9DA9B5;
913 border-radius: 4px;
914 }
915
916 QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pressed {
917 border: 1px solid #455364;
918 }
919
920 /* QGraphicsView ----------------------------------------------------------
921
922 --------------------------------------------------------------------------- */
923 QGraphicsView {
924 background-color: #19232D;
925 border: 1px solid #455364;
926 color: #E0E1E3;
927 border-radius: 4px;
928 }
929
930 QGraphicsView:disabled {
931 background-color: #19232D;
932 border: 1px solid #455364;
933 color: #9DA9B5;
934 border-radius: 4px;
935 }
936
937 QGraphicsView:hover, QGraphicsView:!hover, QGraphicsView:selected, QGraphicsView:pressed {
938 border: 1px solid #455364;
939 }
940
941 /* QCalendarWidget --------------------------------------------------------
942
943 --------------------------------------------------------------------------- */
944 QCalendarWidget {
945 border: 1px solid #455364;
946 border-radius: 4px;
947 }
948
949 QCalendarWidget:disabled {
950 background-color: #19232D;
951 color: #9DA9B5;
952 }
953
954 /* QLCDNumber -------------------------------------------------------------
955
956 --------------------------------------------------------------------------- */
957 QLCDNumber {
958 background-color: #19232D;
959 color: #E0E1E3;
960 }
961
962 QLCDNumber:disabled {
963 background-color: #19232D;
964 color: #9DA9B5;
965 }
966
967 /* QProgressBar -----------------------------------------------------------
968
969 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
970
971 --------------------------------------------------------------------------- */
972 QProgressBar {
973 background-color: #19232D;
974 border: 1px solid #455364;
975 color: #E0E1E3;
976 border-radius: 4px;
977 text-align: center;
978 }
979
980 QProgressBar:disabled {
981 background-color: #19232D;
982 border: 1px solid #455364;
983 color: #9DA9B5;
984 border-radius: 4px;
985 text-align: center;
986 }
987
988 QProgressBar::chunk {
989 background-color: #346792;
990 color: #19232D;
991 border-radius: 4px;
992 }
993
994 QProgressBar::chunk:disabled {
995 background-color: #26486B;
996 color: #9DA9B5;
997 border-radius: 4px;
998 }
999
1000 /* ------------------------------------------------------------------------ */
1001 /* BUTTONS ---------------------------------------------------------------- */
1002 /* ------------------------------------------------------------------------ */
1003 /* QPushButton ------------------------------------------------------------
1004
1005 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton
1006
1007 --------------------------------------------------------------------------- */
1008 QPushButton {
1009 background-color: #455364;
1010 color: #E0E1E3;
1011 border-radius: 4px;
1012 padding: 2px;
1013 outline: none;
1014 border: none;
1015 }
1016
1017 QPushButton:disabled {
1018 background-color: #455364;
1019 color: #9DA9B5;
1020 border-radius: 4px;
1021 padding: 2px;
1022 }
1023
1024 QPushButton:checked {
1025 background-color: #60798B;
1026 border-radius: 4px;
1027 padding: 2px;
1028 outline: none;
1029 }
1030
1031 QPushButton:checked:disabled {
1032 background-color: #60798B;
1033 color: #9DA9B5;
1034 border-radius: 4px;
1035 padding: 2px;
1036 outline: none;
1037 }
1038
1039 QPushButton:checked:selected {
1040 background: #60798B;
1041 }
1042
1043 QPushButton:hover {
1044 background-color: #54687A;
1045 color: #E0E1E3;
1046 }
1047
1048 QPushButton:pressed {
1049 background-color: #60798B;
1050 }
1051
1052 QPushButton:selected {
1053 background: #60798B;
1054 color: #E0E1E3;
1055 }
1056
1057 QPushButton:focus {
1058 border: 2px solid #00885d;
1059 border-width: 2px;
1060 border-style: solid;
1061 border-radius: 4px;
1062 }
1063
1064 QPushButton::menu-indicator {
1065 subcontrol-origin: padding;
1066 subcontrol-position: bottom right;
1067 bottom: 4px;
1068 }
1069
1070 QDialogButtonBox QPushButton {
1071 /* Issue #194 #248 - Special case of QPushButton inside dialogs, for better UI */
1072 min-width: 80px;
1073 }
1074
1075 /* QToolButton ------------------------------------------------------------
1076
1077 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
1078
1079 --------------------------------------------------------------------------- */
1080 QToolButton {
1081 background-color: #455364;
1082 border: 1px solid #455364;
1083 color: #E0E1E3;
1084 border-radius: 4px;
1085 padding: 2px;
1086 outline: none;
1087 border: none;
1088 /* The subcontrols below are used only in the DelayedPopup mode */
1089 /* The subcontrols below are used only in the MenuButtonPopup mode */
1090 /* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
1091 }
1092
1093 QToolButton:disabled {
1094 background-color: #455364;
1095 border: 1px solid #455364;
1096 color: #9DA9B5;
1097 border-radius: 4px;
1098 padding: 2px;
1099 }
1100
1101 QToolButton:checked {
1102 background-color: #60798B;
1103 border-radius: 4px;
1104 border: 1px solid #009900;
1105 padding: 2px;
1106 outline: none;
1107 }
1108
1109 QToolButton:checked:disabled {
1110 background-color: #60798B;
1111 color: #9DA9B5;
1112 border: 1px solid #009900;
1113 border-radius: 4px;
1114 padding: 2px;
1115 outline: none;
1116 }
1117
1118 QToolButton:checked:hover {
1119 background-color: #54687A;
1120 border: 1px solid #009900;
1121 color: #E0E1E3;
1122 }
1123
1124 QToolButton:checked:pressed {
1125 background-color: #60798B;
1126 border: 1px solid #009900;
1127 }
1128
1129 QToolButton:checked:selected {
1130 background: #60798B;
1131 border: 1px solid #009900;
1132 color: #E0E1E3;
1133 }
1134
1135 QToolButton:hover {
1136 background-color: #54687A;
1137 border: 1px solid #455364;
1138 color: #E0E1E3;
1139 }
1140
1141 QToolButton:pressed {
1142 background-color: #60798B;
1143 border: 1px solid #455364;
1144 }
1145
1146 QToolButton:selected {
1147 background: #60798B;
1148 border: 1px solid #455364;
1149 color: #E0E1E3;
1150 }
1151
1152 QToolButton[popupMode="0"] {
1153 /* Only for DelayedPopup */
1154 padding-right: 2px;
1155 }
1156
1157 QToolButton[popupMode="1"] {
1158 /* Only for MenuButtonPopup */
1159 padding-right: 20px;
1160 }
1161
1162 QToolButton[popupMode="1"]::menu-button {
1163 border: none;
1164 }
1165
1166 QToolButton[popupMode="1"]::menu-button:hover {
1167 border: none;
1168 border-left: 1px solid #455364;
1169 border-radius: 0;
1170 }
1171
1172 QToolButton[popupMode="2"] {
1173 /* Only for InstantPopup */
1174 padding-right: 2px;
1175 }
1176
1177 QToolButton::menu-button {
1178 padding: 2px;
1179 border-radius: 4px;
1180 width: 12px;
1181 border: none;
1182 outline: none;
1183 }
1184
1185 QToolButton::menu-button:hover {
1186 border: 1px solid #346792;
1187 }
1188
1189 QToolButton::menu-button:checked:hover {
1190 border: 1px solid #346792;
1191 }
1192
1193 QToolButton::menu-indicator {
1194 image: url(":/dark/rc/arrow_down.png");
1195 height: 8px;
1196 width: 8px;
1197 top: 0;
1198 /* Exclude a shift for better image */
1199 left: -2px;
1200 /* Shift it a bit */
1201 }
1202
1203 QToolButton::menu-arrow {
1204 image: url(":/dark/rc/arrow_down.png");
1205 height: 8px;
1206 width: 8px;
1207 }
1208
1209 QToolButton::menu-arrow:hover {
1210 image: url(":/dark/rc/arrow_down_focus.png");
1211 }
1212
1213 /* QCommandLinkButton -----------------------------------------------------
1214
1215 --------------------------------------------------------------------------- */
1216 QCommandLinkButton {
1217 background-color: transparent;
1218 border: 1px solid #455364;
1219 color: #E0E1E3;
1220 border-radius: 4px;
1221 padding: 0px;
1222 margin: 0px;
1223 }
1224
1225 QCommandLinkButton:disabled {
1226 background-color: transparent;
1227 color: #9DA9B5;
1228 }
1229
1230 /* ------------------------------------------------------------------------ */
1231 /* INPUTS - NO FIELDS ----------------------------------------------------- */
1232 /* ------------------------------------------------------------------------ */
1233 /* QComboBox --------------------------------------------------------------
1234
1235 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
1236
1237 --------------------------------------------------------------------------- */
1238 QComboBox {
1239 border: 1px solid #455364;
1240 border-radius: 4px;
1241 selection-background-color: #346792;
1242 padding-left: 4px;
1243 padding-right: 4px;
1244 /* padding-right = 36; 4 + 16*2 See scrollbar size */
1245 /* changed to 4px to fix #239 */
1246 /* Fixes #103, #111 */
1247 min-height: 1.5em;
1248 /* padding-top: 2px; removed to fix #132 */
1249 /* padding-bottom: 2px; removed to fix #132 */
1250 /* min-width: 75px; removed to fix #109 */
1251 /* Needed to remove indicator - fix #132 */
1252 }
1253
1254 QComboBox QAbstractItemView {
1255 border: 1px solid #455364;
1256 border-radius: 0;
1257 background-color: #19232D;
1258 selection-background-color: #346792;
1259 }
1260
1261 QComboBox QAbstractItemView:hover {
1262 background-color: #19232D;
1263 color: #E0E1E3;
1264 }
1265
1266 QComboBox QAbstractItemView:selected {
1267 background: #346792;
1268 color: #455364;
1269 }
1270
1271 QComboBox QAbstractItemView:alternate {
1272 background: #19232D;
1273 }
1274
1275 QComboBox:disabled {
1276 background-color: #19232D;
1277 color: #9DA9B5;
1278 }
1279
1280 QComboBox:hover {
1281 border: 1px solid #346792;
1282 }
1283
1284 QComboBox:focus {
1285 border: 1px solid #1A72BB;
1286 }
1287
1288 QComboBox:on {
1289 selection-background-color: #346792;
1290 }
1291
1292 QComboBox::indicator {
1293 border: none;
1294 border-radius: 0;
1295 background-color: transparent;
1296 selection-background-color: transparent;
1297 color: transparent;
1298 selection-color: transparent;
1299 /* Needed to remove indicator - fix #132 */
1300 }
1301
1302 QComboBox::indicator:alternate {
1303 background: #19232D;
1304 }
1305
1306 QComboBox::item:alternate {
1307 background: #19232D;
1308 }
1309
1310 QComboBox::item:checked {
1311 font-weight: bold;
1312 }
1313
1314 QComboBox::item:selected {
1315 border: 0px solid transparent;
1316 }
1317
1318 QComboBox::drop-down {
1319 subcontrol-origin: padding;
1320 subcontrol-position: top right;
1321 width: 12px;
1322 border-left: 1px solid #455364;
1323 }
1324
1325 QComboBox::down-arrow {
1326 image: url(":/dark/rc/arrow_down_disabled.png");
1327 height: 8px;
1328 width: 8px;
1329 }
1330
1331 QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
1332 image: url(":/dark/rc/arrow_down.png");
1333 }
1334
1335 /* QSlider ----------------------------------------------------------------
1336
1337 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
1338
1339 --------------------------------------------------------------------------- */
1340 QSlider:disabled {
1341 background: #19232D;
1342 }
1343
1344 QSlider:focus {
1345 border: none;
1346 }
1347
1348 QSlider::groove:horizontal {
1349 background: #455364;
1350 border: 1px solid #455364;
1351 height: 4px;
1352 margin: 0px;
1353 border-radius: 4px;
1354 }
1355
1356 QSlider::groove:vertical {
1357 background: #455364;
1358 border: 1px solid #455364;
1359 width: 4px;
1360 margin: 0px;
1361 border-radius: 4px;
1362 }
1363
1364 QSlider::add-page:vertical {
1365 background: #346792;
1366 border: 1px solid #455364;
1367 width: 4px;
1368 margin: 0px;
1369 border-radius: 4px;
1370 }
1371
1372 QSlider::add-page:vertical :disabled {
1373 background: #26486B;
1374 }
1375
1376 QSlider::sub-page:horizontal {
1377 background: #346792;
1378 border: 1px solid #455364;
1379 height: 4px;
1380 margin: 0px;
1381 border-radius: 4px;
1382 }
1383
1384 QSlider::sub-page:horizontal:disabled {
1385 background: #26486B;
1386 }
1387
1388 QSlider::handle:horizontal {
1389 background: #9DA9B5;
1390 border: 1px solid #455364;
1391 width: 8px;
1392 height: 8px;
1393 margin: -8px 0px;
1394 border-radius: 4px;
1395 }
1396
1397 QSlider::handle:horizontal:hover {
1398 background: #346792;
1399 border: 1px solid #346792;
1400 }
1401
1402 QSlider::handle:horizontal:focus {
1403 border: 1px solid #1A72BB;
1404 }
1405
1406 QSlider::handle:vertical {
1407 background: #9DA9B5;
1408 border: 1px solid #455364;
1409 width: 8px;
1410 height: 8px;
1411 margin: 0 -8px;
1412 border-radius: 4px;
1413 }
1414
1415 QSlider::handle:vertical:hover {
1416 background: #346792;
1417 border: 1px solid #346792;
1418 }
1419
1420 QSlider::handle:vertical:focus {
1421 border: 1px solid #1A72BB;
1422 }
1423
1424 /* QLineEdit --------------------------------------------------------------
1425
1426 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
1427
1428 --------------------------------------------------------------------------- */
1429 QLineEdit {
1430 background-color: #19232D;
1431 padding-top: 2px;
1432 /* This QLineEdit fix 103, 111 */
1433 padding-bottom: 2px;
1434 /* This QLineEdit fix 103, 111 */
1435 padding-left: 4px;
1436 padding-right: 4px;
1437 border-style: solid;
1438 border: 1px solid #455364;
1439 border-radius: 4px;
1440 color: #E0E1E3;
1441 }
1442
1443 QLineEdit:disabled {
1444 background-color: #19232D;
1445 color: #9DA9B5;
1446 }
1447
1448 QLineEdit:hover {
1449 border: 1px solid #346792;
1450 color: #E0E1E3;
1451 }
1452
1453 QLineEdit:focus {
1454 border: 1px solid #1A72BB;
1455 }
1456
1457 QLineEdit:selected {
1458 background-color: #346792;
1459 color: #455364;
1460 }
1461
1462 /* QTabWiget --------------------------------------------------------------
1463
1464 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1465
1466 --------------------------------------------------------------------------- */
1467 QTabWidget {
1468 padding: 2px;
1469 selection-background-color: #455364;
1470 }
1471
1472 QTabWidget QWidget {
1473 /* Fixes #189 */
1474 border-radius: 4px;
1475 }
1476
1477 QTabWidget::pane {
1478 border: 1px solid #455364;
1479 border-radius: 4px;
1480 margin: 0px;
1481 /* Fixes double border inside pane with pyqt5 */
1482 padding: 0px;
1483 }
1484
1485 QTabWidget::pane:selected {
1486 background-color: #455364;
1487 border: 1px solid #346792;
1488 }
1489
1490 /* QTabBar ----------------------------------------------------------------
1491
1492 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1493
1494 --------------------------------------------------------------------------- */
1495 QTabBar, QDockWidget QTabBar {
1496 qproperty-drawBase: 0;
1497 border-radius: 4px;
1498 margin: 0px;
1499 padding: 2px;
1500 border: 0;
1501 /* left: 5px; move to the right by 5px - removed for fix */
1502 }
1503
1504 QTabBar::close-button, QDockWidget QTabBar::close-button {
1505 border: 0;
1506 margin: 0;
1507 padding: 4px;
1508 image: url(":/dark/rc/window_close.png");
1509 }
1510
1511 QTabBar::close-button:hover, QDockWidget QTabBar::close-button:hover {
1512 image: url(":/dark/rc/window_close_focus.png");
1513 }
1514
1515 QTabBar::close-button:pressed, QDockWidget QTabBar::close-button:pressed {
1516 image: url(":/dark/rc/window_close_pressed.png");
1517 }
1518
1519 QTabBar::tab, QDockWidget QTabBar::tab {
1520 /* !selected and disabled ----------------------------------------- */
1521 /* selected ------------------------------------------------------- */
1522 }
1523
1524 QTabBar::tab:top:selected:disabled, QDockWidget QTabBar::tab:top:selected:disabled {
1525 border-bottom: 3px solid #26486B;
1526 color: #9DA9B5;
1527 background-color: #455364;
1528 }
1529
1530 QTabBar::tab:bottom:selected:disabled, QDockWidget QTabBar::tab:bottom:selected:disabled {
1531 border-top: 3px solid #26486B;
1532 color: #9DA9B5;
1533 background-color: #455364;
1534 }
1535
1536 QTabBar::tab:left:selected:disabled, QDockWidget QTabBar::tab:left:selected:disabled {
1537 border-right: 3px solid #26486B;
1538 color: #9DA9B5;
1539 background-color: #455364;
1540 }
1541
1542 QTabBar::tab:right:selected:disabled, QDockWidget QTabBar::tab:right:selected:disabled {
1543 border-left: 3px solid #26486B;
1544 color: #9DA9B5;
1545 background-color: #455364;
1546 }
1547
1548 QTabBar::tab:top:!selected:disabled, QDockWidget QTabBar::tab:top:!selected:disabled {
1549 border-bottom: 3px solid #19232D;
1550 color: #9DA9B5;
1551 background-color: #19232D;
1552 }
1553
1554 QTabBar::tab:bottom:!selected:disabled, QDockWidget QTabBar::tab:bottom:!selected:disabled {
1555 border-top: 3px solid #19232D;
1556 color: #9DA9B5;
1557 background-color: #19232D;
1558 }
1559
1560 QTabBar::tab:left:!selected:disabled, QDockWidget QTabBar::tab:left:!selected:disabled {
1561 border-right: 3px solid #19232D;
1562 color: #9DA9B5;
1563 background-color: #19232D;
1564 }
1565
1566 QTabBar::tab:right:!selected:disabled, QDockWidget QTabBar::tab:right:!selected:disabled {
1567 border-left: 3px solid #19232D;
1568 color: #9DA9B5;
1569 background-color: #19232D;
1570 }
1571
1572 QTabBar::tab:top:!selected, QDockWidget QTabBar::tab:top:!selected {
1573 border-bottom: 2px solid #19232D;
1574 margin-top: 2px;
1575 }
1576
1577 QTabBar::tab:bottom:!selected, QDockWidget QTabBar::tab:bottom:!selected {
1578 border-top: 2px solid #19232D;
1579 margin-bottom: 2px;
1580 }
1581
1582 QTabBar::tab:left:!selected, QDockWidget QTabBar::tab:left:!selected {
1583 border-left: 2px solid #19232D;
1584 margin-right: 2px;
1585 }
1586
1587 QTabBar::tab:right:!selected, QDockWidget QTabBar::tab:right:!selected {
1588 border-right: 2px solid #19232D;
1589 margin-left: 2px;
1590 }
1591
1592 QTabBar::tab:top, QDockWidget QTabBar::tab:top {
1593 background-color: #455364;
1594 margin-left: 2px;
1595 padding-left: 4px;
1596 padding-right: 4px;
1597 padding-top: 2px;
1598 padding-bottom: 2px;
1599 min-width: 5px;
1600 border-bottom: 3px solid #455364;
1601 border-top-left-radius: 4px;
1602 border-top-right-radius: 4px;
1603 }
1604
1605 QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
1606 background-color: #54687A;
1607 border-bottom: 3px solid #259AE9;
1608 border-top-left-radius: 4px;
1609 border-top-right-radius: 4px;
1610 }
1611
1612 QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
1613 border: 1px solid #1A72BB;
1614 border-bottom: 3px solid #1A72BB;
1615 /* Fixes spyder-ide/spyder#9766 and #243 */
1616 padding-left: 3px;
1617 padding-right: 3px;
1618 }
1619
1620 QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
1621 border-top: 3px solid #455364;
1622 background-color: #455364;
1623 margin-left: 2px;
1624 padding-left: 4px;
1625 padding-right: 4px;
1626 padding-top: 2px;
1627 padding-bottom: 2px;
1628 border-bottom-left-radius: 4px;
1629 border-bottom-right-radius: 4px;
1630 min-width: 5px;
1631 }
1632
1633 QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
1634 background-color: #54687A;
1635 border-top: 3px solid #259AE9;
1636 border-bottom-left-radius: 4px;
1637 border-bottom-right-radius: 4px;
1638 }
1639
1640 QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
1641 border: 1px solid #1A72BB;
1642 border-top: 3px solid #1A72BB;
1643 /* Fixes spyder-ide/spyder#9766 and #243 */
1644 padding-left: 3px;
1645 padding-right: 3px;
1646 }
1647
1648 QTabBar::tab:left, QDockWidget QTabBar::tab:left {
1649 background-color: #455364;
1650 margin-top: 2px;
1651 padding-left: 2px;
1652 padding-right: 2px;
1653 padding-top: 4px;
1654 padding-bottom: 4px;
1655 border-top-left-radius: 4px;
1656 border-bottom-left-radius: 4px;
1657 min-height: 5px;
1658 }
1659
1660 QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
1661 background-color: #54687A;
1662 border-right: 3px solid #259AE9;
1663 }
1664
1665 QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
1666 border: 1px solid #1A72BB;
1667 border-right: 3px solid #1A72BB;
1668 /* Fixes different behavior #271 */
1669 margin-right: 0px;
1670 padding-right: -1px;
1671 }
1672
1673 QTabBar::tab:right, QDockWidget QTabBar::tab:right {
1674 background-color: #455364;
1675 margin-top: 2px;
1676 padding-left: 2px;
1677 padding-right: 2px;
1678 padding-top: 4px;
1679 padding-bottom: 4px;
1680 border-top-right-radius: 4px;
1681 border-bottom-right-radius: 4px;
1682 min-height: 5px;
1683 }
1684
1685 QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
1686 background-color: #54687A;
1687 border-left: 3px solid #259AE9;
1688 }
1689
1690 QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
1691 border: 1px solid #1A72BB;
1692 border-left: 3px solid #1A72BB;
1693 /* Fixes different behavior #271 */
1694 margin-left: 0px;
1695 padding-left: 0px;
1696 }
1697
1698 QTabBar QToolButton, QDockWidget QTabBar QToolButton {
1699 /* Fixes #136 */
1700 background-color: #455364;
1701 height: 12px;
1702 width: 12px;
1703 }
1704
1705 QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
1706 background-color: #455364;
1707 }
1708
1709 QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
1710 border: 1px solid #346792;
1711 }
1712
1713 QTabBar QToolButton::left-arrow:enabled, QDockWidget QTabBar QToolButton::left-arrow:enabled {
1714 image: url(":/dark/rc/arrow_left.png");
1715 }
1716
1717 QTabBar QToolButton::left-arrow:disabled, QDockWidget QTabBar QToolButton::left-arrow:disabled {
1718 image: url(":/dark/rc/arrow_left_disabled.png");
1719 }
1720
1721 QTabBar QToolButton::right-arrow:enabled, QDockWidget QTabBar QToolButton::right-arrow:enabled {
1722 image: url(":/dark/rc/arrow_right.png");
1723 }
1724
1725 QTabBar QToolButton::right-arrow:disabled, QDockWidget QTabBar QToolButton::right-arrow:disabled {
1726 image: url(":/dark/rc/arrow_right_disabled.png");
1727 }
1728
1729 /* QDockWiget -------------------------------------------------------------
1730
1731 --------------------------------------------------------------------------- */
1732 QDockWidget {
1733 outline: 1px solid #455364;
1734 background-color: #19232D;
1735 border: 1px solid #455364;
1736 border-radius: 4px;
1737 titlebar-close-icon: url(":/dark/rc/transparent.png");
1738 titlebar-normal-icon: url(":/dark/rc/transparent.png");
1739 }
1740
1741 QDockWidget::title {
1742 /* Better size for title bar */
1743 padding: 3px;
1744 spacing: 4px;
1745 border: none;
1746 background-color: #455364;
1747 }
1748
1749 QDockWidget::close-button {
1750 icon-size: 12px;
1751 border: none;
1752 background: transparent;
1753 background-image: transparent;
1754 border: 0;
1755 margin: 0;
1756 padding: 0;
1757 image: url(":/dark/rc/window_close.png");
1758 }
1759
1760 QDockWidget::close-button:hover {
1761 image: url(":/dark/rc/window_close_focus.png");
1762 }
1763
1764 QDockWidget::close-button:pressed {
1765 image: url(":/dark/rc/window_close_pressed.png");
1766 }
1767
1768 QDockWidget::float-button {
1769 icon-size: 12px;
1770 border: none;
1771 background: transparent;
1772 background-image: transparent;
1773 border: 0;
1774 margin: 0;
1775 padding: 0;
1776 image: url(":/dark/rc/window_undock.png");
1777 }
1778
1779 QDockWidget::float-button:hover {
1780 image: url(":/dark/rc/window_undock_focus.png");
1781 }
1782
1783 QDockWidget::float-button:pressed {
1784 image: url(":/dark/rc/window_undock_pressed.png");
1785 }
1786
1787 /* QTreeView QListView QTableView -----------------------------------------
1788
1789 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
1790 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
1791 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
1792
1793 --------------------------------------------------------------------------- */
1794 QTreeView:branch:selected, QTreeView:branch:hover {
1795 background: url(":/dark/rc/transparent.png");
1796 }
1797
1798 QTreeView:branch:has-siblings:!adjoins-item {
1799 border-image: url(":/dark/rc/branch_line.png") 0;
1800 }
1801
1802 QTreeView:branch:has-siblings:adjoins-item {
1803 border-image: url(":/dark/rc/branch_more.png") 0;
1804 }
1805
1806 QTreeView:branch:!has-children:!has-siblings:adjoins-item {
1807 border-image: url(":/dark/rc/branch_end.png") 0;
1808 }
1809
1810 QTreeView:branch:has-children:!has-siblings:closed, QTreeView:branch:closed:has-children:has-siblings {
1811 border-image: none;
1812 image: url(":/dark/rc/branch_closed.png");
1813 }
1814
1815 QTreeView:branch:open:has-children:!has-siblings, QTreeView:branch:open:has-children:has-siblings {
1816 border-image: none;
1817 image: url(":/dark/rc/branch_open.png");
1818 }
1819
1820 QTreeView:branch:has-children:!has-siblings:closed:hover, QTreeView:branch:closed:has-children:has-siblings:hover {
1821 image: url(":/dark/rc/branch_closed_focus.png");
1822 }
1823
1824 QTreeView:branch:open:has-children:!has-siblings:hover, QTreeView:branch:open:has-children:has-siblings:hover {
1825 image: url(":/dark/rc/branch_open_focus.png");
1826 }
1827
1828 QTreeView::indicator:checked,
1829 QListView::indicator:checked,
1830 QTableView::indicator:checked,
1831 QColumnView::indicator:checked {
1832 image: url(":/dark/rc/checkbox_checked.png");
1833 }
1834
1835 QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
1836 QListView::indicator:checked:hover,
1837 QListView::indicator:checked:focus,
1838 QListView::indicator:checked:pressed,
1839 QTableView::indicator:checked:hover,
1840 QTableView::indicator:checked:focus,
1841 QTableView::indicator:checked:pressed,
1842 QColumnView::indicator:checked:hover,
1843 QColumnView::indicator:checked:focus,
1844 QColumnView::indicator:checked:pressed {
1845 image: url(":/dark/rc/checkbox_checked_focus.png");
1846 }
1847
1848 QTreeView::indicator:unchecked,
1849 QListView::indicator:unchecked,
1850 QTableView::indicator:unchecked,
1851 QColumnView::indicator:unchecked {
1852 image: url(":/dark/rc/checkbox_unchecked.png");
1853 }
1854
1855 QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
1856 QListView::indicator:unchecked:hover,
1857 QListView::indicator:unchecked:focus,
1858 QListView::indicator:unchecked:pressed,
1859 QTableView::indicator:unchecked:hover,
1860 QTableView::indicator:unchecked:focus,
1861 QTableView::indicator:unchecked:pressed,
1862 QColumnView::indicator:unchecked:hover,
1863 QColumnView::indicator:unchecked:focus,
1864 QColumnView::indicator:unchecked:pressed {
1865 image: url(":/dark/rc/checkbox_unchecked_focus.png");
1866 }
1867
1868 QTreeView::indicator:indeterminate,
1869 QListView::indicator:indeterminate,
1870 QTableView::indicator:indeterminate,
1871 QColumnView::indicator:indeterminate {
1872 image: url(":/dark/rc/checkbox_indeterminate.png");
1873 }
1874
1875 QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
1876 QListView::indicator:indeterminate:hover,
1877 QListView::indicator:indeterminate:focus,
1878 QListView::indicator:indeterminate:pressed,
1879 QTableView::indicator:indeterminate:hover,
1880 QTableView::indicator:indeterminate:focus,
1881 QTableView::indicator:indeterminate:pressed,
1882 QColumnView::indicator:indeterminate:hover,
1883 QColumnView::indicator:indeterminate:focus,
1884 QColumnView::indicator:indeterminate:pressed {
1885 image: url(":/dark/rc/checkbox_indeterminate_focus.png");
1886 }
1887
1888 QTreeView,
1889 QListView,
1890 QTableView,
1891 QColumnView {
1892 background-color: #19232D;
1893 border: 1px solid #455364;
1894 color: #E0E1E3;
1895 gridline-color: #455364;
1896 border-radius: 4px;
1897 }
1898
1899 QTreeView:disabled,
1900 QListView:disabled,
1901 QTableView:disabled,
1902 QColumnView:disabled {
1903 background-color: #19232D;
1904 color: #9DA9B5;
1905 }
1906
1907 QTreeView:selected,
1908 QListView:selected,
1909 QTableView:selected,
1910 QColumnView:selected {
1911 background-color: #346792;
1912 color: #455364;
1913 }
1914
1915 QTreeView:focus,
1916 QListView:focus,
1917 QTableView:focus,
1918 QColumnView:focus {
1919 border: 1px solid #1A72BB;
1920 }
1921
1922 QTreeView::item:pressed,
1923 QListView::item:pressed,
1924 QTableView::item:pressed,
1925 QColumnView::item:pressed {
1926 background-color: #346792;
1927 }
1928
1929 QTreeView::item:selected:active,
1930 QListView::item:selected:active,
1931 QTableView::item:selected:active,
1932 QColumnView::item:selected:active {
1933 background-color: #346792;
1934 }
1935
1936 QTreeView::item:selected:!active,
1937 QListView::item:selected:!active,
1938 QTableView::item:selected:!active,
1939 QColumnView::item:selected:!active {
1940 color: #E0E1E3;
1941 background-color: #37414F;
1942 }
1943
1944 QTreeView::item:!selected:hover,
1945 QListView::item:!selected:hover,
1946 QTableView::item:!selected:hover,
1947 QColumnView::item:!selected:hover {
1948 outline: 0;
1949 color: #E0E1E3;
1950 background-color: #37414F;
1951 }
1952
1953 QTableCornerButton::section {
1954 background-color: #19232D;
1955 border: 1px transparent #455364;
1956 border-radius: 0px;
1957 }
1958
1959 /* QHeaderView ------------------------------------------------------------
1960
1961 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
1962
1963 --------------------------------------------------------------------------- */
1964 QHeaderView {
1965 background-color: #455364;
1966 border: 0px transparent #455364;
1967 padding: 0;
1968 margin: 0;
1969 border-radius: 0;
1970 }
1971
1972 QHeaderView:disabled {
1973 background-color: #455364;
1974 border: 1px transparent #455364;
1975 }
1976
1977 QHeaderView::section {
1978 background-color: #455364;
1979 color: #E0E1E3;
1980 border-radius: 0;
1981 text-align: left;
1982 font-size: 13px;
1983 }
1984
1985 QHeaderView::section::horizontal {
1986 padding-top: 0;
1987 padding-bottom: 0;
1988 padding-left: 4px;
1989 padding-right: 4px;
1990 border-left: 1px solid #19232D;
1991 }
1992
1993 QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
1994 border-left: 1px solid #455364;
1995 }
1996
1997 QHeaderView::section::horizontal:disabled {
1998 color: #9DA9B5;
1999 }
2000
2001 QHeaderView::section::vertical {
2002 padding-top: 0;
2003 padding-bottom: 0;
2004 padding-left: 4px;
2005 padding-right: 4px;
2006 border-top: 1px solid #19232D;
2007 }
2008
2009 QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
2010 border-top: 1px solid #455364;
2011 }
2012
2013 QHeaderView::section::vertical:disabled {
2014 color: #9DA9B5;
2015 }
2016
2017 QHeaderView::down-arrow {
2018 /* Those settings (border/width/height/background-color) solve bug */
2019 /* transparent arrow background and size */
2020 background-color: #455364;
2021 border: none;
2022 height: 12px;
2023 width: 12px;
2024 padding-left: 2px;
2025 padding-right: 2px;
2026 image: url(":/dark/rc/arrow_down.png");
2027 }
2028
2029 QHeaderView::up-arrow {
2030 background-color: #455364;
2031 border: none;
2032 height: 12px;
2033 width: 12px;
2034 padding-left: 2px;
2035 padding-right: 2px;
2036 image: url(":/dark/rc/arrow_up.png");
2037 }
2038
2039 /* QToolBox --------------------------------------------------------------
2040
2041 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
2042
2043 --------------------------------------------------------------------------- */
2044 QToolBox {
2045 padding: 0px;
2046 border: 0px;
2047 border: 1px solid #455364;
2048 }
2049
2050 QToolBox:selected {
2051 padding: 0px;
2052 border: 2px solid #346792;
2053 }
2054
2055 QToolBox::tab {
2056 background-color: #19232D;
2057 border: 1px solid #455364;
2058 color: #E0E1E3;
2059 border-top-left-radius: 4px;
2060 border-top-right-radius: 4px;
2061 }
2062
2063 QToolBox::tab:disabled {
2064 color: #9DA9B5;
2065 }
2066
2067 QToolBox::tab:selected {
2068 background-color: #60798B;
2069 border-bottom: 2px solid #346792;
2070 }
2071
2072 QToolBox::tab:selected:disabled {
2073 background-color: #455364;
2074 border-bottom: 2px solid #26486B;
2075 }
2076
2077 QToolBox::tab:!selected {
2078 background-color: #455364;
2079 border-bottom: 2px solid #455364;
2080 }
2081
2082 QToolBox::tab:!selected:disabled {
2083 background-color: #19232D;
2084 }
2085
2086 QToolBox::tab:hover {
2087 border-color: #1A72BB;
2088 border-bottom: 2px solid #1A72BB;
2089 }
2090
2091 QToolBox QScrollArea QWidget QWidget {
2092 padding: 0px;
2093 border: 0px;
2094 background-color: #19232D;
2095 }
2096
2097 /* QFrame -----------------------------------------------------------------
2098
2099 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
2100 https://doc.qt.io/qt-5/qframe.html#-prop
2101 https://doc.qt.io/qt-5/qframe.html#details
2102 https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
2103
2104 --------------------------------------------------------------------------- */
2105 /* (dot) .QFrame fix #141, #126, #123 */
2106 .QFrame {
2107 border-radius: 4px;
2108 border: 1px solid #455364;
2109 /* No frame */
2110 /* HLine */
2111 /* HLine */
2112 }
2113
2114 .QFrame[frameShape="0"] {
2115 border-radius: 4px;
2116 border: 1px transparent #455364;
2117 }
2118
2119 .QFrame[frameShape="4"] {
2120 max-height: 2px;
2121 border: none;
2122 background-color: #455364;
2123 }
2124
2125 .QFrame[frameShape="5"] {
2126 max-width: 2px;
2127 border: none;
2128 background-color: #455364;
2129 }
2130
2131 /* QSplitter --------------------------------------------------------------
2132
2133 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
2134
2135 --------------------------------------------------------------------------- */
2136 QSplitter {
2137 background-color: #455364;
2138 spacing: 0px;
2139 padding: 0px;
2140 margin: 0px;
2141 }
2142
2143 QSplitter::handle {
2144 background-color: #455364;
2145 border: 0px solid #19232D;
2146 spacing: 0px;
2147 padding: 1px;
2148 margin: 0px;
2149 }
2150
2151 QSplitter::handle:hover {
2152 background-color: #9DA9B5;
2153 }
2154
2155 QSplitter::handle:horizontal {
2156 width: 5px;
2157 image: url(":/dark/rc/line_vertical.png");
2158 }
2159
2160 QSplitter::handle:vertical {
2161 height: 5px;
2162 image: url(":/dark/rc/line_horizontal.png");
2163 }
2164
2165 /* QDateEdit, QDateTimeEdit -----------------------------------------------
2166
2167 --------------------------------------------------------------------------- */
2168 QDateEdit, QDateTimeEdit {
2169 selection-background-color: #346792;
2170 border-style: solid;
2171 border: 1px solid #455364;
2172 border-radius: 4px;
2173 /* This fixes 103, 111 */
2174 padding-top: 2px;
2175 /* This fixes 103, 111 */
2176 padding-bottom: 2px;
2177 padding-left: 4px;
2178 padding-right: 4px;
2179 min-width: 10px;
2180 }
2181
2182 QDateEdit:on, QDateTimeEdit:on {
2183 selection-background-color: #346792;
2184 }
2185
2186 QDateEdit::drop-down, QDateTimeEdit::drop-down {
2187 subcontrol-origin: padding;
2188 subcontrol-position: top right;
2189 width: 12px;
2190 border-left: 1px solid #455364;
2191 }
2192
2193 QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
2194 image: url(":/dark/rc/arrow_down_disabled.png");
2195 height: 8px;
2196 width: 8px;
2197 }
2198
2199 QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
2200 image: url(":/dark/rc/arrow_down.png");
2201 }
2202
2203 QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
2204 background-color: #19232D;
2205 border-radius: 4px;
2206 border: 1px solid #455364;
2207 selection-background-color: #346792;
2208 }
2209
2210 /* QAbstractView ----------------------------------------------------------
2211
2212 --------------------------------------------------------------------------- */
2213 QAbstractView:hover {
2214 border: 1px solid #346792;
2215 color: #E0E1E3;
2216 }
2217
2218 QAbstractView:selected {
2219 background: #346792;
2220 color: #455364;
2221 }
2222
2223 /* PlotWidget -------------------------------------------------------------
2224
2225 --------------------------------------------------------------------------- */
2226 PlotWidget {
2227 /* Fix cut labels in plots #134 */
2228 padding: 0px;
2229 }