Debian Codegraph @

light/lstyle.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 /* Dark 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: #FAFAFA;
45 border: 0px solid #C9CDD0;
46 padding: 0px;
47 color: #19232D;
48 selection-background-color: #9FCBFF;
49 selection-color: #19232D;
50 }
51
52 QWidget:disabled {
53 background-color: #FAFAFA;
54 color: #788D9C;
55 selection-background-color: #DAEDFF;
56 selection-color: #788D9C;
57 }
58
59 QWidget::item:selected {
60 background-color: #9FCBFF;
61 }
62
63 QWidget::item:hover:!selected {
64 background-color: #73C7FF;
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: #C9CDD0;
75 border: 0px solid #FAFAFA;
76 spacing: 0px;
77 padding: 2px;
78 }
79
80 QMainWindow::separator:hover {
81 background-color: #ACB1B6;
82 border: 0px solid #73C7FF;
83 }
84
85 QMainWindow::separator:horizontal {
86 width: 5px;
87 margin-top: 2px;
88 margin-bottom: 2px;
89 image: url(":/light/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(":/light/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: #9FCBFF;
106 color: #19232D;
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 #C9CDD0;
121 /* Fixes Spyder #9120, #9121 */
122 background: #C9CDD0;
123 /* Fixes #205, white vertical borders separating items */
124 }
125
126 QStatusBar::item {
127 border: none;
128 }
129
130 QStatusBar QToolTip {
131 background-color: #73C7FF;
132 border: 1px solid #FAFAFA;
133 color: #FAFAFA;
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: #FAFAFA;
152 color: #19232D;
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: #FAFAFA;
165 color: #788D9C;
166 }
167
168 QCheckBox::indicator {
169 margin-left: 2px;
170 height: 14px;
171 width: 14px;
172 }
173
174 QCheckBox::indicator:unchecked {
175 image: url(":/light/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(":/light/rc/checkbox_unchecked_focus.png");
181 }
182
183 QCheckBox::indicator:unchecked:disabled {
184 image: url(":/light/rc/checkbox_unchecked_disabled.png");
185 }
186
187 QCheckBox::indicator:checked {
188 image: url(":/light/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(":/light/rc/checkbox_checked_focus.png");
194 }
195
196 QCheckBox::indicator:checked:disabled {
197 image: url(":/light/rc/checkbox_checked_disabled.png");
198 }
199
200 QCheckBox::indicator:indeterminate {
201 image: url(":/light/rc/checkbox_indeterminate.png");
202 }
203
204 QCheckBox::indicator:indeterminate:disabled {
205 image: url(":/light/rc/checkbox_indeterminate_disabled.png");
206 }
207
208 QCheckBox::indicator:indeterminate:focus, QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed {
209 image: url(":/light/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 #C9CDD0;
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(":/light/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(":/light/rc/checkbox_unchecked_focus.png");
251 }
252
253 QGroupBox::indicator:unchecked:disabled {
254 image: url(":/light/rc/checkbox_unchecked_disabled.png");
255 }
256
257 QGroupBox::indicator:checked {
258 border: none;
259 image: url(":/light/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(":/light/rc/checkbox_checked_focus.png");
265 }
266
267 QGroupBox::indicator:checked:disabled {
268 image: url(":/light/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: #FAFAFA;
278 color: #19232D;
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: #FAFAFA;
292 color: #788D9C;
293 border: none;
294 outline: none;
295 }
296
297 QRadioButton QWidget {
298 background-color: #FAFAFA;
299 color: #19232D;
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(":/light/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(":/light/rc/radio_unchecked_focus.png");
322 }
323
324 QRadioButton::indicator:unchecked:disabled {
325 image: url(":/light/rc/radio_unchecked_disabled.png");
326 }
327
328 QRadioButton::indicator:checked {
329 border: none;
330 outline: none;
331 image: url(":/light/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(":/light/rc/radio_checked_focus.png");
338 }
339
340 QRadioButton::indicator:checked:disabled {
341 outline: none;
342 image: url(":/light/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: #C9CDD0;
352 padding: 2px;
353 border: 1px solid #FAFAFA;
354 color: #19232D;
355 selection-background-color: #73C7FF;
356 }
357
358 QMenuBar:focus {
359 border: 1px solid #9FCBFF;
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 #C9CDD0;
371 background-color: #73C7FF;
372 }
373
374 QMenuBar::item:pressed {
375 padding: 4px;
376 border: 0px solid #C9CDD0;
377 background-color: #73C7FF;
378 color: #19232D;
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 #C9CDD0;
390 color: #19232D;
391 margin: 0px;
392 background-color: #CED1D4;
393 selection-background-color: #73C7FF;
394 }
395
396 QMenu::separator {
397 height: 1px;
398 background-color: #ACB1B6;
399 color: #19232D;
400 }
401
402 QMenu::item {
403 background-color: #CED1D4;
404 padding: 4px 24px 4px 28px;
405 /* Reserve space for selection border */
406 border: 1px transparent #C9CDD0;
407 }
408
409 QMenu::item:selected {
410 color: #19232D;
411 background-color: #73C7FF;
412 }
413
414 QMenu::item:pressed {
415 background-color: #73C7FF;
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(":/light/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(":/light/rc/checkbox_unchecked_focus.png");
439 }
440
441 QMenu::indicator:non-exclusive:unchecked:disabled {
442 image: url(":/light/rc/checkbox_unchecked_disabled.png");
443 }
444
445 QMenu::indicator:non-exclusive:checked {
446 image: url(":/light/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(":/light/rc/checkbox_checked_focus.png");
452 }
453
454 QMenu::indicator:non-exclusive:checked:disabled {
455 image: url(":/light/rc/checkbox_checked_disabled.png");
456 }
457
458 QMenu::indicator:non-exclusive:indeterminate {
459 image: url(":/light/rc/checkbox_indeterminate.png");
460 }
461
462 QMenu::indicator:non-exclusive:indeterminate:disabled {
463 image: url(":/light/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(":/light/rc/checkbox_indeterminate_focus.png");
468 }
469
470 QMenu::indicator:exclusive:unchecked {
471 image: url(":/light/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(":/light/rc/radio_unchecked_focus.png");
478 }
479
480 QMenu::indicator:exclusive:unchecked:disabled {
481 image: url(":/light/rc/radio_unchecked_disabled.png");
482 }
483
484 QMenu::indicator:exclusive:checked {
485 border: none;
486 outline: none;
487 image: url(":/light/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(":/light/rc/radio_checked_focus.png");
494 }
495
496 QMenu::indicator:exclusive:checked:disabled {
497 outline: none;
498 image: url(":/light/rc/radio_checked_disabled.png");
499 }
500
501 QMenu::right-arrow {
502 margin: 5px;
503 padding-left: 12px;
504 image: url(":/light/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: #FAFAFA;
516 color: #19232D;
517 border: 1px solid #C9CDD0;
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: #FAFAFA;
532 border: 1px solid #C9CDD0;
533 border-radius: 4px;
534 /* fix #159 */
535 padding: 2px;
536 /* remove min-height to fix #244 */
537 color: #19232D;
538 }
539
540 QAbstractScrollArea:disabled {
541 color: #788D9C;
542 }
543
544 /* QScrollArea ------------------------------------------------------------
545
546 --------------------------------------------------------------------------- */
547 QScrollArea QWidget QWidget:disabled {
548 background-color: #FAFAFA;
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 #C9CDD0;
560 border-radius: 3px;
561 background-color: #FAFAFA;
562 }
563
564 QScrollBar:vertical {
565 background-color: #FAFAFA;
566 width: 10px;
567 margin: 10px 1px 10px 1px;
568 border: 1px solid #C9CDD0;
569 border-radius: 3px;
570 }
571
572 QScrollBar::handle:horizontal {
573 background-color: #ACB1B6;
574 border: 1px solid #C9CDD0;
575 border-radius: 3px;
576 min-width: 6px;
577 }
578
579 QScrollBar::handle:horizontal:hover {
580 background-color: #9FCBFF;
581 border: #9FCBFF;
582 border-radius: 3px;
583 min-width: 6px;
584 }
585
586 QScrollBar::handle:horizontal:focus {
587 border: 1px solid #73C7FF;
588 }
589
590 QScrollBar::handle:vertical {
591 background-color: #ACB1B6;
592 border: 1px solid #C9CDD0;
593 min-height: 8px;
594 border-radius: 4px;
595 }
596
597 QScrollBar::handle:vertical:hover {
598 background-color: #9FCBFF;
599 border: #9FCBFF;
600 border-radius: 4px;
601 min-height: 8px;
602 }
603
604 QScrollBar::handle:vertical:focus {
605 border: 1px solid #73C7FF;
606 }
607
608 QScrollBar::add-line:horizontal {
609 margin: 0px 0px 0px 0px;
610 border-image: url(":/light/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(":/light/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(":/light/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(":/light/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(":/light/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(":/light/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(":/light/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(":/light/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: #FAFAFA;
699 color: #19232D;
700 border-radius: 4px;
701 border: 1px solid #C9CDD0;
702 }
703
704 QTextEdit:focus {
705 border: 1px solid #73C7FF;
706 }
707
708 QTextEdit:selected {
709 background: #9FCBFF;
710 color: #C9CDD0;
711 }
712
713 /* QPlainTextEdit ---------------------------------------------------------
714
715 --------------------------------------------------------------------------- */
716 QPlainTextEdit {
717 background-color: #fafafa;
718 color: #19232D;
719 border-radius: 4px;
720 border: 1px solid #C9CDD0;
721 }
722
723 QPlainTextEdit:focus {
724 border: 1px solid #73C7FF;
725 }
726
727 QPlainTextEdit:selected {
728 background: #9FCBFF;
729 color: #C9CDD0;
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(":/light/rc/window_grip.png");
742 }
743
744 /* QStackedWidget ---------------------------------------------------------
745
746 --------------------------------------------------------------------------- */
747 QStackedWidget {
748 padding: 2px;
749 border: 1px solid #C9CDD0;
750 border: 1px solid #FAFAFA;
751 }
752
753 /* QToolBar ---------------------------------------------------------------
754
755 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
756
757 --------------------------------------------------------------------------- */
758 QToolBar {
759 background-color: #C9CDD0;
760 border-bottom: 1px solid #FAFAFA;
761 padding: 1px;
762 font-weight: bold;
763 spacing: 2px;
764 }
765
766 QToolBar:disabled {
767 /* Fixes #272 */
768 background-color: #C9CDD0;
769 }
770
771 QToolBar::handle:horizontal {
772 width: 16px;
773 image: url(":/light/rc/toolbar_move_horizontal.png");
774 }
775
776 QToolBar::handle:vertical {
777 height: 16px;
778 image: url(":/light/rc/toolbar_move_vertical.png");
779 }
780
781 QToolBar::separator:horizontal {
782 width: 16px;
783 image: url(":/light/rc/toolbar_separator_horizontal.png");
784 }
785
786 QToolBar::separator:vertical {
787 height: 16px;
788 image: url(":/light/rc/toolbar_separator_vertical.png");
789 }
790
791 QToolButton#qt_toolbar_ext_button {
792 background: #C9CDD0;
793 border: 0px;
794 color: #19232D;
795 image: url(":/light/rc/arrow_right.png");
796 }
797
798 /* QAbstractSpinBox -------------------------------------------------------
799
800 --------------------------------------------------------------------------- */
801 QAbstractSpinBox {
802 background-color: #FAFAFA;
803 border: 1px solid #C9CDD0;
804 color: #19232D;
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 #FAFAFA;
817 subcontrol-origin: border;
818 subcontrol-position: top right;
819 border-left: 1px solid #C9CDD0;
820 border-bottom: 1px solid #C9CDD0;
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(":/light/rc/arrow_up_disabled.png");
830 height: 8px;
831 width: 8px;
832 }
833
834 QAbstractSpinBox::up-arrow:hover {
835 image: url(":/light/rc/arrow_up.png");
836 }
837
838 QAbstractSpinBox:down-button {
839 background-color: transparent #FAFAFA;
840 subcontrol-origin: border;
841 subcontrol-position: bottom right;
842 border-left: 1px solid #C9CDD0;
843 border-top: 1px solid #C9CDD0;
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(":/light/rc/arrow_down_disabled.png");
853 height: 8px;
854 width: 8px;
855 }
856
857 QAbstractSpinBox::down-arrow:hover {
858 image: url(":/light/rc/arrow_down.png");
859 }
860
861 QAbstractSpinBox:hover {
862 border: 1px solid #9FCBFF;
863 color: #19232D;
864 }
865
866 QAbstractSpinBox:focus {
867 border: 1px solid #73C7FF;
868 }
869
870 QAbstractSpinBox:selected {
871 background: #9FCBFF;
872 color: #C9CDD0;
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: #FAFAFA;
885 border: 0px solid #C9CDD0;
886 padding: 2px;
887 margin: 0px;
888 color: #19232D;
889 }
890
891 QLabel:disabled {
892 background-color: #FAFAFA;
893 border: 0px solid #C9CDD0;
894 color: #788D9C;
895 }
896
897 /* QTextBrowser -----------------------------------------------------------
898
899 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
900
901 --------------------------------------------------------------------------- */
902 QTextBrowser {
903 background-color: #FAFAFA;
904 border: 1px solid #C9CDD0;
905 color: #19232D;
906 border-radius: 4px;
907 }
908
909 QTextBrowser:disabled {
910 background-color: #FAFAFA;
911 border: 1px solid #C9CDD0;
912 color: #788D9C;
913 border-radius: 4px;
914 }
915
916 QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pressed {
917 border: 1px solid #C9CDD0;
918 }
919
920 /* QGraphicsView ----------------------------------------------------------
921
922 --------------------------------------------------------------------------- */
923 QGraphicsView {
924 background-color: #FAFAFA;
925 border: 1px solid #C9CDD0;
926 color: #19232D;
927 border-radius: 4px;
928 }
929
930 QGraphicsView:disabled {
931 background-color: #FAFAFA;
932 border: 1px solid #C9CDD0;
933 color: #788D9C;
934 border-radius: 4px;
935 }
936
937 QGraphicsView:hover, QGraphicsView:!hover, QGraphicsView:selected, QGraphicsView:pressed {
938 border: 1px solid #C9CDD0;
939 }
940
941 /* QCalendarWidget --------------------------------------------------------
942
943 --------------------------------------------------------------------------- */
944 QCalendarWidget {
945 border: 1px solid #C9CDD0;
946 border-radius: 4px;
947 }
948
949 QCalendarWidget:disabled {
950 background-color: #FAFAFA;
951 color: #788D9C;
952 }
953
954 /* QLCDNumber -------------------------------------------------------------
955
956 --------------------------------------------------------------------------- */
957 QLCDNumber {
958 background-color: #FAFAFA;
959 color: #19232D;
960 }
961
962 QLCDNumber:disabled {
963 background-color: #FAFAFA;
964 color: #788D9C;
965 }
966
967 /* QProgressBar -----------------------------------------------------------
968
969 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
970
971 --------------------------------------------------------------------------- */
972 QProgressBar {
973 background-color: #FAFAFA;
974 border: 1px solid #C9CDD0;
975 color: #19232D;
976 border-radius: 4px;
977 text-align: center;
978 }
979
980 QProgressBar:disabled {
981 background-color: #FAFAFA;
982 border: 1px solid #C9CDD0;
983 color: #788D9C;
984 border-radius: 4px;
985 text-align: center;
986 }
987
988 QProgressBar::chunk {
989 background-color: #9FCBFF;
990 color: #FAFAFA;
991 border-radius: 4px;
992 }
993
994 QProgressBar::chunk:disabled {
995 background-color: #DAEDFF;
996 color: #788D9C;
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: #C9CDD0;
1010 color: #19232D;
1011 border-radius: 4px;
1012 padding: 2px;
1013 outline: none;
1014 border: none;
1015 }
1016
1017 QPushButton:disabled {
1018 background-color: #C9CDD0;
1019 color: #788D9C;
1020 border-radius: 4px;
1021 padding: 2px;
1022 }
1023
1024 QPushButton:checked {
1025 background-color: #ACB1B6;
1026 border-radius: 4px;
1027 padding: 2px;
1028 outline: none;
1029 }
1030
1031 QPushButton:checked:disabled {
1032 background-color: #ACB1B6;
1033 color: #788D9C;
1034 border-radius: 4px;
1035 padding: 2px;
1036 outline: none;
1037 }
1038
1039 QPushButton:checked:selected {
1040 background: #ACB1B6;
1041 }
1042
1043 QPushButton:hover {
1044 background-color: #B9BDC1;
1045 color: #19232D;
1046 }
1047
1048 QPushButton:pressed {
1049 background-color: #ACB1B6;
1050 }
1051
1052 QPushButton:selected {
1053 background: #ACB1B6;
1054 color: #19232D;
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
1065 QPushButton::menu-indicator {
1066 subcontrol-origin: padding;
1067 subcontrol-position: bottom right;
1068 bottom: 4px;
1069 }
1070
1071 QDialogButtonBox QPushButton {
1072 /* Issue #194 #248 - Special case of QPushButton inside dialogs, for better UI */
1073 min-width: 80px;
1074 }
1075
1076 /* QToolButton ------------------------------------------------------------
1077
1078 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
1079
1080 --------------------------------------------------------------------------- */
1081 QToolButton {
1082 background-color: #C9CDD0;
1083 color: #19232D;
1084 border-radius: 4px;
1085 border: 1px solid #C9CDD0;
1086 padding: 2px;
1087 outline: none;
1088 border: none;
1089 /* The subcontrols below are used only in the DelayedPopup mode */
1090 /* The subcontrols below are used only in the MenuButtonPopup mode */
1091 /* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
1092 }
1093
1094 QToolButton:disabled {
1095 background-color: #C9CDD0;
1096 border: 1px solid #C9CDD0;
1097 color: #788D9C;
1098 border-radius: 4px;
1099 padding: 2px;
1100 }
1101
1102 QToolButton:checked {
1103 background-color: #ACB1B6;
1104 border-radius: 4px;
1105 border: 1px solid #009900;
1106 padding: 2px;
1107 outline: none;
1108 }
1109
1110 QToolButton:checked:disabled {
1111 background-color: #ACB1B6;
1112 color: #788D9C;
1113 border: 1px solid #009900;
1114 border-radius: 4px;
1115 padding: 2px;
1116 outline: none;
1117 }
1118
1119 QToolButton:checked:hover {
1120 border: 1px solid #009900;
1121 background-color: #B9BDC1;
1122 color: #19232D;
1123 }
1124
1125 QToolButton:checked:pressed {
1126 border: 1px solid #009900;
1127 background-color: #ACB1B6;
1128 }
1129
1130 QToolButton:checked:selected {
1131 background: #ACB1B6;
1132 border: 1px solid #009900;
1133 color: #19232D;
1134 }
1135
1136 QToolButton:hover {
1137 background-color: #B9BDC1;
1138 border: 1px solid #C9CDD0;
1139 color: #19232D;
1140 }
1141
1142 QToolButton:pressed {
1143 background-color: #ACB1B6;
1144 border: 1px solid #C9CDD0;
1145 }
1146
1147 QToolButton:selected {
1148 background: #ACB1B6;
1149 border: 1px solid #C9CDD0;
1150 color: #19232D;
1151 }
1152
1153 QToolButton[popupMode="0"] {
1154 /* Only for DelayedPopup */
1155 padding-right: 2px;
1156 }
1157
1158 QToolButton[popupMode="1"] {
1159 /* Only for MenuButtonPopup */
1160 padding-right: 20px;
1161 }
1162
1163 QToolButton[popupMode="1"]::menu-button {
1164 border: none;
1165 }
1166
1167 QToolButton[popupMode="1"]::menu-button:hover {
1168 border: none;
1169 border-left: 1px solid #C9CDD0;
1170 border-radius: 0;
1171 }
1172
1173 QToolButton[popupMode="2"] {
1174 /* Only for InstantPopup */
1175 padding-right: 2px;
1176 }
1177
1178 QToolButton::menu-button {
1179 padding: 2px;
1180 border-radius: 4px;
1181 width: 12px;
1182 border: none;
1183 outline: none;
1184 }
1185
1186 QToolButton::menu-button:hover {
1187 border: 1px solid #9FCBFF;
1188 }
1189
1190 QToolButton::menu-button:checked:hover {
1191 border: 1px solid #9FCBFF;
1192 }
1193
1194 QToolButton::menu-indicator {
1195 image: url(":/light/rc/arrow_down.png");
1196 height: 8px;
1197 width: 8px;
1198 top: 0;
1199 /* Exclude a shift for better image */
1200 left: -2px;
1201 /* Shift it a bit */
1202 }
1203
1204 QToolButton::menu-arrow {
1205 image: url(":/light/rc/arrow_down.png");
1206 height: 8px;
1207 width: 8px;
1208 }
1209
1210 QToolButton::menu-arrow:hover {
1211 image: url(":/light/rc/arrow_down_focus.png");
1212 }
1213
1214 /* QCommandLinkButton -----------------------------------------------------
1215
1216 --------------------------------------------------------------------------- */
1217 QCommandLinkButton {
1218 background-color: transparent;
1219 border: 1px solid #C9CDD0;
1220 color: #19232D;
1221 border-radius: 4px;
1222 padding: 0px;
1223 margin: 0px;
1224 }
1225
1226 QCommandLinkButton:disabled {
1227 background-color: transparent;
1228 color: #788D9C;
1229 }
1230
1231 /* ------------------------------------------------------------------------ */
1232 /* INPUTS - NO FIELDS ----------------------------------------------------- */
1233 /* ------------------------------------------------------------------------ */
1234 /* QComboBox --------------------------------------------------------------
1235
1236 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
1237
1238 --------------------------------------------------------------------------- */
1239 QComboBox {
1240 border: 1px solid #C9CDD0;
1241 border-radius: 4px;
1242 selection-background-color: #9FCBFF;
1243 padding-left: 4px;
1244 padding-right: 4px;
1245 /* padding-right = 36; 4 + 16*2 See scrollbar size */
1246 /* changed to 4px to fix #239 */
1247 /* Fixes #103, #111 */
1248 min-height: 1.5em;
1249 /* padding-top: 2px; removed to fix #132 */
1250 /* padding-bottom: 2px; removed to fix #132 */
1251 /* min-width: 75px; removed to fix #109 */
1252 /* Needed to remove indicator - fix #132 */
1253 }
1254
1255 QComboBox QAbstractItemView {
1256 border: 1px solid #C9CDD0;
1257 border-radius: 0;
1258 background-color: #FAFAFA;
1259 selection-background-color: #9FCBFF;
1260 }
1261
1262 QComboBox QAbstractItemView:hover {
1263 background-color: #FAFAFA;
1264 color: #19232D;
1265 }
1266
1267 QComboBox QAbstractItemView:selected {
1268 background: #9FCBFF;
1269 color: #C9CDD0;
1270 }
1271
1272 QComboBox QAbstractItemView:alternate {
1273 background: #FAFAFA;
1274 }
1275
1276 QComboBox:disabled {
1277 background-color: #FAFAFA;
1278 color: #788D9C;
1279 }
1280
1281 QComboBox:hover {
1282 border: 1px solid #9FCBFF;
1283 }
1284
1285 QComboBox:focus {
1286 border: 1px solid #73C7FF;
1287 }
1288
1289 QComboBox:on {
1290 selection-background-color: #9FCBFF;
1291 }
1292
1293 QComboBox::indicator {
1294 border: none;
1295 border-radius: 0;
1296 background-color: transparent;
1297 selection-background-color: transparent;
1298 color: transparent;
1299 selection-color: transparent;
1300 /* Needed to remove indicator - fix #132 */
1301 }
1302
1303 QComboBox::indicator:alternate {
1304 background: #FAFAFA;
1305 }
1306
1307 QComboBox::item:alternate {
1308 background: #FAFAFA;
1309 }
1310
1311 QComboBox::item:checked {
1312 font-weight: bold;
1313 }
1314
1315 QComboBox::item:selected {
1316 border: 0px solid transparent;
1317 }
1318
1319 QComboBox::drop-down {
1320 subcontrol-origin: padding;
1321 subcontrol-position: top right;
1322 width: 12px;
1323 border-left: 1px solid #C9CDD0;
1324 }
1325
1326 QComboBox::down-arrow {
1327 image: url(":/light/rc/arrow_down_disabled.png");
1328 height: 8px;
1329 width: 8px;
1330 }
1331
1332 QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
1333 image: url(":/light/rc/arrow_down.png");
1334 }
1335
1336 /* QSlider ----------------------------------------------------------------
1337
1338 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
1339
1340 --------------------------------------------------------------------------- */
1341 QSlider:disabled {
1342 background: #FAFAFA;
1343 }
1344
1345 QSlider:focus {
1346 border: none;
1347 }
1348
1349 QSlider::groove:horizontal {
1350 background: #C9CDD0;
1351 border: 1px solid #C9CDD0;
1352 height: 4px;
1353 margin: 0px;
1354 border-radius: 4px;
1355 }
1356
1357 QSlider::groove:vertical {
1358 background: #C9CDD0;
1359 border: 1px solid #C9CDD0;
1360 width: 4px;
1361 margin: 0px;
1362 border-radius: 4px;
1363 }
1364
1365 QSlider::add-page:vertical {
1366 background: #9FCBFF;
1367 border: 1px solid #C9CDD0;
1368 width: 4px;
1369 margin: 0px;
1370 border-radius: 4px;
1371 }
1372
1373 QSlider::add-page:vertical :disabled {
1374 background: #DAEDFF;
1375 }
1376
1377 QSlider::sub-page:horizontal {
1378 background: #9FCBFF;
1379 border: 1px solid #C9CDD0;
1380 height: 4px;
1381 margin: 0px;
1382 border-radius: 4px;
1383 }
1384
1385 QSlider::sub-page:horizontal:disabled {
1386 background: #DAEDFF;
1387 }
1388
1389 QSlider::handle:horizontal {
1390 background: #788D9C;
1391 border: 1px solid #C9CDD0;
1392 width: 8px;
1393 height: 8px;
1394 margin: -8px 0px;
1395 border-radius: 4px;
1396 }
1397
1398 QSlider::handle:horizontal:hover {
1399 background: #9FCBFF;
1400 border: 1px solid #9FCBFF;
1401 }
1402
1403 QSlider::handle:horizontal:focus {
1404 border: 1px solid #73C7FF;
1405 }
1406
1407 QSlider::handle:vertical {
1408 background: #788D9C;
1409 border: 1px solid #C9CDD0;
1410 width: 8px;
1411 height: 8px;
1412 margin: 0 -8px;
1413 border-radius: 4px;
1414 }
1415
1416 QSlider::handle:vertical:hover {
1417 background: #9FCBFF;
1418 border: 1px solid #9FCBFF;
1419 }
1420
1421 QSlider::handle:vertical:focus {
1422 border: 1px solid #73C7FF;
1423 }
1424
1425 /* QLineEdit --------------------------------------------------------------
1426
1427 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
1428
1429 --------------------------------------------------------------------------- */
1430 QLineEdit {
1431 background-color: #FAFAFA;
1432 padding-top: 2px;
1433 /* This QLineEdit fix 103, 111 */
1434 padding-bottom: 2px;
1435 /* This QLineEdit fix 103, 111 */
1436 padding-left: 4px;
1437 padding-right: 4px;
1438 border-style: solid;
1439 border: 1px solid #C9CDD0;
1440 border-radius: 4px;
1441 color: #19232D;
1442 }
1443
1444 QLineEdit:disabled {
1445 background-color: #FAFAFA;
1446 color: #788D9C;
1447 }
1448
1449 QLineEdit:hover {
1450 border: 1px solid #9FCBFF;
1451 color: #19232D;
1452 }
1453
1454 QLineEdit:focus {
1455 border: 1px solid #73C7FF;
1456 }
1457
1458 QLineEdit:selected {
1459 background-color: #9FCBFF;
1460 color: #C9CDD0;
1461 }
1462
1463 /* QTabWiget --------------------------------------------------------------
1464
1465 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1466
1467 --------------------------------------------------------------------------- */
1468 QTabWidget {
1469 padding: 2px;
1470 selection-background-color: #C9CDD0;
1471 }
1472
1473 QTabWidget QWidget {
1474 /* Fixes #189 */
1475 border-radius: 4px;
1476 }
1477
1478 QTabWidget::pane {
1479 border: 1px solid #C9CDD0;
1480 border-radius: 4px;
1481 margin: 0px;
1482 /* Fixes double border inside pane with pyqt5 */
1483 padding: 0px;
1484 }
1485
1486 QTabWidget::pane:selected {
1487 background-color: #C9CDD0;
1488 border: 1px solid #9FCBFF;
1489 }
1490
1491 /* QTabBar ----------------------------------------------------------------
1492
1493 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1494
1495 --------------------------------------------------------------------------- */
1496 QTabBar, QDockWidget QTabBar {
1497 qproperty-drawBase: 0;
1498 border-radius: 4px;
1499 margin: 0px;
1500 padding: 2px;
1501 border: 0;
1502 /* left: 5px; move to the right by 5px - removed for fix */
1503 }
1504
1505 QTabBar::close-button, QDockWidget QTabBar::close-button {
1506 border: 0;
1507 margin: 0;
1508 padding: 4px;
1509 image: url(":/light/rc/window_close.png");
1510 }
1511
1512 QTabBar::close-button:hover, QDockWidget QTabBar::close-button:hover {
1513 image: url(":/light/rc/window_close_focus.png");
1514 }
1515
1516 QTabBar::close-button:pressed, QDockWidget QTabBar::close-button:pressed {
1517 image: url(":/light/rc/window_close_pressed.png");
1518 }
1519
1520 QTabBar::tab, QDockWidget QTabBar::tab {
1521 /* !selected and disabled ----------------------------------------- */
1522 /* selected ------------------------------------------------------- */
1523 }
1524
1525 QTabBar::tab:top:selected:disabled, QDockWidget QTabBar::tab:top:selected:disabled {
1526 border-bottom: 3px solid #DAEDFF;
1527 color: #788D9C;
1528 background-color: #C9CDD0;
1529 }
1530
1531 QTabBar::tab:bottom:selected:disabled, QDockWidget QTabBar::tab:bottom:selected:disabled {
1532 border-top: 3px solid #DAEDFF;
1533 color: #788D9C;
1534 background-color: #C9CDD0;
1535 }
1536
1537 QTabBar::tab:left:selected:disabled, QDockWidget QTabBar::tab:left:selected:disabled {
1538 border-right: 3px solid #DAEDFF;
1539 color: #788D9C;
1540 background-color: #C9CDD0;
1541 }
1542
1543 QTabBar::tab:right:selected:disabled, QDockWidget QTabBar::tab:right:selected:disabled {
1544 border-left: 3px solid #DAEDFF;
1545 color: #788D9C;
1546 background-color: #C9CDD0;
1547 }
1548
1549 QTabBar::tab:top:!selected:disabled, QDockWidget QTabBar::tab:top:!selected:disabled {
1550 border-bottom: 3px solid #FAFAFA;
1551 color: #788D9C;
1552 background-color: #FAFAFA;
1553 }
1554
1555 QTabBar::tab:bottom:!selected:disabled, QDockWidget QTabBar::tab:bottom:!selected:disabled {
1556 border-top: 3px solid #FAFAFA;
1557 color: #788D9C;
1558 background-color: #FAFAFA;
1559 }
1560
1561 QTabBar::tab:left:!selected:disabled, QDockWidget QTabBar::tab:left:!selected:disabled {
1562 border-right: 3px solid #FAFAFA;
1563 color: #788D9C;
1564 background-color: #FAFAFA;
1565 }
1566
1567 QTabBar::tab:right:!selected:disabled, QDockWidget QTabBar::tab:right:!selected:disabled {
1568 border-left: 3px solid #FAFAFA;
1569 color: #788D9C;
1570 background-color: #FAFAFA;
1571 }
1572
1573 QTabBar::tab:top:!selected, QDockWidget QTabBar::tab:top:!selected {
1574 border-bottom: 2px solid #FAFAFA;
1575 margin-top: 2px;
1576 }
1577
1578 QTabBar::tab:bottom:!selected, QDockWidget QTabBar::tab:bottom:!selected {
1579 border-top: 2px solid #FAFAFA;
1580 margin-bottom: 2px;
1581 }
1582
1583 QTabBar::tab:left:!selected, QDockWidget QTabBar::tab:left:!selected {
1584 border-left: 2px solid #FAFAFA;
1585 margin-right: 2px;
1586 }
1587
1588 QTabBar::tab:right:!selected, QDockWidget QTabBar::tab:right:!selected {
1589 border-right: 2px solid #FAFAFA;
1590 margin-left: 2px;
1591 }
1592
1593 QTabBar::tab:top, QDockWidget QTabBar::tab:top {
1594 background-color: #C9CDD0;
1595 margin-left: 2px;
1596 padding-left: 4px;
1597 padding-right: 4px;
1598 padding-top: 2px;
1599 padding-bottom: 2px;
1600 min-width: 5px;
1601 border-bottom: 3px solid #C9CDD0;
1602 border-top-left-radius: 4px;
1603 border-top-right-radius: 4px;
1604 }
1605
1606 QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
1607 background-color: #B9BDC1;
1608 border-bottom: 3px solid #37AEFE;
1609 border-top-left-radius: 4px;
1610 border-top-right-radius: 4px;
1611 }
1612
1613 QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
1614 border: 1px solid #73C7FF;
1615 border-bottom: 3px solid #73C7FF;
1616 /* Fixes spyder-ide/spyder#9766 and #243 */
1617 padding-left: 3px;
1618 padding-right: 3px;
1619 }
1620
1621 QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
1622 border-top: 3px solid #C9CDD0;
1623 background-color: #C9CDD0;
1624 margin-left: 2px;
1625 padding-left: 4px;
1626 padding-right: 4px;
1627 padding-top: 2px;
1628 padding-bottom: 2px;
1629 border-bottom-left-radius: 4px;
1630 border-bottom-right-radius: 4px;
1631 min-width: 5px;
1632 }
1633
1634 QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
1635 background-color: #B9BDC1;
1636 border-top: 3px solid #37AEFE;
1637 border-bottom-left-radius: 4px;
1638 border-bottom-right-radius: 4px;
1639 }
1640
1641 QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
1642 border: 1px solid #73C7FF;
1643 border-top: 3px solid #73C7FF;
1644 /* Fixes spyder-ide/spyder#9766 and #243 */
1645 padding-left: 3px;
1646 padding-right: 3px;
1647 }
1648
1649 QTabBar::tab:left, QDockWidget QTabBar::tab:left {
1650 background-color: #C9CDD0;
1651 margin-top: 2px;
1652 padding-left: 2px;
1653 padding-right: 2px;
1654 padding-top: 4px;
1655 padding-bottom: 4px;
1656 border-top-left-radius: 4px;
1657 border-bottom-left-radius: 4px;
1658 min-height: 5px;
1659 }
1660
1661 QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
1662 background-color: #B9BDC1;
1663 border-right: 3px solid #37AEFE;
1664 }
1665
1666 QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
1667 border: 1px solid #73C7FF;
1668 border-right: 3px solid #73C7FF;
1669 /* Fixes different behavior #271 */
1670 margin-right: 0px;
1671 padding-right: -1px;
1672 }
1673
1674 QTabBar::tab:right, QDockWidget QTabBar::tab:right {
1675 background-color: #C9CDD0;
1676 margin-top: 2px;
1677 padding-left: 2px;
1678 padding-right: 2px;
1679 padding-top: 4px;
1680 padding-bottom: 4px;
1681 border-top-right-radius: 4px;
1682 border-bottom-right-radius: 4px;
1683 min-height: 5px;
1684 }
1685
1686 QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
1687 background-color: #B9BDC1;
1688 border-left: 3px solid #37AEFE;
1689 }
1690
1691 QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
1692 border: 1px solid #73C7FF;
1693 border-left: 3px solid #73C7FF;
1694 /* Fixes different behavior #271 */
1695 margin-left: 0px;
1696 padding-left: 0px;
1697 }
1698
1699 QTabBar QToolButton, QDockWidget QTabBar QToolButton {
1700 /* Fixes #136 */
1701 background-color: #C9CDD0;
1702 height: 12px;
1703 width: 12px;
1704 }
1705
1706 QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
1707 background-color: #C9CDD0;
1708 }
1709
1710 QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
1711 border: 1px solid #9FCBFF;
1712 }
1713
1714 QTabBar QToolButton::left-arrow:enabled, QDockWidget QTabBar QToolButton::left-arrow:enabled {
1715 image: url(":/light/rc/arrow_left.png");
1716 }
1717
1718 QTabBar QToolButton::left-arrow:disabled, QDockWidget QTabBar QToolButton::left-arrow:disabled {
1719 image: url(":/light/rc/arrow_left_disabled.png");
1720 }
1721
1722 QTabBar QToolButton::right-arrow:enabled, QDockWidget QTabBar QToolButton::right-arrow:enabled {
1723 image: url(":/light/rc/arrow_right.png");
1724 }
1725
1726 QTabBar QToolButton::right-arrow:disabled, QDockWidget QTabBar QToolButton::right-arrow:disabled {
1727 image: url(":/light/rc/arrow_right_disabled.png");
1728 }
1729
1730 /* QDockWiget -------------------------------------------------------------
1731
1732 --------------------------------------------------------------------------- */
1733 QDockWidget {
1734 outline: 1px solid #C9CDD0;
1735 background-color: #FAFAFA;
1736 border: 1px solid #C9CDD0;
1737 border-radius: 4px;
1738 titlebar-close-icon: url(":/light/rc/transparent.png");
1739 titlebar-normal-icon: url(":/light/rc/transparent.png");
1740 }
1741
1742 QDockWidget::title {
1743 /* Better size for title bar */
1744 padding: 3px;
1745 spacing: 4px;
1746 border: none;
1747 background-color: #C9CDD0;
1748 }
1749
1750 QDockWidget::close-button {
1751 icon-size: 12px;
1752 border: none;
1753 background: transparent;
1754 background-image: transparent;
1755 border: 0;
1756 margin: 0;
1757 padding: 0;
1758 image: url(":/light/rc/window_close.png");
1759 }
1760
1761 QDockWidget::close-button:hover {
1762 image: url(":/light/rc/window_close_focus.png");
1763 }
1764
1765 QDockWidget::close-button:pressed {
1766 image: url(":/light/rc/window_close_pressed.png");
1767 }
1768
1769 QDockWidget::float-button {
1770 icon-size: 12px;
1771 border: none;
1772 background: transparent;
1773 background-image: transparent;
1774 border: 0;
1775 margin: 0;
1776 padding: 0;
1777 image: url(":/light/rc/window_undock.png");
1778 }
1779
1780 QDockWidget::float-button:hover {
1781 image: url(":/light/rc/window_undock_focus.png");
1782 }
1783
1784 QDockWidget::float-button:pressed {
1785 image: url(":/light/rc/window_undock_pressed.png");
1786 }
1787
1788 /* QTreeView QListView QTableView -----------------------------------------
1789
1790 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
1791 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
1792 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
1793
1794 --------------------------------------------------------------------------- */
1795 QTreeView:branch:selected, QTreeView:branch:hover {
1796 background: url(":/light/rc/transparent.png");
1797 }
1798
1799 QTreeView:branch:has-siblings:!adjoins-item {
1800 border-image: url(":/light/rc/branch_line.png") 0;
1801 }
1802
1803 QTreeView:branch:has-siblings:adjoins-item {
1804 border-image: url(":/light/rc/branch_more.png") 0;
1805 }
1806
1807 QTreeView:branch:!has-children:!has-siblings:adjoins-item {
1808 border-image: url(":/light/rc/branch_end.png") 0;
1809 }
1810
1811 QTreeView:branch:has-children:!has-siblings:closed, QTreeView:branch:closed:has-children:has-siblings {
1812 border-image: none;
1813 image: url(":/light/rc/branch_closed.png");
1814 }
1815
1816 QTreeView:branch:open:has-children:!has-siblings, QTreeView:branch:open:has-children:has-siblings {
1817 border-image: none;
1818 image: url(":/light/rc/branch_open.png");
1819 }
1820
1821 QTreeView:branch:has-children:!has-siblings:closed:hover, QTreeView:branch:closed:has-children:has-siblings:hover {
1822 image: url(":/light/rc/branch_closed_focus.png");
1823 }
1824
1825 QTreeView:branch:open:has-children:!has-siblings:hover, QTreeView:branch:open:has-children:has-siblings:hover {
1826 image: url(":/light/rc/branch_open_focus.png");
1827 }
1828
1829 QTreeView::indicator:checked,
1830 QListView::indicator:checked,
1831 QTableView::indicator:checked,
1832 QColumnView::indicator:checked {
1833 image: url(":/light/rc/checkbox_checked.png");
1834 }
1835
1836 QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
1837 QListView::indicator:checked:hover,
1838 QListView::indicator:checked:focus,
1839 QListView::indicator:checked:pressed,
1840 QTableView::indicator:checked:hover,
1841 QTableView::indicator:checked:focus,
1842 QTableView::indicator:checked:pressed,
1843 QColumnView::indicator:checked:hover,
1844 QColumnView::indicator:checked:focus,
1845 QColumnView::indicator:checked:pressed {
1846 image: url(":/light/rc/checkbox_checked_focus.png");
1847 }
1848
1849 QTreeView::indicator:unchecked,
1850 QListView::indicator:unchecked,
1851 QTableView::indicator:unchecked,
1852 QColumnView::indicator:unchecked {
1853 image: url(":/light/rc/checkbox_unchecked.png");
1854 }
1855
1856 QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
1857 QListView::indicator:unchecked:hover,
1858 QListView::indicator:unchecked:focus,
1859 QListView::indicator:unchecked:pressed,
1860 QTableView::indicator:unchecked:hover,
1861 QTableView::indicator:unchecked:focus,
1862 QTableView::indicator:unchecked:pressed,
1863 QColumnView::indicator:unchecked:hover,
1864 QColumnView::indicator:unchecked:focus,
1865 QColumnView::indicator:unchecked:pressed {
1866 image: url(":/light/rc/checkbox_unchecked_focus.png");
1867 }
1868
1869 QTreeView::indicator:indeterminate,
1870 QListView::indicator:indeterminate,
1871 QTableView::indicator:indeterminate,
1872 QColumnView::indicator:indeterminate {
1873 image: url(":/light/rc/checkbox_indeterminate.png");
1874 }
1875
1876 QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
1877 QListView::indicator:indeterminate:hover,
1878 QListView::indicator:indeterminate:focus,
1879 QListView::indicator:indeterminate:pressed,
1880 QTableView::indicator:indeterminate:hover,
1881 QTableView::indicator:indeterminate:focus,
1882 QTableView::indicator:indeterminate:pressed,
1883 QColumnView::indicator:indeterminate:hover,
1884 QColumnView::indicator:indeterminate:focus,
1885 QColumnView::indicator:indeterminate:pressed {
1886 image: url(":/light/rc/checkbox_indeterminate_focus.png");
1887 }
1888
1889 QTreeView,
1890 QListView,
1891 QTableView,
1892 QColumnView {
1893 background-color: #FAFAFA;
1894 border: 1px solid #C9CDD0;
1895 color: #19232D;
1896 gridline-color: #C9CDD0;
1897 border-radius: 4px;
1898 }
1899
1900 QTreeView:disabled,
1901 QListView:disabled,
1902 QTableView:disabled,
1903 QColumnView:disabled {
1904 background-color: #FAFAFA;
1905 color: #788D9C;
1906 }
1907
1908 QTreeView:selected,
1909 QListView:selected,
1910 QTableView:selected,
1911 QColumnView:selected {
1912 background-color: #9FCBFF;
1913 color: #C9CDD0;
1914 }
1915
1916 QTreeView:focus,
1917 QListView:focus,
1918 QTableView:focus,
1919 QColumnView:focus {
1920 border: 1px solid #73C7FF;
1921 }
1922
1923 QTreeView::item:pressed,
1924 QListView::item:pressed,
1925 QTableView::item:pressed,
1926 QColumnView::item:pressed {
1927 background-color: #9FCBFF;
1928 }
1929
1930 QTreeView::item:selected:active,
1931 QListView::item:selected:active,
1932 QTableView::item:selected:active,
1933 QColumnView::item:selected:active {
1934 background-color: #9FCBFF;
1935 }
1936
1937 QTreeView::item:selected:!active,
1938 QListView::item:selected:!active,
1939 QTableView::item:selected:!active,
1940 QColumnView::item:selected:!active {
1941 color: #19232D;
1942 background-color: #CED1D4;
1943 }
1944
1945 QTreeView::item:!selected:hover,
1946 QListView::item:!selected:hover,
1947 QTableView::item:!selected:hover,
1948 QColumnView::item:!selected:hover {
1949 outline: 0;
1950 color: #19232D;
1951 background-color: #CED1D4;
1952 }
1953
1954 QTableCornerButton::section {
1955 background-color: #FAFAFA;
1956 border: 1px transparent #C9CDD0;
1957 border-radius: 0px;
1958 }
1959
1960 /* QHeaderView ------------------------------------------------------------
1961
1962 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
1963
1964 --------------------------------------------------------------------------- */
1965 QHeaderView {
1966 background-color: #C9CDD0;
1967 border: 0px transparent #C9CDD0;
1968 padding: 0;
1969 margin: 0;
1970 border-radius: 0;
1971 }
1972
1973 QHeaderView:disabled {
1974 background-color: #C9CDD0;
1975 border: 1px transparent #C9CDD0;
1976 }
1977
1978 QHeaderView::section {
1979 background-color: #C9CDD0;
1980 color: #19232D;
1981 border-radius: 0;
1982 text-align: left;
1983 font-size: 13px;
1984 }
1985
1986 QHeaderView::section::horizontal {
1987 padding-top: 0;
1988 padding-bottom: 0;
1989 padding-left: 4px;
1990 padding-right: 4px;
1991 border-left: 1px solid #FAFAFA;
1992 }
1993
1994 QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
1995 border-left: 1px solid #C9CDD0;
1996 }
1997
1998 QHeaderView::section::horizontal:disabled {
1999 color: #788D9C;
2000 }
2001
2002 QHeaderView::section::vertical {
2003 padding-top: 0;
2004 padding-bottom: 0;
2005 padding-left: 4px;
2006 padding-right: 4px;
2007 border-top: 1px solid #FAFAFA;
2008 }
2009
2010 QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
2011 border-top: 1px solid #C9CDD0;
2012 }
2013
2014 QHeaderView::section::vertical:disabled {
2015 color: #788D9C;
2016 }
2017
2018 QHeaderView::down-arrow {
2019 /* Those settings (border/width/height/background-color) solve bug */
2020 /* transparent arrow background and size */
2021 background-color: #C9CDD0;
2022 border: none;
2023 height: 12px;
2024 width: 12px;
2025 padding-left: 2px;
2026 padding-right: 2px;
2027 image: url(":/light/rc/arrow_down.png");
2028 }
2029
2030 QHeaderView::up-arrow {
2031 background-color: #C9CDD0;
2032 border: none;
2033 height: 12px;
2034 width: 12px;
2035 padding-left: 2px;
2036 padding-right: 2px;
2037 image: url(":/light/rc/arrow_up.png");
2038 }
2039
2040 /* QToolBox --------------------------------------------------------------
2041
2042 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
2043
2044 --------------------------------------------------------------------------- */
2045 QToolBox {
2046 padding: 0px;
2047 border: 0px;
2048 border: 1px solid #C9CDD0;
2049 }
2050
2051 QToolBox:selected {
2052 padding: 0px;
2053 border: 2px solid #9FCBFF;
2054 }
2055
2056 QToolBox::tab {
2057 background-color: #FAFAFA;
2058 border: 1px solid #C9CDD0;
2059 color: #19232D;
2060 border-top-left-radius: 4px;
2061 border-top-right-radius: 4px;
2062 }
2063
2064 QToolBox::tab:disabled {
2065 color: #788D9C;
2066 }
2067
2068 QToolBox::tab:selected {
2069 background-color: #ACB1B6;
2070 border-bottom: 2px solid #9FCBFF;
2071 }
2072
2073 QToolBox::tab:selected:disabled {
2074 background-color: #C9CDD0;
2075 border-bottom: 2px solid #DAEDFF;
2076 }
2077
2078 QToolBox::tab:!selected {
2079 background-color: #C9CDD0;
2080 border-bottom: 2px solid #C9CDD0;
2081 }
2082
2083 QToolBox::tab:!selected:disabled {
2084 background-color: #FAFAFA;
2085 }
2086
2087 QToolBox::tab:hover {
2088 border-color: #73C7FF;
2089 border-bottom: 2px solid #73C7FF;
2090 }
2091
2092 QToolBox QScrollArea QWidget QWidget {
2093 padding: 0px;
2094 border: 0px;
2095 background-color: #FAFAFA;
2096 }
2097
2098 /* QFrame -----------------------------------------------------------------
2099
2100 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
2101 https://doc.qt.io/qt-5/qframe.html#-prop
2102 https://doc.qt.io/qt-5/qframe.html#details
2103 https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
2104
2105 --------------------------------------------------------------------------- */
2106 /* (dot) .QFrame fix #141, #126, #123 */
2107 .QFrame {
2108 border-radius: 4px;
2109 border: 1px solid #C9CDD0;
2110 /* No frame */
2111 /* HLine */
2112 /* HLine */
2113 }
2114
2115 .QFrame[frameShape="0"] {
2116 border-radius: 4px;
2117 border: 1px transparent #C9CDD0;
2118 }
2119
2120 .QFrame[frameShape="4"] {
2121 max-height: 2px;
2122 border: none;
2123 background-color: #C9CDD0;
2124 }
2125
2126 .QFrame[frameShape="5"] {
2127 max-width: 2px;
2128 border: none;
2129 background-color: #C9CDD0;
2130 }
2131
2132 /* QSplitter --------------------------------------------------------------
2133
2134 https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
2135
2136 --------------------------------------------------------------------------- */
2137 QSplitter {
2138 background-color: #C9CDD0;
2139 spacing: 0px;
2140 padding: 0px;
2141 margin: 0px;
2142 }
2143
2144 QSplitter::handle {
2145 background-color: #C9CDD0;
2146 border: 0px solid #FAFAFA;
2147 spacing: 0px;
2148 padding: 1px;
2149 margin: 0px;
2150 }
2151
2152 QSplitter::handle:hover {
2153 background-color: #788D9C;
2154 }
2155
2156 QSplitter::handle:horizontal {
2157 width: 5px;
2158 image: url(":/light/rc/line_vertical.png");
2159 }
2160
2161 QSplitter::handle:vertical {
2162 height: 5px;
2163 image: url(":/light/rc/line_horizontal.png");
2164 }
2165
2166 /* QDateEdit, QDateTimeEdit -----------------------------------------------
2167
2168 --------------------------------------------------------------------------- */
2169 QDateEdit, QDateTimeEdit {
2170 selection-background-color: #9FCBFF;
2171 border-style: solid;
2172 border: 1px solid #C9CDD0;
2173 border-radius: 4px;
2174 /* This fixes 103, 111 */
2175 padding-top: 2px;
2176 /* This fixes 103, 111 */
2177 padding-bottom: 2px;
2178 padding-left: 4px;
2179 padding-right: 4px;
2180 min-width: 10px;
2181 }
2182
2183 QDateEdit:on, QDateTimeEdit:on {
2184 selection-background-color: #9FCBFF;
2185 }
2186
2187 QDateEdit::drop-down, QDateTimeEdit::drop-down {
2188 subcontrol-origin: padding;
2189 subcontrol-position: top right;
2190 width: 12px;
2191 border-left: 1px solid #C9CDD0;
2192 }
2193
2194 QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
2195 image: url(":/light/rc/arrow_down_disabled.png");
2196 height: 8px;
2197 width: 8px;
2198 }
2199
2200 QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
2201 image: url(":/light/rc/arrow_down.png");
2202 }
2203
2204 QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
2205 background-color: #FAFAFA;
2206 border-radius: 4px;
2207 border: 1px solid #C9CDD0;
2208 selection-background-color: #9FCBFF;
2209 }
2210
2211 /* QAbstractView ----------------------------------------------------------
2212
2213 --------------------------------------------------------------------------- */
2214 QAbstractView:hover {
2215 border: 1px solid #9FCBFF;
2216 color: #19232D;
2217 }
2218
2219 QAbstractView:selected {
2220 background: #9FCBFF;
2221 color: #C9CDD0;
2222 }
2223
2224 /* PlotWidget -------------------------------------------------------------
2225
2226 --------------------------------------------------------------------------- */
2227 PlotWidget {
2228 /* Fix cut labels in plots #134 */
2229 padding: 0px;
2230 }