resources/qdarkstyle/theme/style.qss

changeset 14
8a304c898a75
child 18
d0ca50776b0b
equal deleted inserted replaced
13:0825d161bca4 14:8a304c898a75
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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_unchecked_focus.png");
181 }
182
183 QCheckBox::indicator:unchecked:disabled {
184 image: url(":/qss_icons/dark/rc/checkbox_unchecked_disabled.png");
185 }
186
187 QCheckBox::indicator:checked {
188 image: url(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_checked_focus.png");
194 }
195
196 QCheckBox::indicator:checked:disabled {
197 image: url(":/qss_icons/dark/rc/checkbox_checked_disabled.png");
198 }
199
200 QCheckBox::indicator:indeterminate {
201 image: url(":/qss_icons/dark/rc/checkbox_indeterminate.png");
202 }
203
204 QCheckBox::indicator:indeterminate:disabled {
205 image: url(":/qss_icons/dark/rc/checkbox_indeterminate_disabled.png");
206 }
207
208 QCheckBox::indicator:indeterminate:focus, QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed {
209 image: url(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_unchecked_focus.png");
251 }
252
253 QGroupBox::indicator:unchecked:disabled {
254 image: url(":/qss_icons/dark/rc/checkbox_unchecked_disabled.png");
255 }
256
257 QGroupBox::indicator:checked {
258 border: none;
259 image: url(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_checked_focus.png");
265 }
266
267 QGroupBox::indicator:checked:disabled {
268 image: url(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/radio_unchecked_focus.png");
322 }
323
324 QRadioButton::indicator:unchecked:disabled {
325 image: url(":/qss_icons/dark/rc/radio_unchecked_disabled.png");
326 }
327
328 QRadioButton::indicator:checked {
329 border: none;
330 outline: none;
331 image: url(":/qss_icons/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(":/qss_icons/dark/rc/radio_checked_focus.png");
338 }
339
340 QRadioButton::indicator:checked:disabled {
341 outline: none;
342 image: url(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_unchecked_focus.png");
439 }
440
441 QMenu::indicator:non-exclusive:unchecked:disabled {
442 image: url(":/qss_icons/dark/rc/checkbox_unchecked_disabled.png");
443 }
444
445 QMenu::indicator:non-exclusive:checked {
446 image: url(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_checked_focus.png");
452 }
453
454 QMenu::indicator:non-exclusive:checked:disabled {
455 image: url(":/qss_icons/dark/rc/checkbox_checked_disabled.png");
456 }
457
458 QMenu::indicator:non-exclusive:indeterminate {
459 image: url(":/qss_icons/dark/rc/checkbox_indeterminate.png");
460 }
461
462 QMenu::indicator:non-exclusive:indeterminate:disabled {
463 image: url(":/qss_icons/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(":/qss_icons/dark/rc/checkbox_indeterminate_focus.png");
468 }
469
470 QMenu::indicator:exclusive:unchecked {
471 image: url(":/qss_icons/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(":/qss_icons/dark/rc/radio_unchecked_focus.png");
478 }
479
480 QMenu::indicator:exclusive:unchecked:disabled {
481 image: url(":/qss_icons/dark/rc/radio_unchecked_disabled.png");
482 }
483
484 QMenu::indicator:exclusive:checked {
485 border: none;
486 outline: none;
487 image: url(":/qss_icons/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(":/qss_icons/dark/rc/radio_checked_focus.png");
494 }
495
496 QMenu::indicator:exclusive:checked:disabled {
497 outline: none;
498 image: url(":/qss_icons/dark/rc/radio_checked_disabled.png");
499 }
500
501 QMenu::right-arrow {
502 margin: 5px;
503 padding-left: 12px;
504 image: url(":/qss_icons/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: 2px;
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: 16px;
558 margin: 2px 16px 2px 16px;
559 border: 1px solid #455364;
560 border-radius: 4px;
561 background-color: #19232D;
562 }
563
564 QScrollBar:vertical {
565 background-color: #19232D;
566 width: 16px;
567 margin: 16px 2px 16px 2px;
568 border: 1px solid #455364;
569 border-radius: 4px;
570 }
571
572 QScrollBar::handle:horizontal {
573 background-color: #60798B;
574 border: 1px solid #455364;
575 border-radius: 4px;
576 min-width: 8px;
577 }
578
579 QScrollBar::handle:horizontal:hover {
580 background-color: #346792;
581 border: #346792;
582 border-radius: 4px;
583 min-width: 8px;
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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/toolbar_move_horizontal.png");
774 }
775
776 QToolBar::handle:vertical {
777 height: 16px;
778 image: url(":/qss_icons/dark/rc/toolbar_move_vertical.png");
779 }
780
781 QToolBar::separator:horizontal {
782 width: 16px;
783 image: url(":/qss_icons/dark/rc/toolbar_separator_horizontal.png");
784 }
785
786 QToolBar::separator:vertical {
787 height: 16px;
788 image: url(":/qss_icons/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(":/qss_icons/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(":/qss_icons/dark/rc/arrow_up_disabled.png");
830 height: 8px;
831 width: 8px;
832 }
833
834 QAbstractSpinBox::up-arrow:hover {
835 image: url(":/qss_icons/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(":/qss_icons/dark/rc/arrow_down_disabled.png");
853 height: 8px;
854 width: 8px;
855 }
856
857 QAbstractSpinBox::down-arrow:hover {
858 image: url(":/qss_icons/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::menu-indicator {
1058 subcontrol-origin: padding;
1059 subcontrol-position: bottom right;
1060 bottom: 4px;
1061 }
1062
1063 QDialogButtonBox QPushButton {
1064 /* Issue #194 #248 - Special case of QPushButton inside dialogs, for better UI */
1065 min-width: 80px;
1066 }
1067
1068 /* QToolButton ------------------------------------------------------------
1069
1070 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
1071
1072 --------------------------------------------------------------------------- */
1073 QToolButton {
1074 background-color: #455364;
1075 color: #E0E1E3;
1076 border-radius: 4px;
1077 padding: 2px;
1078 outline: none;
1079 border: none;
1080 /* The subcontrols below are used only in the DelayedPopup mode */
1081 /* The subcontrols below are used only in the MenuButtonPopup mode */
1082 /* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
1083 }
1084
1085 QToolButton:disabled {
1086 background-color: #455364;
1087 color: #9DA9B5;
1088 border-radius: 4px;
1089 padding: 2px;
1090 }
1091
1092 QToolButton:checked {
1093 background-color: #60798B;
1094 border-radius: 4px;
1095 padding: 2px;
1096 outline: none;
1097 }
1098
1099 QToolButton:checked:disabled {
1100 background-color: #60798B;
1101 color: #9DA9B5;
1102 border-radius: 4px;
1103 padding: 2px;
1104 outline: none;
1105 }
1106
1107 QToolButton:checked:hover {
1108 background-color: #54687A;
1109 color: #E0E1E3;
1110 }
1111
1112 QToolButton:checked:pressed {
1113 background-color: #60798B;
1114 }
1115
1116 QToolButton:checked:selected {
1117 background: #60798B;
1118 color: #E0E1E3;
1119 }
1120
1121 QToolButton:hover {
1122 background-color: #54687A;
1123 color: #E0E1E3;
1124 }
1125
1126 QToolButton:pressed {
1127 background-color: #60798B;
1128 }
1129
1130 QToolButton:selected {
1131 background: #60798B;
1132 color: #E0E1E3;
1133 }
1134
1135 QToolButton[popupMode="0"] {
1136 /* Only for DelayedPopup */
1137 padding-right: 2px;
1138 }
1139
1140 QToolButton[popupMode="1"] {
1141 /* Only for MenuButtonPopup */
1142 padding-right: 20px;
1143 }
1144
1145 QToolButton[popupMode="1"]::menu-button {
1146 border: none;
1147 }
1148
1149 QToolButton[popupMode="1"]::menu-button:hover {
1150 border: none;
1151 border-left: 1px solid #455364;
1152 border-radius: 0;
1153 }
1154
1155 QToolButton[popupMode="2"] {
1156 /* Only for InstantPopup */
1157 padding-right: 2px;
1158 }
1159
1160 QToolButton::menu-button {
1161 padding: 2px;
1162 border-radius: 4px;
1163 width: 12px;
1164 border: none;
1165 outline: none;
1166 }
1167
1168 QToolButton::menu-button:hover {
1169 border: 1px solid #346792;
1170 }
1171
1172 QToolButton::menu-button:checked:hover {
1173 border: 1px solid #346792;
1174 }
1175
1176 QToolButton::menu-indicator {
1177 image: url(":/qss_icons/dark/rc/arrow_down.png");
1178 height: 8px;
1179 width: 8px;
1180 top: 0;
1181 /* Exclude a shift for better image */
1182 left: -2px;
1183 /* Shift it a bit */
1184 }
1185
1186 QToolButton::menu-arrow {
1187 image: url(":/qss_icons/dark/rc/arrow_down.png");
1188 height: 8px;
1189 width: 8px;
1190 }
1191
1192 QToolButton::menu-arrow:hover {
1193 image: url(":/qss_icons/dark/rc/arrow_down_focus.png");
1194 }
1195
1196 /* QCommandLinkButton -----------------------------------------------------
1197
1198 --------------------------------------------------------------------------- */
1199 QCommandLinkButton {
1200 background-color: transparent;
1201 border: 1px solid #455364;
1202 color: #E0E1E3;
1203 border-radius: 4px;
1204 padding: 0px;
1205 margin: 0px;
1206 }
1207
1208 QCommandLinkButton:disabled {
1209 background-color: transparent;
1210 color: #9DA9B5;
1211 }
1212
1213 /* ------------------------------------------------------------------------ */
1214 /* INPUTS - NO FIELDS ----------------------------------------------------- */
1215 /* ------------------------------------------------------------------------ */
1216 /* QComboBox --------------------------------------------------------------
1217
1218 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
1219
1220 --------------------------------------------------------------------------- */
1221 QComboBox {
1222 border: 1px solid #455364;
1223 border-radius: 4px;
1224 selection-background-color: #346792;
1225 padding-left: 4px;
1226 padding-right: 4px;
1227 /* padding-right = 36; 4 + 16*2 See scrollbar size */
1228 /* changed to 4px to fix #239 */
1229 /* Fixes #103, #111 */
1230 min-height: 1.5em;
1231 /* padding-top: 2px; removed to fix #132 */
1232 /* padding-bottom: 2px; removed to fix #132 */
1233 /* min-width: 75px; removed to fix #109 */
1234 /* Needed to remove indicator - fix #132 */
1235 }
1236
1237 QComboBox QAbstractItemView {
1238 border: 1px solid #455364;
1239 border-radius: 0;
1240 background-color: #19232D;
1241 selection-background-color: #346792;
1242 }
1243
1244 QComboBox QAbstractItemView:hover {
1245 background-color: #19232D;
1246 color: #E0E1E3;
1247 }
1248
1249 QComboBox QAbstractItemView:selected {
1250 background: #346792;
1251 color: #455364;
1252 }
1253
1254 QComboBox QAbstractItemView:alternate {
1255 background: #19232D;
1256 }
1257
1258 QComboBox:disabled {
1259 background-color: #19232D;
1260 color: #9DA9B5;
1261 }
1262
1263 QComboBox:hover {
1264 border: 1px solid #346792;
1265 }
1266
1267 QComboBox:focus {
1268 border: 1px solid #1A72BB;
1269 }
1270
1271 QComboBox:on {
1272 selection-background-color: #346792;
1273 }
1274
1275 QComboBox::indicator {
1276 border: none;
1277 border-radius: 0;
1278 background-color: transparent;
1279 selection-background-color: transparent;
1280 color: transparent;
1281 selection-color: transparent;
1282 /* Needed to remove indicator - fix #132 */
1283 }
1284
1285 QComboBox::indicator:alternate {
1286 background: #19232D;
1287 }
1288
1289 QComboBox::item {
1290 /* Remove to fix #282, #285 and MR #288*/
1291 /*&:checked {
1292 font-weight: bold;
1293 }
1294
1295 &:selected {
1296 border: 0px solid transparent;
1297 }
1298 */
1299 }
1300
1301 QComboBox::item:alternate {
1302 background: #19232D;
1303 }
1304
1305 QComboBox::drop-down {
1306 subcontrol-origin: padding;
1307 subcontrol-position: top right;
1308 width: 12px;
1309 border-left: 1px solid #455364;
1310 }
1311
1312 QComboBox::down-arrow {
1313 image: url(":/qss_icons/dark/rc/arrow_down_disabled.png");
1314 height: 8px;
1315 width: 8px;
1316 }
1317
1318 QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
1319 image: url(":/qss_icons/dark/rc/arrow_down.png");
1320 }
1321
1322 /* QSlider ----------------------------------------------------------------
1323
1324 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
1325
1326 --------------------------------------------------------------------------- */
1327 QSlider:disabled {
1328 background: #19232D;
1329 }
1330
1331 QSlider:focus {
1332 border: none;
1333 }
1334
1335 QSlider::groove:horizontal {
1336 background: #455364;
1337 border: 1px solid #455364;
1338 height: 4px;
1339 margin: 0px;
1340 border-radius: 4px;
1341 }
1342
1343 QSlider::groove:vertical {
1344 background: #455364;
1345 border: 1px solid #455364;
1346 width: 4px;
1347 margin: 0px;
1348 border-radius: 4px;
1349 }
1350
1351 QSlider::add-page:vertical {
1352 background: #346792;
1353 border: 1px solid #455364;
1354 width: 4px;
1355 margin: 0px;
1356 border-radius: 4px;
1357 }
1358
1359 QSlider::add-page:vertical :disabled {
1360 background: #26486B;
1361 }
1362
1363 QSlider::sub-page:horizontal {
1364 background: #346792;
1365 border: 1px solid #455364;
1366 height: 4px;
1367 margin: 0px;
1368 border-radius: 4px;
1369 }
1370
1371 QSlider::sub-page:horizontal:disabled {
1372 background: #26486B;
1373 }
1374
1375 QSlider::handle:horizontal {
1376 background: #9DA9B5;
1377 border: 1px solid #455364;
1378 width: 8px;
1379 height: 8px;
1380 margin: -8px 0px;
1381 border-radius: 4px;
1382 }
1383
1384 QSlider::handle:horizontal:hover {
1385 background: #346792;
1386 border: 1px solid #346792;
1387 }
1388
1389 QSlider::handle:horizontal:focus {
1390 border: 1px solid #1A72BB;
1391 }
1392
1393 QSlider::handle:vertical {
1394 background: #9DA9B5;
1395 border: 1px solid #455364;
1396 width: 8px;
1397 height: 8px;
1398 margin: 0 -8px;
1399 border-radius: 4px;
1400 }
1401
1402 QSlider::handle:vertical:hover {
1403 background: #346792;
1404 border: 1px solid #346792;
1405 }
1406
1407 QSlider::handle:vertical:focus {
1408 border: 1px solid #1A72BB;
1409 }
1410
1411 /* QLineEdit --------------------------------------------------------------
1412
1413 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
1414
1415 --------------------------------------------------------------------------- */
1416 QLineEdit {
1417 background-color: #19232D;
1418 padding-top: 2px;
1419 /* This QLineEdit fix 103, 111 */
1420 padding-bottom: 2px;
1421 /* This QLineEdit fix 103, 111 */
1422 padding-left: 4px;
1423 padding-right: 4px;
1424 border-style: solid;
1425 border: 1px solid #455364;
1426 border-radius: 4px;
1427 color: #E0E1E3;
1428 }
1429
1430 QLineEdit:disabled {
1431 background-color: #19232D;
1432 color: #9DA9B5;
1433 }
1434
1435 QLineEdit:hover {
1436 border: 1px solid #346792;
1437 color: #E0E1E3;
1438 }
1439
1440 QLineEdit:focus {
1441 border: 1px solid #1A72BB;
1442 }
1443
1444 QLineEdit:selected {
1445 background-color: #346792;
1446 color: #455364;
1447 }
1448
1449 /* QTabWiget --------------------------------------------------------------
1450
1451 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1452
1453 --------------------------------------------------------------------------- */
1454 QTabWidget {
1455 padding: 2px;
1456 selection-background-color: #455364;
1457 }
1458
1459 QTabWidget QWidget {
1460 /* Fixes #189 */
1461 border-radius: 4px;
1462 }
1463
1464 QTabWidget::pane {
1465 border: 1px solid #455364;
1466 border-radius: 4px;
1467 margin: 0px;
1468 /* Fixes double border inside pane with pyqt5 */
1469 padding: 0px;
1470 }
1471
1472 QTabWidget::pane:selected {
1473 background-color: #455364;
1474 border: 1px solid #346792;
1475 }
1476
1477 /* QTabBar ----------------------------------------------------------------
1478
1479 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1480
1481 --------------------------------------------------------------------------- */
1482 QTabBar, QDockWidget QTabBar {
1483 qproperty-drawBase: 0;
1484 border-radius: 4px;
1485 margin: 0px;
1486 padding: 2px;
1487 border: 0;
1488 /* left: 5px; move to the right by 5px - removed for fix */
1489 }
1490
1491 QTabBar::close-button, QDockWidget QTabBar::close-button {
1492 border: 0;
1493 margin: 0;
1494 padding: 4px;
1495 image: url(":/qss_icons/dark/rc/window_close.png");
1496 }
1497
1498 QTabBar::close-button:hover, QDockWidget QTabBar::close-button:hover {
1499 image: url(":/qss_icons/dark/rc/window_close_focus.png");
1500 }
1501
1502 QTabBar::close-button:pressed, QDockWidget QTabBar::close-button:pressed {
1503 image: url(":/qss_icons/dark/rc/window_close_pressed.png");
1504 }
1505
1506 QTabBar::tab, QDockWidget QTabBar::tab {
1507 /* !selected and disabled ----------------------------------------- */
1508 /* selected ------------------------------------------------------- */
1509 }
1510
1511 QTabBar::tab:top:selected:disabled, QDockWidget QTabBar::tab:top:selected:disabled {
1512 border-bottom: 3px solid #26486B;
1513 color: #9DA9B5;
1514 background-color: #455364;
1515 }
1516
1517 QTabBar::tab:bottom:selected:disabled, QDockWidget QTabBar::tab:bottom:selected:disabled {
1518 border-top: 3px solid #26486B;
1519 color: #9DA9B5;
1520 background-color: #455364;
1521 }
1522
1523 QTabBar::tab:left:selected:disabled, QDockWidget QTabBar::tab:left:selected:disabled {
1524 border-right: 3px solid #26486B;
1525 color: #9DA9B5;
1526 background-color: #455364;
1527 }
1528
1529 QTabBar::tab:right:selected:disabled, QDockWidget QTabBar::tab:right:selected:disabled {
1530 border-left: 3px solid #26486B;
1531 color: #9DA9B5;
1532 background-color: #455364;
1533 }
1534
1535 QTabBar::tab:top:!selected:disabled, QDockWidget QTabBar::tab:top:!selected:disabled {
1536 border-bottom: 3px solid #19232D;
1537 color: #9DA9B5;
1538 background-color: #19232D;
1539 }
1540
1541 QTabBar::tab:bottom:!selected:disabled, QDockWidget QTabBar::tab:bottom:!selected:disabled {
1542 border-top: 3px solid #19232D;
1543 color: #9DA9B5;
1544 background-color: #19232D;
1545 }
1546
1547 QTabBar::tab:left:!selected:disabled, QDockWidget QTabBar::tab:left:!selected:disabled {
1548 border-right: 3px solid #19232D;
1549 color: #9DA9B5;
1550 background-color: #19232D;
1551 }
1552
1553 QTabBar::tab:right:!selected:disabled, QDockWidget QTabBar::tab:right:!selected:disabled {
1554 border-left: 3px solid #19232D;
1555 color: #9DA9B5;
1556 background-color: #19232D;
1557 }
1558
1559 QTabBar::tab:top:!selected, QDockWidget QTabBar::tab:top:!selected {
1560 border-bottom: 2px solid #19232D;
1561 margin-top: 2px;
1562 }
1563
1564 QTabBar::tab:bottom:!selected, QDockWidget QTabBar::tab:bottom:!selected {
1565 border-top: 2px solid #19232D;
1566 margin-bottom: 2px;
1567 }
1568
1569 QTabBar::tab:left:!selected, QDockWidget QTabBar::tab:left:!selected {
1570 border-left: 2px solid #19232D;
1571 margin-right: 2px;
1572 }
1573
1574 QTabBar::tab:right:!selected, QDockWidget QTabBar::tab:right:!selected {
1575 border-right: 2px solid #19232D;
1576 margin-left: 2px;
1577 }
1578
1579 QTabBar::tab:top, QDockWidget QTabBar::tab:top {
1580 background-color: #455364;
1581 margin-left: 2px;
1582 padding-left: 4px;
1583 padding-right: 4px;
1584 padding-top: 2px;
1585 padding-bottom: 2px;
1586 min-width: 5px;
1587 border-bottom: 3px solid #455364;
1588 border-top-left-radius: 4px;
1589 border-top-right-radius: 4px;
1590 }
1591
1592 QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
1593 background-color: #54687A;
1594 border-bottom: 3px solid #259AE9;
1595 border-top-left-radius: 4px;
1596 border-top-right-radius: 4px;
1597 }
1598
1599 QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
1600 border: 1px solid #1A72BB;
1601 border-bottom: 3px solid #1A72BB;
1602 /* Fixes spyder-ide/spyder#9766 and #243 */
1603 padding-left: 3px;
1604 padding-right: 3px;
1605 }
1606
1607 QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
1608 border-top: 3px solid #455364;
1609 background-color: #455364;
1610 margin-left: 2px;
1611 padding-left: 4px;
1612 padding-right: 4px;
1613 padding-top: 2px;
1614 padding-bottom: 2px;
1615 border-bottom-left-radius: 4px;
1616 border-bottom-right-radius: 4px;
1617 min-width: 5px;
1618 }
1619
1620 QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
1621 background-color: #54687A;
1622 border-top: 3px solid #259AE9;
1623 border-bottom-left-radius: 4px;
1624 border-bottom-right-radius: 4px;
1625 }
1626
1627 QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
1628 border: 1px solid #1A72BB;
1629 border-top: 3px solid #1A72BB;
1630 /* Fixes spyder-ide/spyder#9766 and #243 */
1631 padding-left: 3px;
1632 padding-right: 3px;
1633 }
1634
1635 QTabBar::tab:left, QDockWidget QTabBar::tab:left {
1636 background-color: #455364;
1637 margin-top: 2px;
1638 padding-left: 2px;
1639 padding-right: 2px;
1640 padding-top: 4px;
1641 padding-bottom: 4px;
1642 border-top-left-radius: 4px;
1643 border-bottom-left-radius: 4px;
1644 min-height: 5px;
1645 }
1646
1647 QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
1648 background-color: #54687A;
1649 border-right: 3px solid #259AE9;
1650 }
1651
1652 QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
1653 border: 1px solid #1A72BB;
1654 border-right: 3px solid #1A72BB;
1655 /* Fixes different behavior #271 */
1656 margin-right: 0px;
1657 padding-right: -1px;
1658 }
1659
1660 QTabBar::tab:right, QDockWidget QTabBar::tab:right {
1661 background-color: #455364;
1662 margin-top: 2px;
1663 padding-left: 2px;
1664 padding-right: 2px;
1665 padding-top: 4px;
1666 padding-bottom: 4px;
1667 border-top-right-radius: 4px;
1668 border-bottom-right-radius: 4px;
1669 min-height: 5px;
1670 }
1671
1672 QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
1673 background-color: #54687A;
1674 border-left: 3px solid #259AE9;
1675 }
1676
1677 QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
1678 border: 1px solid #1A72BB;
1679 border-left: 3px solid #1A72BB;
1680 /* Fixes different behavior #271 */
1681 margin-left: 0px;
1682 padding-left: 0px;
1683 }
1684
1685 QTabBar QToolButton, QDockWidget QTabBar QToolButton {
1686 /* Fixes #136 */
1687 background-color: #455364;
1688 height: 12px;
1689 width: 12px;
1690 }
1691
1692 QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
1693 background-color: #455364;
1694 }
1695
1696 QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
1697 border: 1px solid #346792;
1698 }
1699
1700 QTabBar QToolButton::left-arrow:enabled, QDockWidget QTabBar QToolButton::left-arrow:enabled {
1701 image: url(":/qss_icons/dark/rc/arrow_left.png");
1702 }
1703
1704 QTabBar QToolButton::left-arrow:disabled, QDockWidget QTabBar QToolButton::left-arrow:disabled {
1705 image: url(":/qss_icons/dark/rc/arrow_left_disabled.png");
1706 }
1707
1708 QTabBar QToolButton::right-arrow:enabled, QDockWidget QTabBar QToolButton::right-arrow:enabled {
1709 image: url(":/qss_icons/dark/rc/arrow_right.png");
1710 }
1711
1712 QTabBar QToolButton::right-arrow:disabled, QDockWidget QTabBar QToolButton::right-arrow:disabled {
1713 image: url(":/qss_icons/dark/rc/arrow_right_disabled.png");
1714 }
1715
1716 /* QDockWiget -------------------------------------------------------------
1717
1718 --------------------------------------------------------------------------- */
1719 QDockWidget {
1720 outline: 1px solid #455364;
1721 background-color: #19232D;
1722 border: 1px solid #455364;
1723 border-radius: 4px;
1724 titlebar-close-icon: url(":/qss_icons/dark/rc/transparent.png");
1725 titlebar-normal-icon: url(":/qss_icons/dark/rc/transparent.png");
1726 }
1727
1728 QDockWidget::title {
1729 /* Better size for title bar */
1730 padding: 3px;
1731 spacing: 4px;
1732 border: none;
1733 background-color: #455364;
1734 }
1735
1736 QDockWidget::close-button {
1737 icon-size: 12px;
1738 border: none;
1739 background: transparent;
1740 background-image: transparent;
1741 border: 0;
1742 margin: 0;
1743 padding: 0;
1744 image: url(":/qss_icons/dark/rc/window_close.png");
1745 }
1746
1747 QDockWidget::close-button:hover {
1748 image: url(":/qss_icons/dark/rc/window_close_focus.png");
1749 }
1750
1751 QDockWidget::close-button:pressed {
1752 image: url(":/qss_icons/dark/rc/window_close_pressed.png");
1753 }
1754
1755 QDockWidget::float-button {
1756 icon-size: 12px;
1757 border: none;
1758 background: transparent;
1759 background-image: transparent;
1760 border: 0;
1761 margin: 0;
1762 padding: 0;
1763 image: url(":/qss_icons/dark/rc/window_undock.png");
1764 }
1765
1766 QDockWidget::float-button:hover {
1767 image: url(":/qss_icons/dark/rc/window_undock_focus.png");
1768 }
1769
1770 QDockWidget::float-button:pressed {
1771 image: url(":/qss_icons/dark/rc/window_undock_pressed.png");
1772 }
1773
1774 /* QTreeView QListView QTableView -----------------------------------------
1775
1776 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
1777 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
1778 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
1779
1780 --------------------------------------------------------------------------- */
1781 QTreeView:branch:selected, QTreeView:branch:hover {
1782 background: url(":/qss_icons/dark/rc/transparent.png");
1783 }
1784
1785 QTreeView:branch:has-siblings:!adjoins-item {
1786 border-image: url(":/qss_icons/dark/rc/branch_line.png") 0;
1787 }
1788
1789 QTreeView:branch:has-siblings:adjoins-item {
1790 border-image: url(":/qss_icons/dark/rc/branch_more.png") 0;
1791 }
1792
1793 QTreeView:branch:!has-children:!has-siblings:adjoins-item {
1794 border-image: url(":/qss_icons/dark/rc/branch_end.png") 0;
1795 }
1796
1797 QTreeView:branch:has-children:!has-siblings:closed, QTreeView:branch:closed:has-children:has-siblings {
1798 border-image: none;
1799 image: url(":/qss_icons/dark/rc/branch_closed.png");
1800 }
1801
1802 QTreeView:branch:open:has-children:!has-siblings, QTreeView:branch:open:has-children:has-siblings {
1803 border-image: none;
1804 image: url(":/qss_icons/dark/rc/branch_open.png");
1805 }
1806
1807 QTreeView:branch:has-children:!has-siblings:closed:hover, QTreeView:branch:closed:has-children:has-siblings:hover {
1808 image: url(":/qss_icons/dark/rc/branch_closed_focus.png");
1809 }
1810
1811 QTreeView:branch:open:has-children:!has-siblings:hover, QTreeView:branch:open:has-children:has-siblings:hover {
1812 image: url(":/qss_icons/dark/rc/branch_open_focus.png");
1813 }
1814
1815 QTreeView::indicator:checked,
1816 QListView::indicator:checked,
1817 QTableView::indicator:checked,
1818 QColumnView::indicator:checked {
1819 image: url(":/qss_icons/dark/rc/checkbox_checked.png");
1820 }
1821
1822 QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
1823 QListView::indicator:checked:hover,
1824 QListView::indicator:checked:focus,
1825 QListView::indicator:checked:pressed,
1826 QTableView::indicator:checked:hover,
1827 QTableView::indicator:checked:focus,
1828 QTableView::indicator:checked:pressed,
1829 QColumnView::indicator:checked:hover,
1830 QColumnView::indicator:checked:focus,
1831 QColumnView::indicator:checked:pressed {
1832 image: url(":/qss_icons/dark/rc/checkbox_checked_focus.png");
1833 }
1834
1835 QTreeView::indicator:unchecked,
1836 QListView::indicator:unchecked,
1837 QTableView::indicator:unchecked,
1838 QColumnView::indicator:unchecked {
1839 image: url(":/qss_icons/dark/rc/checkbox_unchecked.png");
1840 }
1841
1842 QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
1843 QListView::indicator:unchecked:hover,
1844 QListView::indicator:unchecked:focus,
1845 QListView::indicator:unchecked:pressed,
1846 QTableView::indicator:unchecked:hover,
1847 QTableView::indicator:unchecked:focus,
1848 QTableView::indicator:unchecked:pressed,
1849 QColumnView::indicator:unchecked:hover,
1850 QColumnView::indicator:unchecked:focus,
1851 QColumnView::indicator:unchecked:pressed {
1852 image: url(":/qss_icons/dark/rc/checkbox_unchecked_focus.png");
1853 }
1854
1855 QTreeView::indicator:indeterminate,
1856 QListView::indicator:indeterminate,
1857 QTableView::indicator:indeterminate,
1858 QColumnView::indicator:indeterminate {
1859 image: url(":/qss_icons/dark/rc/checkbox_indeterminate.png");
1860 }
1861
1862 QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
1863 QListView::indicator:indeterminate:hover,
1864 QListView::indicator:indeterminate:focus,
1865 QListView::indicator:indeterminate:pressed,
1866 QTableView::indicator:indeterminate:hover,
1867 QTableView::indicator:indeterminate:focus,
1868 QTableView::indicator:indeterminate:pressed,
1869 QColumnView::indicator:indeterminate:hover,
1870 QColumnView::indicator:indeterminate:focus,
1871 QColumnView::indicator:indeterminate:pressed {
1872 image: url(":/qss_icons/dark/rc/checkbox_indeterminate_focus.png");
1873 }
1874
1875 QTreeView,
1876 QListView,
1877 QTableView,
1878 QColumnView {
1879 background-color: #19232D;
1880 border: 1px solid #455364;
1881 color: #E0E1E3;
1882 gridline-color: #455364;
1883 border-radius: 4px;
1884 }
1885
1886 QTreeView:disabled,
1887 QListView:disabled,
1888 QTableView:disabled,
1889 QColumnView:disabled {
1890 background-color: #19232D;
1891 color: #9DA9B5;
1892 }
1893
1894 QTreeView:selected,
1895 QListView:selected,
1896 QTableView:selected,
1897 QColumnView:selected {
1898 background-color: #346792;
1899 color: #455364;
1900 }
1901
1902 QTreeView:focus,
1903 QListView:focus,
1904 QTableView:focus,
1905 QColumnView:focus {
1906 border: 1px solid #1A72BB;
1907 }
1908
1909 QTreeView::item:pressed,
1910 QListView::item:pressed,
1911 QTableView::item:pressed,
1912 QColumnView::item:pressed {
1913 background-color: #346792;
1914 }
1915
1916 QTreeView::item:selected:active,
1917 QListView::item:selected:active,
1918 QTableView::item:selected:active,
1919 QColumnView::item:selected:active {
1920 background-color: #346792;
1921 }
1922
1923 QTreeView::item:selected:!active,
1924 QListView::item:selected:!active,
1925 QTableView::item:selected:!active,
1926 QColumnView::item:selected:!active {
1927 color: #E0E1E3;
1928 background-color: #37414F;
1929 }
1930
1931 QTreeView::item:!selected:hover,
1932 QListView::item:!selected:hover,
1933 QTableView::item:!selected:hover,
1934 QColumnView::item:!selected:hover {
1935 outline: 0;
1936 color: #E0E1E3;
1937 background-color: #37414F;
1938 }
1939
1940 QTableCornerButton::section {
1941 background-color: #19232D;
1942 border: 1px transparent #455364;
1943 border-radius: 0px;
1944 }
1945
1946 /* QHeaderView ------------------------------------------------------------
1947
1948 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
1949
1950 --------------------------------------------------------------------------- */
1951 QHeaderView {
1952 background-color: #455364;
1953 border: 0px transparent #455364;
1954 padding: 0;
1955 margin: 0;
1956 border-radius: 0;
1957 }
1958
1959 QHeaderView:disabled {
1960 background-color: #455364;
1961 border: 1px transparent #455364;
1962 }
1963
1964 QHeaderView::section {
1965 background-color: #455364;
1966 color: #E0E1E3;
1967 border-radius: 0;
1968 text-align: left;
1969 font-size: 13px;
1970 }
1971
1972 QHeaderView::section::horizontal {
1973 padding-top: 0;
1974 padding-bottom: 0;
1975 padding-left: 4px;
1976 padding-right: 4px;
1977 border-left: 1px solid #19232D;
1978 }
1979
1980 QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
1981 border-left: 1px solid #455364;
1982 }
1983
1984 QHeaderView::section::horizontal:disabled {
1985 color: #9DA9B5;
1986 }
1987
1988 QHeaderView::section::vertical {
1989 padding-top: 0;
1990 padding-bottom: 0;
1991 padding-left: 4px;
1992 padding-right: 4px;
1993 border-top: 1px solid #19232D;
1994 }
1995
1996 QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
1997 border-top: 1px solid #455364;
1998 }
1999
2000 QHeaderView::section::vertical:disabled {
2001 color: #9DA9B5;
2002 }
2003
2004 QHeaderView::down-arrow {
2005 /* Those settings (border/width/height/background-color) solve bug */
2006 /* transparent arrow background and size */
2007 background-color: #455364;
2008 border: none;
2009 height: 12px;
2010 width: 12px;
2011 padding-left: 2px;
2012 padding-right: 2px;
2013 image: url(":/qss_icons/dark/rc/arrow_down.png");
2014 }
2015
2016 QHeaderView::up-arrow {
2017 background-color: #455364;
2018 border: none;
2019 height: 12px;
2020 width: 12px;
2021 padding-left: 2px;
2022 padding-right: 2px;
2023 image: url(":/qss_icons/dark/rc/arrow_up.png");
2024 }
2025
2026 /* QToolBox --------------------------------------------------------------
2027
2028 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
2029
2030 --------------------------------------------------------------------------- */
2031 QToolBox {
2032 padding: 0px;
2033 border: 0px;
2034 border: 1px solid #455364;
2035 }
2036
2037 QToolBox:selected {
2038 padding: 0px;
2039 border: 2px solid #346792;
2040 }
2041
2042 QToolBox::tab {
2043 background-color: #19232D;
2044 border: 1px solid #455364;
2045 color: #E0E1E3;
2046 border-top-left-radius: 4px;
2047 border-top-right-radius: 4px;
2048 }
2049
2050 QToolBox::tab:disabled {
2051 color: #9DA9B5;
2052 }
2053
2054 QToolBox::tab:selected {
2055 background-color: #60798B;
2056 border-bottom: 2px solid #346792;
2057 }
2058
2059 QToolBox::tab:selected:disabled {
2060 background-color: #455364;
2061 border-bottom: 2px solid #26486B;
2062 }
2063
2064 QToolBox::tab:!selected {
2065 background-color: #455364;
2066 border-bottom: 2px solid #455364;
2067 }
2068
2069 QToolBox::tab:!selected:disabled {
2070 background-color: #19232D;
2071 }
2072
2073 QToolBox::tab:hover {
2074 border-color: #1A72BB;
2075 border-bottom: 2px solid #1A72BB;
2076 }
2077
2078 QToolBox QScrollArea QWidget QWidget {
2079 padding: 0px;
2080 border: 0px;
2081 background-color: #19232D;
2082 }
2083
2084 /* QFrame -----------------------------------------------------------------
2085
2086 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
2087 https://doc.qt.io/qt-5/qframe.html#-prop
2088 https://doc.qt.io/qt-5/qframe.html#details
2089 https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
2090
2091 --------------------------------------------------------------------------- */
2092 /* (dot) .QFrame fix #141, #126, #123 */
2093 .QFrame {
2094 border-radius: 4px;
2095 border: 1px solid #455364;
2096 /* No frame */
2097 /* HLine */
2098 /* HLine */
2099 }
2100
2101 .QFrame[frameShape="0"] {
2102 border-radius: 4px;
2103 border: 1px transparent #455364;
2104 }
2105
2106 .QFrame[frameShape="4"] {
2107 max-height: 2px;
2108 border: none;
2109 background-color: #455364;
2110 }
2111
2112 .QFrame[frameShape="5"] {
2113 max-width: 2px;
2114 border: none;
2115 background-color: #455364;
2116 }
2117
2118 /* QSplitter --------------------------------------------------------------
2119
2120 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
2121
2122 --------------------------------------------------------------------------- */
2123 QSplitter {
2124 background-color: #455364;
2125 spacing: 0px;
2126 padding: 0px;
2127 margin: 0px;
2128 }
2129
2130 QSplitter::handle {
2131 background-color: #455364;
2132 border: 0px solid #19232D;
2133 spacing: 0px;
2134 padding: 1px;
2135 margin: 0px;
2136 }
2137
2138 QSplitter::handle:hover {
2139 background-color: #9DA9B5;
2140 }
2141
2142 QSplitter::handle:horizontal {
2143 width: 5px;
2144 image: url(":/qss_icons/dark/rc/line_vertical.png");
2145 }
2146
2147 QSplitter::handle:vertical {
2148 height: 5px;
2149 image: url(":/qss_icons/dark/rc/line_horizontal.png");
2150 }
2151
2152 /* QDateEdit, QDateTimeEdit -----------------------------------------------
2153
2154 --------------------------------------------------------------------------- */
2155 QDateEdit, QDateTimeEdit {
2156 selection-background-color: #346792;
2157 border-style: solid;
2158 border: 1px solid #455364;
2159 border-radius: 4px;
2160 /* This fixes 103, 111 */
2161 padding-top: 2px;
2162 /* This fixes 103, 111 */
2163 padding-bottom: 2px;
2164 padding-left: 4px;
2165 padding-right: 4px;
2166 min-width: 10px;
2167 }
2168
2169 QDateEdit:on, QDateTimeEdit:on {
2170 selection-background-color: #346792;
2171 }
2172
2173 QDateEdit::drop-down, QDateTimeEdit::drop-down {
2174 subcontrol-origin: padding;
2175 subcontrol-position: top right;
2176 width: 12px;
2177 border-left: 1px solid #455364;
2178 }
2179
2180 QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
2181 image: url(":/qss_icons/dark/rc/arrow_down_disabled.png");
2182 height: 8px;
2183 width: 8px;
2184 }
2185
2186 QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
2187 image: url(":/qss_icons/dark/rc/arrow_down.png");
2188 }
2189
2190 QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
2191 background-color: #19232D;
2192 border-radius: 4px;
2193 border: 1px solid #455364;
2194 selection-background-color: #346792;
2195 }
2196
2197 /* QAbstractView ----------------------------------------------------------
2198
2199 --------------------------------------------------------------------------- */
2200 QAbstractView:hover {
2201 border: 1px solid #346792;
2202 color: #E0E1E3;
2203 }
2204
2205 QAbstractView:selected {
2206 background: #346792;
2207 color: #455364;
2208 }
2209
2210 /* PlotWidget -------------------------------------------------------------
2211
2212 --------------------------------------------------------------------------- */
2213 PlotWidget {
2214 /* Fix cut labels in plots #134 */
2215 padding: 0px;
2216 }

mercurial