FreeCAD
2807 строк · 73.2 Кб
1/*
2ABOUT
3============================================================================================================
4Revised stylesheet based on the original from Pablo Gil Fernández made by MisterMaker
5
6KNOWN BUGS and TO DO
7============================================================================================================
8Please, follow the link to get updated information:
9https://forum.freecad.org/viewtopic.php?t=78431
10
11INSTALLATION WHEN NECESSARY
12============================================================================================================
131) Place the .qss files and /images/ folder in the path that fits your OS:
14OSX = /Users/[YOUR_USER_NAME]/Library/Preferences/FreeCAD/Gui/Stylesheets/
15WINDOWS = C:/[INSTALLATION_PATH]/FreeCAD/data/Gui/Stylesheets/
16LINUX = /home/[YOUR_USER_NAME]/.FreeCAD/Gui/Stylesheets/
17
18============================================================================================================
19FOLLOWING CODES ARE CHANGED IN THE SETTINGS:
20@ThemeAccentColor1
21@ThemeAccentColor2
22@ThemeAccentColor3
23See Qt documentation:
24
25- https://doc.qt.io/qt-5/stylesheet.html
26- https://doc.qt.io/qt-5/stylesheet-reference.html
27- https://doc.qt.io/qt-5/stylesheet-examples.html
28
29--------------------------------------------------------------------------- */
30
31
32/* Reset elements ------------------------------------------------------------
33
34Resetting everything helps to unify styles across different operating systems
35
36--------------------------------------------------------------------------- */
37* {
38padding: 0px;
39margin: 0px;
40border: 0px;
41border-style: none;
42border-image: none;
43outline: 0;
44color: white;
45selection-background-color: @ThemeAccentColor1;
46selection-color: white;
47}
48
49/* specific reset for elements inside QToolBar */
50QToolBar * {
51margin: 0px;
52padding: 0px;
53}
54
55/*hacks */
56
57Gui--PropertyEditor--PropertyEditor QLineEdit:read-only,
58Gui--PropertyEditor--PropertyEditor QLineEdit:disabled,
59Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:read-only,
60Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:disabled {
61color: transparent;
62border-color: transparent;
63background-color: #444444;
64selection-color: transparent;
65selection-background-color: transparent;
66border-radius: 2px;
67}
68
69Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel,
70Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel:disabled {
71color: transparent;
72background-color: transparent;
73border: none;
74border-radius: 2px;
75margin: 0px;
76padding: 0px;
77}
78
79Gui--PropertyEditor--PropertyEditor QSpinBox,
80Gui--PropertyEditor--PropertyEditor QDoubleSpinBox,
81Gui--PropertyEditor--PropertyEditor QAbstractSpinBox,
82Gui--PropertyEditor--PropertyEditor QLineEdit,
83Gui--PropertyEditor--PropertyEditor QComboBox {
84margin-left: 0px;
85margin-right: 0px;
86padding: 0 2px;
87border-radius: 2px;
88}
89
90/* fix for column items background when a link is present */
91Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus {
92background-color: @ThemeAccentColor2; /* same as focused background color */
93}
94
95/* hack to hide weird redundant information inside cells with links and no editable data (but editable via "..." button) */
96Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel {
97color: #ffffff;
98background-color: #ACC8E5; /* same as focused background color */
99border-radius: 2px;
100}
101
102/*==================================================================================================
103Main window
104==================================================================================================*/
105QMainWindow,
106QDialog,
107QDockWidget,
108QToolBar {
109background-color: #333333; /* main background color */
110}
111
112QMdiArea {
113/* background-image: url(qss:images_classic/background_freecad_light.png);
114background-position: center center;
115background-repeat: no-repeat; */
116}
117/*navgation src/Mod/Tux/NavigationIndicatorGui.py */
118Gui--NavigationIndicatorGui--BlenderNavigationStyle {
119/*QAction#a4 {*/
120qproperty-icon: url(:/icons/icons/NavigationBlender_light.svg);
121}
122
123/* QWidget ----------------------------------------------------------------
124This causes much load time.
125--------------------------------------------------------------------------- */
126/* QWidget { */
127/* background-color: #444444; */
128/* border: 0px solid #020202;
129padding: 0px;
130color: white; */
131/* selection-background-color: @ThemeAccentColor1; */
132/* selection-color: white; */
133/* } */
134
135/* QWidget:disabled {
136color: #adadad;
137selection-background-color: @ThemeAccentColor1;
138selection-color: #cccccc;
139} */
140
141QWidget::item:selected {
142background-color: @ThemeAccentColor1;
143}
144
145QColorDialog QWidget {
146background-color: #333333;
147color: white;
148selection-background-color: @ThemeAccentColor1;
149selection-color: black;
150}
151
152/* Causes issue with colorselector.
153QWidget::item:hover:!selected {
154background-color: @ThemeAccentColor1;
155}*/
156
157/* QMainWindow ------------------------------------------------------------
158
159This adjusts the splitter in the dock widget, not qsplitter
160https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmainwindow
161
162--------------------------------------------------------------------------- */
163QMainWindow::separator {
164border: 0px solid #020202;
165spacing: 0px;
166padding: 1px;
167}
168
169QMainWindow::separator:vertical:hover {
170image: url(qss:images_classic/splitter_vertical-lightgray.png);
171}
172
173QMainWindow::separator:horizontal:hover {
174image: url(qss:images_classic/splitter_horizontal-lightgray.png);
175}
176
177QMainWindow::separator:horizontal {
178width: 4px;
179margin-top: 0.1px;
180margin-bottom: 0.1px;
181}
182
183QMainWindow::separator:vertical {
184height: 4px;
185margin-left: 0.1px;
186margin-right: 0.1px;
187}
188
189/* QToolTip ---------------------------------------------------------------
190
191https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtooltip
192
193--------------------------------------------------------------------------- */
194QToolTip {
195background-color: #FFFFE1;
196color: black;
197/* If you remove the border property, background stops working on Windows */
198border: none;
199font-weight:bolder;
200border-top-width: 1px;
201border-left-width: 1px;
202border-right-width: 1.5px;
203border-bottom-width: 1.5px;
204border-style: solid;
205border-color: #202020;
206/* Remove padding, for fix combo box tooltip */
207padding: 0px;
208/* Remove opacity, fix #174 - may need to use RGBA */
209/* border-radius: 4px; */
210}
211
212/* QStatusBar -------------------------------------------------------------
213
214https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qstatusbar
215
216--------------------------------------------------------------------------- */
217QStatusBar {
218border: 0px solid #3c3c3c;
219/* Fixes Spyder #9120, #9121 */
220background-color: #333333;
221/* Fixes #205, white vertical borders separating items */
222}
223
224QStatusBar::item {
225border: none;
226}
227
228QStatusBar QToolTip {
229background-color: #333333;
230border: 1px solid #020202;
231color: #ffffff;
232/* Remove padding, for fix combo box tooltip */
233padding: 0px;
234/* Reducing transparency to read better */
235opacity: 230;
236}
237
238QStatusBar QLabel {
239/* Fixes Spyder #9120, #9121 */
240background-color: transparent;
241}
242
243/* QCheckBox --------------------------------------------------------------
244
245https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox
246
247--------------------------------------------------------------------------- */
248QCheckBox {
249color: white;
250padding: 1px;
251outline: none;
252border: 1px solid transparent;
253background-color: transparent;
254spacing: 8px;
255}
256
257QCheckBox:focus {
258border: 1px solid @ThemeAccentColor2;
259}
260
261QCheckBox QWidget:disabled {
262color: #adadad;
263}
264
265QCheckBox::indicator {
266color: white;
267background-color: #252525;
268width: 12px;
269height: 12px;
270border: 1px solid #f0f0f0;
271}
272
273QCheckBox::indicator:unchecked {
274background-color: #252525;
275border: 1px solid #f0f0f0;
276}
277
278QCheckBox::indicator:unchecked:hover, QCheckBox::indicator:unchecked:focus, QCheckBox::indicator:unchecked:pressed {
279background-color: @ThemeAccentColor1;
280border: 1px solid #f0f0f0;
281}
282
283QCheckBox::indicator:unchecked:disabled {
284background-color: #444444;
285border: 1px solid #696969;
286}
287
288QCheckBox::indicator:checked {
289image:url(qss:images_classic/check-mark-white.png);
290border: 1px solid #f0f0f0;
291background-color: #252525;
292}
293
294QCheckBox::indicator:checked:hover, QCheckBox::indicator:checked:pressed {
295background-color: @ThemeAccentColor1;
296border: 1px solid #f0f0f0;
297}
298
299QCheckBox::indicator:checked:disabled {
300background-color: #444444;
301border: 1px solid #696969;
302image: url(qss:images_classic/check-mark-lightgray.png);
303}
304
305QCheckBox::indicator:indeterminate {
306background-color: #252525;
307border: 1px solid #f0f0f0;
308image: url(qss:images_classic/indeterminate-mark-white.png);
309}
310
311QCheckBox::indicator:indeterminate:disabled {
312background-color: #444444;
313border: 1px solid #696969;
314image: url(qss:images_classic/indeterminate-mark-lightgray.png);
315}
316
317QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed {
318background-color: @ThemeAccentColor1;
319border: 1px solid #f0f0f0;
320}
321
322/* QGroupBox --------------------------------------------------------------
323
324https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qgroupbox
325
326--------------------------------------------------------------------------- */
327QGroupBox {
328background-color: #3c3c3c;
329border: 1px solid #444444;
330border-radius: 2px;
331margin-top: 18px; /* leave space at the top for the title */
332}
333
334QGroupBox::title {
335top: -18px;
336left: 0px;
337}
338
339QGroupBox::indicator {
340background-color: #000000;
341width: 12px;
342height: 12px;
343margin: 1px;
344border: 1px solid #ffffff;
345}
346
347QGroupBox::indicator:unchecked {
348background-color: #000000;
349}
350
351QGroupBox::indicator:unchecked:hover {
352background-color: @ThemeAccentColor1;
353border: 1px solid #ffffff;
354}
355
356QGroupBox::indicator:unchecked:focus {
357border: 1px solid @ThemeAccentColor2;
358}
359
360QGroupBox::indicator:unchecked:disabled {
361background-color: #444444;
362border: 1px solid #ffffff;
363}
364
365QGroupBox::indicator:checked {
366background-color: #000000;
367border: 1px solid #ffffff;
368image:url(qss:images_classic/check-mark-white.png);
369}
370
371QGroupBox::indicator:checked:hover {
372background-color: @ThemeAccentColor1;
373border: 1px solid #ffffff;
374}
375QGroupBox::indicator:checked:focus {
376border: 1px solid @ThemeAccentColor2;
377}
378QGroupBox::indicator:checked:disabled {
379background-color: #d8d8d8;
380image:url(qss:images_classic/check-mark-lightgray.png);
381border: 1px solid #ffffff;
382}
383
384/* QRadioButton -----------------------------------------------------------
385
386https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton
387
388--------------------------------------------------------------------------- */
389QRadioButton {
390background-color: transparent;
391color: white;
392border: none;
393spacing: 8px;
394/* padding-top: 4px;
395padding-bottom: 4px; */
396outline: none;
397}
398
399QRadioButton:focus {
400border: 1px solid @ThemeAccentColor2;
401}
402
403QRadioButton:disabled {
404background-color: #444444;
405}
406
407QRadioButton QWidget {
408background-color: transparent;
409color: white;
410spacing: 0px;
411padding: 0px;
412outline: none;
413border: none;
414}
415
416QRadioButton::indicator {
417border-image: none;
418width: 14px;
419height: 14px;
420image:url(qss:images_classic/Radio-unchecked-white.png);
421}
422
423QRadioButton::indicator:unchecked {
424}
425
426QRadioButton::indicator:unchecked:hover, QRadioButton::indicator:unchecked:pressed {
427
428}
429
430QRadioButton::indicator:unchecked:disabled {
431border-image: none;
432width: 14px;
433height: 14px;
434image:url(qss:images_classic/Radio-unchecked-lightgray.png);
435}
436
437QRadioButton::indicator:checked {
438border-image: none;
439width: 14px;
440height: 14px;
441image:url(qss:images_classic/Radio-checked-white.png);
442}
443
444QRadioButton::indicator:checked:hover, QRadioButton::indicator:checked:pressed {
445
446}
447
448QRadioButton::indicator:checked:disabled {
449border-image: none;
450width: 14px;
451height: 14px;
452image:url(qss:images_classic/Radio-checked-lightgray.png);
453}
454
455/* QMenuBar ---------------------------------------------------------------
456
457https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar
458
459--------------------------------------------------------------------------- */
460QMenuBar {
461background-color: #252525;
462color: white;
463selection-background-color: @ThemeAccentColor1;
464}
465
466QMenuBar:focus {
467border: 1px solid @ThemeAccentColor2;
468}
469
470QMenuBar::item {
471background-color: transparent;
472}
473
474QMenuBar::item:selected {
475background-color: transparent;
476border: 0px solid #020202;
477background-color: @ThemeAccentColor1;
478}
479
480QMenuBar::item:pressed {
481border: 0px solid #020202;
482background-color: @ThemeAccentColor1;
483color: white;
484}
485
486/* QMenu ------------------------------------------------------------------
487
488https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
489
490--------------------------------------------------------------------------- */
491QMenu {
492border: 1px solid #3c3c3c;
493color: white;
494margin: 0px;
495background-color: #252525;
496selection-background-color: @ThemeAccentColor1;
497}
498
499QMenu::separator {
500height: 2px;
501background-color: #3c3c3c;
502margin-left: 10%;
503margin-right: 10%;
504}
505
506QMenu::item {
507background-color: transparent;
508padding-left: 5px;
509padding-top: 4px;
510padding-bottom: 4px;
511padding-right: 50px;
512/* Reserve space for selection border */
513border: 0px transparent #020202;
514}
515
516QMenu::item:selected {
517color: white;
518background-color: @ThemeAccentColor1;
519}
520
521QMenu::item:pressed {
522background-color: @ThemeAccentColor1;
523}
524
525QMenu::icon {
526margin-left: 5px;
527width: 14px;
528height: 14px;
529}
530
531QMenu::indicator {
532margin-left: 2px;
533margin-right: 2px;
534padding: 0px;
535width: 12px;
536height: 12px;
537/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
538/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
539}
540
541QMenu::icon:checked { /* appearance of a 'checked' icon */
542background-color: @ThemeAccentColor2;
543margin-left: -5px;
544border: 5px solid @ThemeAccentColor2;
545position: absolute;
546border-radius: 0px;
547}
548QMenu::indicator:non-exclusive:unchecked {
549image: url(qss:images_classic/checkbox-Empty-white.png);
550}
551
552QMenu::indicator:non-exclusive:unchecked:hover, QMenu::indicator:non-exclusive:unchecked:focus, QMenu::indicator:non-exclusive:unchecked:pressed {
553border: none;
554background-color: @ThemeAccentColor1;
555}
556
557QMenu::indicator:non-exclusive:unchecked:disabled {
558image: url(qss:images_classic/checkbox-Empty-lightgray.png);
559}
560
561QMenu::indicator:non-exclusive:checked {
562image:url(qss:images_classic/checkbox-checked-white.png);
563}
564
565QMenu::indicator:non-exclusive:checked:hover, QMenu::indicator:non-exclusive:checked:focus, QMenu::indicator:non-exclusive:checked:pressed {
566border: none;
567background-color: @ThemeAccentColor1;
568}
569
570QMenu::indicator:non-exclusive:checked:disabled {
571image:url(qss:images_classic/checkbox-checked-lightgray.png);
572}
573
574QMenu::indicator:non-exclusive:indeterminate {
575image: url(qss:images_classic/checkbox-indeterminate-white.png);
576}
577
578QMenu::indicator:non-exclusive:indeterminate:disabled {
579image: url(qss:images_classic/checkbox-indeterminate-white.png);
580}
581
582QMenu::indicator:non-exclusive:indeterminate:focus, QMenu::indicator:non-exclusive:indeterminate:hover, QMenu::indicator:non-exclusive:indeterminate:pressed {
583image: url(qss:images_classic/checkbox-indeterminate-white.png);
584}
585
586QMenu::indicator:exclusive:unchecked {
587image: url(qss:images_classic/transparent.png);
588}
589
590QMenu::indicator:exclusive:unchecked:hover, QMenu::indicator:exclusive:unchecked:focus, QMenu::indicator:exclusive:unchecked:pressed {
591border: none;
592outline: none;
593background-color: @ThemeAccentColor1;
594image: url(qss:images_classic/checkbox-Empty-white.png);
595}
596
597QMenu::indicator:exclusive:unchecked:disabled {
598image: url(qss:images_classic/checkbox-Empty-white.png);
599}
600
601QMenu::indicator:exclusive:checked {
602border: none;
603outline: none;
604image: url(qss:images_classic/Radio-checked-white.png);
605}
606
607QMenu::indicator:exclusive:checked:hover, QMenu::indicator:exclusive:checked:focus, QMenu::indicator:exclusive:checked:pressed {
608border: none;
609outline: none;
610background-color: @ThemeAccentColor1;
611image: url(qss:images_classic/checkbox-Empty-white.png);
612}
613
614QMenu::indicator:exclusive:checked:disabled {
615outline: none;
616image: url(qss:images_classic/Radio-checked-white.png);
617}
618
619QMenu::right-arrow {
620margin: 5px;
621padding-left: 12px;
622image:url(qss:images_classic/Arrow-right-white.png);
623height: 8px;
624width: 8px;
625background-color: transparent;
626}
627
628/* QAbstractItemView ------------------------------------------------------
629
630https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
631
632--------------------------------------------------------------------------- */
633QAbstractItemView {
634alternate-background-color: #333333;
635color: white;
636border: 1px solid #020202;
637border-radius: 3px;
638}
639
640QAbstractItemView QLineEdit {
641padding: 0 2px;
642}
643
644/* QAbstractScrollArea ----------------------------------------------------
645
646https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
647
648--------------------------------------------------------------------------- */
649QAbstractScrollArea {
650background-color: transparent;
651border: 0px solid #020202;
652border-radius: 3px;
653/* fix #159 */
654padding: 0px;
655/* remove min-height to fix #244 */
656color: white;
657}
658
659QAbstractScrollArea:disabled {
660color: #adadad;
661background-color: #444444;
662}
663
664/* QScrollArea ------------------------------------------------------------
665
666---------------------------------------------------------------------------
667text input field disabled!!!!*/
668QScrollArea QWidget:disabled {
669/* background-color: #444444; */
670color: #adadad;
671}
672
673/* QScrollBar -------------------------------------------------------------
674
675https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar
676
677--------------------------------------------------------------------------- */
678
679QScrollBar:horizontal {
680height: 14px;
681border-right: 14px solid qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #020202, stop:0.1 #303030, stop:0.9 #353535, stop:1 #020202);
682border-left: 14px solid qlineargradient(x1:1, y1:0, x2:0, y2:0, stop:0 #020202, stop:0.1 #303030, stop:0.9 #353535, stop:1 #020202);
683border-top: 1px solid #020202;
684border-bottom: 1px solid #020202;
685background-color: #202020;
686}
687
688QScrollBar:vertical {
689background-color: #222222;
690width: 14px;
691border-top: 14px solid qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 #020202, stop:0.1 #303030, stop:0.9 #353535, stop:1 #020202);
692border-bottom: 14px solid qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #020202, stop:0.1 #303030, stop:0.9 #353535, stop:1 #020202);
693border-left: 1px solid #020202;
694border-right: 1px solid #020202;
695background-color: #202020;
696}
697
698QScrollBar::handle:horizontal {
699border-left: 1px solid #020202;
700border-right: 1px solid #020202;
701background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #444444);
702}
703
704QScrollBar::handle:horizontal:hover {
705background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #696969);
706/* border: 1px #202020; */
707}
708
709QScrollBar::handle:horizontal:focus {
710border: 1px solid @ThemeAccentColor2;
711}
712
713QScrollBar::handle:vertical {
714border-top: 1px solid #020202;
715border-bottom: 1px solid #020202;
716min-height: 8px;
717border-radius: 0px;
718background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #333333, stop:1 #444444);
719}
720
721QScrollBar::handle:vertical:hover {
722background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:1 #696969);
723/* border: solid 1px #202020; */
724border-radius: 0px;
725min-height: 8px;
726}
727
728QScrollBar::handle:vertical:focus {
729border: 1px solid @ThemeAccentColor2;
730}
731
732QScrollBar::add-line:horizontal {
733margin: 6px 6px;
734image: url(qss:images_classic/Arrow-right-lightgray.png);
735height: 8px;
736width: 4px;
737subcontrol-position: right;
738subcontrol-origin: margin;
739}
740
741QScrollBar::add-line:horizontal:hover, QScrollBar::add-line:horizontal:on {
742image: url(qss:images_classic/Arrow-right-white.png);
743height: 8px;
744width: 4px;
745subcontrol-position: right;
746subcontrol-origin: margin;
747}
748
749QScrollBar::add-line:vertical {
750margin: 6px 6px;
751image: url(qss:images_classic/Arrow-down-lightgray.png);
752height: 4px;
753width: 8px;
754subcontrol-position: bottom;
755subcontrol-origin: margin;
756}
757
758QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on {
759image: url(qss:images_classic/Arrow-down-white.png);
760height: 4px;
761width: 8px;
762subcontrol-position: bottom;
763subcontrol-origin: margin;
764}
765
766QScrollBar::sub-line:horizontal {
767margin: 6px 6px;
768image: url(qss:images_classic/Arrow-left-lightgray.png);
769height: 8px;
770width: 4px;
771subcontrol-position: left;
772subcontrol-origin: margin;
773}
774
775QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on {
776image: url(qss:images_classic/Arrow-left-white.png);
777height: 8px;
778width: 4px;
779subcontrol-position: left;
780subcontrol-origin: margin;
781}
782
783QScrollBar::sub-line:vertical {
784margin: 6px 6px;
785image: url(qss:images_classic/Arrow-up-lightgray.png);
786height: 4px;
787width: 8px;
788subcontrol-position: top;
789subcontrol-origin: margin;
790}
791
792QScrollBar::sub-line:vertical:hover, QScrollBar::sub-line:vertical:on {
793image: url(qss:images_classic/Arrow-up-white.png);
794height: 4px;
795width: 8px;
796subcontrol-position: top;
797subcontrol-origin: margin;
798}
799
800QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal {
801background-color: none;
802}
803
804QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
805background-color: none;
806}
807
808QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
809background-color: none;
810}
811
812QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
813background-color: none;
814}
815
816/* QTextEdit --------------------------------------------------------------
817
818https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-specific-widgets
819
820
821report view
822--------------------------------------------------------------------------- */
823QTextEdit {
824background-color: #444444;
825color: white;
826border-radius: 2px;
827border: 0px solid #020202;
828}
829
830QTextEdit:focus {
831border: 1px solid @ThemeAccentColor2;
832}
833
834QTextEdit:selected {
835background-color: #346792;
836color: white;
837}
838
839/* QPlainTextEdit ---------------------------------------------------------
840Python
841--------------------------------------------------------------------------- */
842QPlainTextEdit {
843background-color: #3c3c3c;
844color: white;
845border-radius: 2px;
846border: 0px solid #020202;
847}
848
849QPlainTextEdit:focus {
850border: 1px solid @ThemeAccentColor2;
851}
852
853QPlainTextEdit:selected {
854background-color: @ThemeAccentColor1;
855color: white;
856}
857
858/* QSizeGrip --------------------------------------------------------------
859
860https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsizegrip
861
862--------------------------------------------------------------------------- */
863QSizeGrip {
864background-color: transparent;
865width: 12px;
866height: 12px;
867image:url(qss:images_classic/sizegrip-lightgray.png);
868}
869
870/* QStackedWidget ---------------------------------------------------------
871
872--------------------------------------------------------------------------- */
873QStackedWidget {
874padding: 0px;
875border: 0px solid #020202;
876}
877
878/* QToolBar ---------------------------------------------------------------
879
880https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
881
882--------------------------------------------------------------------------- */
883QToolBar {
884background-color: #333333;
885/* border: 1px solid #020202; */
886/* font-weight: bold; */
887}
888
889QToolBar:horizontal {
890border-bottom: 1px solid #020202;
891padding-top: 3px;
892padding-left: 4px;
893}
894
895QToolBar:vertical {
896border-left: 1px solid #020202;
897border-right: 1px solid #020202;
898padding-top: 4px;
899padding-left: 3px;
900}
901
902QToolBar:disabled {
903}
904
905QToolBar::handle:horizontal {
906width: 8px;
907image: url(qss:images_classic/Hmovetoolbar-lightgray.png);
908}
909
910QToolBar::handle:vertical {
911height: 8px;
912image: url(qss:images_classic/Vmovetoolbar-lightgray.png);
913}
914
915QToolBar::handle:horizontal:hover {
916width: 8px;
917image: url(qss:images_classic/Hmovetoolbar-white.png);
918}
919
920QToolBar::handle:vertical:hover {
921height: 8px;
922image: url(qss:images_classic/Vmovetoolbar-white.png);
923}
924
925QToolBar::separator:horizontal {
926width: 2px;
927padding: 0px 3px;
928image: url(qss:images_classic/Hsepartoolbar-Darkgray.png);
929}
930
931QToolBar::separator:vertical {
932height: 2px;
933padding: 3px 0px;
934image: url(qss:images_classic/Vsepartoolbar-Darkgray.png);
935}
936
937/*The "show more" button (it can also be stylable with "QToolBarExtension" icon is not working Qproperty works but breaks when you move the toolbar see also */
938QToolButton#qt_toolbar_ext_button {
939background-repeat: none;
940background-position: center center;
941background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #7c7c7c, stop:1 #898989);
942padding: 0px;
943}
944
945QToolButton#qt_toolbar_ext_button:hover {
946background-color: transparent;
947}
948
949QToolButton#qt_toolbar_ext_button:on {
950background-color: transparent;
951}
952
953
954/* QAbstractSpinBox -------------------------------------------------------
955
956--------------------------------------------------------------------------- */
957QAbstractSpinBox,
958QSpinBox {
959background-color: #252525;
960border: 1px solid #020202;
961color: white;
962border-radius: 2px;
963min-height: 24px;
964padding-left: 4px;
965padding-right: 4px;
966}
967
968QAbstractSpinBox:up-button {
969background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
970subcontrol-origin: border;
971subcontrol-position: top right;
972border-top: 1px solid transparent;
973border-right: 1px solid transparent;
974border-bottom: 1px solid #020202;
975border-top-right-radius: 2px;
976border-left: 1px solid #020202;
977margin:1px;
978margin-bottom:-1px;
979}
980
981QAbstractSpinBox::up-arrow, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::up-arrow:off {
982image: url(qss:images_classic/Arrow-up-lightgray.png);
983height: 8px;
984width: 8px;
985}
986
987QAbstractSpinBox::up-arrow:hover {
988image: url(qss:images_classic/Arrow-up-white.png);
989height: 8px;
990width: 8px;
991}
992
993QAbstractSpinBox:down-button {
994background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #252525, stop:1 #333333);
995subcontrol-origin: border;
996subcontrol-position: bottom right;
997border-bottom: 1px solid transparent;
998border-right: 1px solid transparent;
999border-top: 1px solid #020202;
1000border-bottom-right-radius: 2px;
1001border-left: 1px solid #020202;
1002margin:1px;
1003margin-top:-1px;
1004}
1005
1006QAbstractSpinBox::down-arrow, QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::down-arrow:off {
1007image: url(qss:images_classic/Arrow-down-lightgray.png);
1008height: 8px;
1009width: 8px;
1010}
1011
1012QAbstractSpinBox::down-arrow:hover {
1013image: url(qss:images_classic/Arrow-down-white.png);
1014height: 8px;
1015width: 8px;
1016}
1017
1018QAbstractSpinBox:hover {
1019}
1020
1021QAbstractSpinBox:focus {
1022border: 1px solid @ThemeAccentColor2;
1023}
1024
1025QAbstractSpinBox:selected {
1026background-color: @ThemeAccentColor1;
1027}
1028
1029/* ------------------------------------------------------------------------ */
1030/* DISPLAYS --------------------------------------------------------------- */
1031/* ------------------------------------------------------------------------ */
1032/* QLabel -----------------------------------------------------------------
1033
1034https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
1035
1036--------------------------------------------------------------------------- */
1037QLabel {
1038/* background-color: transparent; */
1039/* border: 0px solid #020202; */
1040/* padding: 2px; */
1041/* margin: 0px; */
1042/* color: #ffffff; */
1043/* border-radius: 3px; */
1044}
1045
1046QLabel:disabled {
1047/* background-color: transparent; */
1048/* border: 0px solid #020202; */
1049color: #adadad;
1050}
1051
1052QLabel[haslink="true"] {
1053color: #71b6fb;
1054}
1055
1056
1057/* QTextBrowser -----------------------------------------------------------
1058
1059https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
1060
1061--------------------------------------------------------------------------- */
1062QTextBrowser {
1063background-color: #252525;
1064border: 1px solid #020202;
1065color: white;
1066border-radius: 2px;
1067}
1068
1069QTextBrowser:disabled {
1070background-color: #444444;
1071border: 1px solid #020202;
1072color: #adadad;
1073border-radius: 2px;
1074}
1075
1076QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pressed {
1077}
1078
1079/* QGraphicsView ----------------------------------------------------------
1080
1081--------------------------------------------------------------------------- */
1082QGraphicsView {
1083background-color: transparent;
1084border: 0px solid @ThemeAccentColor1;
1085color: white;
1086border-radius: 0px;
1087selection-background-color: @ThemeAccentColor1;
1088}
1089
1090QGraphicsView:disabled {
1091background-color: #252525;
1092border: 0px solid #020202;
1093color: #adadad;
1094border-radius: 0px;
1095}
1096
1097QGraphicsView:hover, QGraphicsView:!hover, QGraphicsView:selected, QGraphicsView:pressed {
1098border: 0px solid #ff00f7;
1099}
1100
1101/* QCalendarWidget --------------------------------------------------------
1102
1103--------------------------------------------------------------------------- */
1104QCalendarWidget {
1105border: 1px solid #020202;
1106border-radius: 2px;
1107}
1108
1109QCalendarWidget:disabled {
1110background-color: #333333;
1111color: #adadad;
1112}
1113
1114/* QLCDNumber -------------------------------------------------------------
1115
1116--------------------------------------------------------------------------- */
1117QLCDNumber {
1118background-color: #1aff00;
1119color: white;
1120}
1121
1122QLCDNumber:disabled {
1123background-color: #444444;
1124color: #adadad;
1125}
1126
1127/* QProgressBar -----------------------------------------------------------
1128
1129https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
1130
1131--------------------------------------------------------------------------- */
1132QProgressBar {
1133background-color: #cccccc;
1134border: 1px solid #020202;
1135color: white;
1136border-radius: 2px;
1137text-align: center;
1138}
1139
1140QProgressBar:disabled {
1141background-color: #444444;
1142border: 1px solid #020202;
1143color: #696969;
1144border-radius: 2px;
1145text-align: center;
1146}
1147
1148QProgressBar::chunk {
1149background-color: @ThemeAccentColor1;
1150color: #444444;
1151border-radius: 2px;
1152}
1153
1154QProgressBar::chunk:disabled {
1155background-color: #444444;
1156color: #020202;
1157border-radius: 2px;
1158}
1159
1160/* ------------------------------------------------------------------------ */
1161/* BUTTONS ---------------------------------------------------------------- */
1162/* ------------------------------------------------------------------------ */
1163/* QPushButton ------------------------------------------------------------
1164
1165https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton
1166
1167--------------------------------------------------------------------------- */
1168QPushButton {
1169background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
1170color: white;
1171border: 1px solid #020202;
1172/* border-bottom-color: #1e1e1e; simulates shadow under the button */
1173border-radius: 3px;
1174padding: 4px;
1175min-width: 80px;
1176}
1177
1178#CreateNewRow > QPushButton {
1179/* Reset min width to default */
1180min-width: -1;
1181}
1182
1183QPushButton:disabled {
1184background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #444444);
1185color: #adadad;
1186border: 1px solid #020202;
1187}
1188
1189QPushButton:checked {
1190border: 1px solid @ThemeAccentColor1;
1191outline: none;
1192}
1193
1194QPushButton:focus {
1195border: 1px solid @ThemeAccentColor2;
1196}
1197
1198
1199QPushButton:checked:disabled {
1200border: 1px solid @ThemeAccentColor1;
1201color: #adadad;
1202outline: none;
1203}
1204
1205QPushButton:checked:selected {
1206border: 1px solid @ThemeAccentColor1;
1207}
1208
1209QPushButton:hover {
1210background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #333333);
1211color: white;
1212}
1213
1214QPushButton:pressed {
1215border: 1px solid @ThemeAccentColor1;
1216}
1217
1218QPushButton:selected {
1219border: 1px solid @ThemeAccentColor1;
1220color: white;
1221}
1222
1223QPushButton::menu-indicator {
1224subcontrol-origin: padding;
1225subcontrol-position: bottom right;
1226bottom: 4px;
1227}
1228
1229QDialogButtonBox QPushButton {
1230/* Issue # 194 # 248 - Special case of QPushButton inside dialogs, for better UI */
1231min-width: 80px;
1232}
1233
1234/* QToolButton ------------------------------------------------------------
1235
1236https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
1237
1238--------------------------------------------------------------------------- */
1239QToolButton {
1240background-color: transparent;
1241color: white;
1242/* border-radius: 1px; */
1243padding: 2px;
1244outline: none;
1245border: none;
1246border-radius: 3px;
1247/* The subcontrols below are used only in the DelayedPopup mode */
1248/* The subcontrols below are used only in the MenuButtonPopup mode */
1249/* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
1250}
1251
1252QToolButton:disabled {
1253padding: 2px;
1254}
1255
1256QToolButton:checked {
1257background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.7 #252525, stop:1 #252525);
1258border-radius: 3px;
1259border-left: 1px solid #020202;
1260border-top: 1px solid #020202;
1261border-right: 1px solid #444444;
1262border-bottom: 1px solid #444444;
1263}
1264
1265QToolButton:checked:disabled {
1266background-color: transparent;
1267}
1268
1269QToolButton:checked:hover {
1270background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.7 #444444, stop:1 #444444);
1271border: 1px solid #020202;
1272}
1273
1274QToolButton:checked:pressed {
1275border: 1px solid @ThemeAccentColor2;
1276}
1277
1278QToolButton:checked:selected {
1279background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.7 #444444, stop:1 #444444);
1280border: 1px solid @ThemeAccentColor1;
1281}
1282
1283QToolButton:hover {
1284color: white;
1285border: 1px solid #020202;
1286}
1287
1288QToolButton:pressed {
1289}
1290
1291QToolButton:selected {
1292border: 1px solid @ThemeAccentColor1;
1293color: white;
1294}
1295
1296QToolButton#qt_toolbutton_menubutton {
1297padding-right: 15px; /*Hack to add more width to buttons with menu */
1298border-radius: 3px;
1299}
1300
1301QToolButton::menu-button {
1302border: 1px solid transparent;
1303/* 16px width + 4px for border = 20px allocated above */
1304width: 15px;
1305border-radius: 3px;
1306}
1307
1308QToolButton::menu-button:hover {
1309border: 1px solid transparent;
1310
1311}
1312
1313QToolButton::menu-button:pressed {
1314border: 1px solid transparent;
1315}
1316
1317QToolButton::menu-button:checked:hover {
1318border: 1px solid #020202;
1319background-color: @ThemeAccentColor2;
1320}
1321
1322QToolButton::menu-indicator {
1323/* Exclude a shift for better image */
1324subcontrol-position: right center;
1325/* Shift it a bit */
1326}
1327
1328QToolButton::menu-arrow {
1329image: url(qss:images_classic/Arrow-down-lightgray.png);
1330width: 18px;
1331height: 18px;
1332/* background-color: transparent; */
1333}
1334QToolButton::menu-arrow:open {
1335image: url(qss:images_classic/Arrow-Down-white.png);
1336width: 18px;
1337height: 18px;
1338}
1339QToolButton::menu-arrow:hover {
1340image: url(qss:images_classic/Arrow-Down-white.png);
1341width: 18px;
1342height: 18px;
1343}
1344
1345/* QCommandLinkButton -----------------------------------------------------
1346
1347--------------------------------------------------------------------------- */
1348QCommandLinkButton {
1349background-color: transparent;
1350border: 1px solid #020202;
1351color: white;
1352border-radius: 2px;
1353padding: 0px;
1354margin: 0px;
1355}
1356
1357QCommandLinkButton:disabled {
1358background-color: transparent;
1359color: #adadad;
1360}
1361
1362/* ------------------------------------------------------------------------ */
1363/* INPUTS - NO FIELDS ----------------------------------------------------- */
1364/* ------------------------------------------------------------------------ */
1365/* QComboBox --------------------------------------------------------------
1366
1367https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
1368
1369--------------------------------------------------------------------------- */
1370QComboBox {
1371border: 1px solid #020202;
1372border-radius: 2px;
1373background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
1374selection-background-color: @ThemeAccentColor1;
1375padding-left: 4px;
1376padding-right: 2px;
1377/* padding-right = 36; 4 + 16*2 See scrollbar size */
1378/* changed to 4px to fix #239 */
1379/* Fixes #103, #111 */
1380min-height: 23px;
1381/*margin: 0px -1px 0px 0px; hack for Mac... try it on Windows and Linux */
1382/* padding-top: 2px; removed to fix #132 */
1383/* padding-bottom: 2px; removed to fix #132 */
1384/* min-width: 75px; removed to fix #109 */
1385/* Needed to remove indicator - fix #132 */
1386}
1387QComboBox:editable {
1388background-color: #252525;
1389}
1390QComboBox QAbstractItemView {
1391border: 1px solid #020202;
1392border-radius: 2px;
1393background-color: #252525;
1394selection-background-color: @ThemeAccentColor1;
1395}
1396
1397QComboBox QAbstractItemView:hover {
1398background-color:#252525;
1399color: white;
1400}
1401
1402QComboBox QAbstractItemView:selected {
1403background-color: @ThemeAccentColor1;
1404color: white;
1405}
1406
1407QComboBox QAbstractItemView:alternate {
1408background-color: #252525;
1409}
1410
1411QComboBox:checked {
1412color: #ffffff;
1413}
1414
1415QComboBox:disabled {
1416background-color: #444444;
1417color: #adadad;
1418}
1419
1420QComboBox:hover {
1421background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #444444, stop:1 #333333);
1422/* border: 1px solid @ThemeAccentColor1; */
1423}
1424
1425QComboBox:focus {
1426border: 1px solid #020202;
1427border-radius: 2px;
1428/* border: 1px solid @ThemeAccentColor2; */
1429}
1430
1431QComboBox:on {
1432selection-background-color: @ThemeAccentColor1;
1433}
1434
1435QComboBox::indicator {
1436padding-left: 8px;
1437background-color: transparent;
1438}
1439
1440QComboBox::indicator:checked {
1441width: 10px;
1442height: 10px;
1443image: url(qss:images_classic/check-mark-white.png);
1444}
1445
1446QComboBox::item {
1447/* Remove to fix #282, #285 and MR #288*/
1448/*&:checked {
1449font-weight: bold;
1450}
1451
1452&:selected {
1453border: 0px solid transparent;
1454}
1455*/
1456}
1457/* Background color of popup-list.*/
1458
1459/* Needed to complete the rule set. */
1460QComboBox::item:alternate {
1461background-color: #3c3c3c;
1462}
1463/* Color of the selected list item. */
1464QComboBox::item:selected {
1465border: 1px solid #020202;
1466background-color: @ThemeAccentColor1;
1467}
1468
1469QComboBox::drop-down {
1470subcontrol-origin: padding;
1471/* background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #020202); */
1472subcontrol-position: top right;
1473width: 20px;
1474border-right: 1px solid transparent;
1475padding-right: 2px;
1476/* border-radius: 2px; */
1477}
1478QComboBox::drop-down:hover {
1479/* background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 @ThemeAccentColor1, stop:1 @ThemeAccentColor3); */
1480}
1481
1482QComboBox::down-arrow {
1483image: url(qss:images_classic/Arrow-down-lightgray.png);
1484/* height: 10px; */
1485width: 8px;
1486}
1487
1488QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
1489image: url(qss:images_classic/Arrow-down-white.png);
1490}
1491
1492
1493/*==================================================================================================
1494Tasks panel (custom FreeCAD class)
1495==================================================================================================*/
1496Gui--PropertyEditor--PropertyEditor {
1497qproperty-groupTextColor: white;
1498qproperty-groupBackground: #3c3c3c;
1499border: 0px solid #333365;
1500}
1501
1502/* Action group */
1503QFrame[class="panel"] {
1504background-color: rgba(60, 60, 60, 0.50);
1505}
1506
1507QSint--ActionGroup {
1508padding: 0px; /* if not reset, it might create problems with QPushButtons and other elements */
1509margin: 0px; /* if not reset, it might create problems with QPushButtons and other elements */
1510}
1511
1512QSint--ActionGroup QGroupBox {
1513border: 1px solid #696969;
1514background-color: transparent;
1515padding-bottom: 3px;
1516}
1517
1518QSint--ActionGroup QGroupBox::title {
1519top: -8px;
1520left: 13px;
1521}
1522
1523/* Separator line */
1524QSint--ActionGroup QFrame[height="1"],
1525QSint--ActionGroup QFrame[height="1"],
1526QSint--ActionGroup QFrame[height="1"],
1527QSint--ActionGroup QFrame[width="1"],
1528QSint--ActionGroup QFrame[width="1"],
1529QSint--ActionGroup QFrame[width="1"] {
1530border-color: rgba(0,0,0,60);
1531}
1532
1533/* Panel header */
1534QSint--ActionGroup QFrame[class="header"] {
1535border-top: 1px solid #020202;
1536border-left: 1px solid #020202;
1537border-right: 1px solid #020202;
1538/*background-color: #d4d4d4; /* Task Panel Header background color */
1539background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0,stop:0 #000000, stop:1 @ThemeAccentColor3);
1540border-top-left-radius: 3px;
1541border-top-right-radius: 3px;
1542border-bottom-left-radius: 0px;
1543border-bottom-right-radius: 0px;
1544margin: 0px;
1545padding: 0px;
1546color: #cdf5ff;
1547}
1548
1549QSint--ActionGroup QFrame[class="header"]:hover {
1550/* background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0,stop:0 #000000 stop:1 #313d61); */
1551color: #51cdf3;
1552}
1553
1554QSint--ActionGroup QToolButton[class="header"] {
1555color: white; /* Task Panel Header text color */
1556text-align: left;
1557font-weight: bold;
1558border: none;
1559margin: 0px;
1560padding: 0px;
1561}
1562
1563QSint--ActionGroup QFrame[class="header"] QLabel[fold="false"] {
1564width: 30px;
1565height: 30px;
1566image: url(qss:images_classic/Qsint_header_unfold_lightgray.png);
1567}
1568
1569QSint--ActionGroup QFrame[class="header"] QLabel:hover[fold="false"] {
1570width: 30px;
1571height: 30px;
1572image: url(qss:images_classic/Qsint_header_unfold_white.png);
1573}
1574
1575QSint--ActionGroup QFrame[class="header"] QLabel[fold="true"] {
1576width: 30px;
1577height: 30px;
1578image: url(qss:images_classic/Qsint_header_fold_lightgray.png);
1579}
1580
1581QSint--ActionGroup QFrame[class="header"] QLabel[fold="true"]:hover {
1582width: 30px;
1583height: 30px;
1584image: url(qss:images_classic/Qsint_header_fold_white.png);
1585}
1586
1587QSint--ActionGroup QFrame[class="content"] {
1588background-color: @ThemeAccentColor3; /* Task Panel background color */
1589margin: 0px;
1590padding: 0px;
1591border-bottom: 1px solid #020202;
1592border-left: 1px solid #020202;
1593border-right: 1px solid #020202;
1594border-top-left-radius: 0px;
1595border-top-right-radius: 0px;
1596border-bottom-left-radius: 3px;
1597border-bottom-right-radius: 3px;
1598}
1599
1600
1601/* Fixs for tabs inside Task Panel */
1602QSint--ActionGroup QFrame[class="content"] QTabBar::tab:top:selected {
1603border-bottom-color: @ThemeAccentColor1; /* same as Task Panel background color */
1604}
1605
1606QSint--ActionGroup QFrame[class="content"] QTabBar::tab:bottom:selected {
1607border-top-color: @ThemeAccentColor1; /* same as Task Panel background color */
1608}
1609
1610QSint--ActionGroup QFrame[class="content"] QTabBar::tab:right:selected {
1611border-right-color: @ThemeAccentColor1; /* same as Task Panel background color */
1612}
1613
1614QSint--ActionGroup QFrame[class="content"] QTabBar::tab:left:selected {
1615border-left-color: @ThemeAccentColor1; /* same as Task Panel background color */
1616}
1617
1618/* Fix for buttons with icons that showed cropped (still not happy with result) */
1619QSint--ActionGroup QFrame[class="content"] > QWidget > QPushButton {
1620padding: 2px; /* bigger padding crops text and icons... */
1621margin: 0px;
1622border-radius: 3px;
1623}
1624
1625/* Fix for lists inside task panels */ /* sketcher constraints list */
1626QSint--ActionGroup QFrame[class="content"] QTreeView,
1627QSint--ActionGroup QFrame[class="content"] QListView,
1628QSint--ActionGroup QFrame[class="content"] QTableView {
1629color: white;
1630background-color: #252525;
1631}
1632
1633
1634/* found inside Part Design Workbench and "make a draft on a face" Task panel options */
1635QSint--ActionGroup QFrame[class="content"] QToolButton {
1636color: white;
1637text-align: center;
1638background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
1639border: 1px solid #000000;
1640padding: 1px 1px; /* different than regular QPushButton */
1641margin: 0px; /* different than regular QPushButton */
1642min-height: 16px; /* same as QTabBar QPushButton min-width */
1643border-radius: 3px;
1644}
1645
1646/* QToolButtons with a menu found in Sketcher task panel*/
1647QSint--ActionGroup QToolButton::menu-button {
1648border-left: 1px solid #000000;
1649border-top-right-radius: 3px;
1650border-bottom-right-radius: 3px;
1651padding: 0px;
1652width: 19px; /* 16px width + 4px for border = 20px allocated above */
1653outline: none;
1654background-color: transparent;
1655/* margin: 10px; */
1656}
1657
1658QSint--ActionGroup QToolButton#settingsButton,
1659QSint--ActionGroup QToolButton#filterButton,
1660QSint--ActionGroup QToolButton#manualUpdate {
1661padding-right: 20px; /* make way for the popup button */
1662}
1663
1664/* to give widget inside the menu same look as regular menu */
1665QSint--ActionGroup QToolButton#filterButton QListWidget {
1666color: #ffffff;
1667background-color: #252525;
1668border: 1px solid #000000;
1669}
1670
1671
1672QSint--ActionGroup QFrame[class="content"] QToolButton:hover{
1673background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #333333);
1674}
1675QSint--ActionGroup QFrame[class="content"] QToolButton:focus {
1676border: 1px solid @ThemeAccentColor2;
1677}
1678
1679QSint--ActionGroup QFrame[class="content"] QToolButton:disabled,
1680QSint--ActionGroup QFrame[class="content"] QToolButton:disabled:checked {
1681color: #adadad;
1682/* background-color: #252525; */
1683}
1684
1685QSint--ActionGroup QFrame[class="content"] QToolButton:pressed {
1686border: 1px solid @ThemeAccentColor1;
1687}
1688
1689/* QSlider ----------------------------------------------------------------
1690
1691https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
1692
1693--------------------------------------------------------------------------- */
1694QSlider:disabled {
1695background-color: #444444;
1696}
1697
1698QSlider:focus {
1699/*border: 1px solid @ThemeAccentColor2;*/
1700}
1701
1702QSlider::groove:horizontal {
1703background-color: #444444;
1704border: 1px solid #020202;
1705height: 4px;
1706margin: 0px;
1707border-radius: 2px;
1708}
1709
1710QSlider::groove:vertical {
1711background-color: @ThemeAccentColor1;
1712border: 1px solid #020202;
1713width: 4px;
1714margin: 0px;
1715border-radius: 2px;
1716}
1717
1718QSlider::add-page:vertical {
1719background-color: @ThemeAccentColor1;
1720border: 1px solid #020202;
1721width: 4px;
1722margin: 0px;
1723border-radius: 2px;
1724}
1725
1726QSlider::add-page:vertical :disabled {
1727background-color: #444444;
1728}
1729
1730QSlider::sub-page:horizontal {
1731background-color: @ThemeAccentColor1;
1732border: 1px solid #020202;
1733height: 4px;
1734margin: 0px;
1735border-radius: 2px;
1736}
1737
1738QSlider::sub-page:horizontal:disabled {
1739background-color: @ThemeAccentColor1;
1740}
1741
1742QSlider::handle:horizontal {
1743background-color: #333333;
1744border: 1px solid #020202;
1745width: 10px;
1746height: 8px;
1747margin: -4px 0px;
1748border-radius: 6px;
1749}
1750
1751QSlider::handle:horizontal:hover {
1752background-color: @ThemeAccentColor1;
1753border: 1px solid #020202;
1754}
1755
1756QSlider::handle:horizontal:focus {
1757background-color: @ThemeAccentColor2;
1758border: 1px solid @ThemeAccentColor2;
1759}
1760
1761QSlider::handle:vertical {
1762background-color: #333333;
1763border: 1px solid #020202;
1764width: 10px;
1765height: 8px;
1766margin: 0px -4px;
1767border-radius: 6px;
1768}
1769
1770QSlider::handle:vertical:hover {
1771background-color: @ThemeAccentColor1;
1772border: 1px solid #020202;
1773}
1774
1775QSlider::handle:vertical:focus {
1776border: 1px solid @ThemeAccentColor2;
1777}
1778
1779/* QLineEdit --------------------------------------------------------------
1780
1781https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
1782
1783--------------------------------------------------------------------------- */
1784QLineEdit {
1785background-color: #252525;
1786padding-top: 2px;
1787/* This QLineEdit fix 103, 111 */
1788padding-bottom: 2px;
1789/* This QLineEdit fix 103, 111 */
1790padding-left: 4px;
1791padding-right: 4px;
1792border-style: solid;
1793border: 1px solid #020202;
1794border-radius: 2px;
1795color: white;
1796}
1797
1798QLineEdit:disabled {
1799background-color: #444444;
1800color: #adadad;
1801}
1802
1803QLineEdit:hover {
1804/* border: 1px solid @ThemeAccentColor1; */
1805color: white;
1806}
1807
1808QLineEdit:focus {
1809border: 2px solid @ThemeAccentColor2;
1810}
1811
1812QLineEdit:selected {
1813background-color: @ThemeAccentColor1;
1814color: white;
1815}
1816
1817/* QTabWiget --------------------------------------------------------------
1818
1819https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1820
1821--------------------------------------------------------------------------- */
1822QTabWidget {
1823padding: 2px;
1824selection-background-color: @ThemeAccentColor1;
1825}
1826
1827QTabWidget QWidget {
1828/* Fixes #189 */
1829border-radius: 0px;
1830}
1831
1832QTabWidget::pane {
1833margin: 0px;
1834/* Fixes double border inside pane with pyqt5 */
1835padding: 0px;
1836background-color: rgba(74, 74, 74, 54);
1837border: 1px solid #202020;
1838}
1839
1840QTabWidget::pane:selected {
1841background-color: @ThemeAccentColor1;
1842border: 1px solid #252525;
1843}
1844
1845QTabWidget::pane:selected {
1846background-color: #557bb6;
1847border: 1px solid #346792;
1848}
1849
1850QTabWidget::pane:top {
1851top: -1px;
1852border-top: 1px solid #252525;
1853}
1854
1855QTabWidget::pane:bottom {
1856bottom: -1px;
1857border-bottom: 1px solid #252525;
1858}
1859
1860QTabWidget::pane:left {
1861right: -1px;
1862border-right: 1px solid #252525;
1863}
1864
1865QTabWidget::pane:right {
1866left: -1px;
1867border-left: 1px solid #252525;
1868}
1869/* QTabBar ----------------------------------------------------------------
1870
1871https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1872
1873--------------------------------------------------------------------------- */
1874QTabBar, QDockWidget QTabBar {
1875qproperty-drawBase: 0;
1876background-color: #333333;
1877/* left: 5px; move to the right by 5px - removed for fix */
1878}
1879
1880QTabBar[style="icon-only"]::tab:top {
1881min-width: 16px;
1882padding-right: -2px;
1883padding-left: 10px;
1884}
1885
1886QTabBar[style="text-only"]::tab:top {
1887min-width: 16px;
1888/* padding-right: -2px;
1889padding-left: 10px; */
1890}
1891
1892QTabBar[style="icon-only"]::tab:bottom {
1893min-width: 16px;
1894padding-right: -2px;
1895padding-left: 10px;
1896}
1897
1898QTabBar[style="text-only"]::tab:bottom {
1899min-width: 16px;
1900padding-left: 4px;
1901}
1902
1903QTabBar[style="icon-only"]::tab:right {
1904min-height: 16px;
1905padding-bottom: -2px;
1906padding-top: 10px;
1907}
1908
1909QTabBar[style="text-only"]::tab:right {
1910min-height: 16px;
1911/* padding-right: -2px;
1912padding-left: 10px; */
1913}
1914
1915QTabBar[style="icon-only"]::tab:left {
1916min-height: 16px;
1917padding-top: -2px;
1918padding-bottom: 10px;
1919}
1920
1921QTabBar[style="text-only"]::tab:left {
1922min-height: 16px;
1923padding-bottom: 4px;
1924}
1925
1926QTabBar::close-button, QDockWidget QTabBar::close-button {
1927border: 0;
1928margin: 3px;
1929padding: 0px;
1930image: url(qss:images_classic/Close-lightgray.png);
1931}
1932
1933QTabBar::close-button:hover, QDockWidget QTabBar::close-button:hover {
1934image: url(qss:images_classic/close-red.png);
1935/*background-color: rgba(255, 0, 0, 0.3);*/
1936}
1937
1938QTabBar::close-button:pressed, QDockWidget QTabBar::close-button:pressed {
1939image: url(qss:images_classic/close-DarkRed.png);
1940}
1941
1942QTabBar::tab, QDockWidget QTabBar::tab {
1943/* !selected and disabled ----------------------------------------- */
1944/* selected ------------------------------------------------------- */
1945padding: 4px;
1946background-color: #333333;
1947}
1948
1949QTabBar::tab:top, QDockWidget QTabBar::tab:top {
1950color: #adadad;
1951margin-left: 0px;
1952margin-right: 0px;
1953min-width: 5px;
1954background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.6 #252525, stop:1 #252525);
1955margin-top: 3px;
1956border-top: 1px solid #202020; /* selection color */
1957border-bottom: 1px solid #202020;
1958border-left: 1px solid #202020;
1959border-right: 1px solid #202020;
1960border-top-left-radius: 2px;
1961border-top-right-radius: 2px;
1962}
1963
1964QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
1965background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
1966color: white;
1967border-top: 1px solid #202020; /* selection color */
1968border-bottom: 1px solid #333333;
1969border-left: 1px solid #202020;
1970border-right: 1px solid #202020;
1971margin-top: 0px;
1972border-top-left-radius: 2px;
1973border-top-right-radius: 2px;
1974}
1975
1976QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
1977background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #444444);
1978margin-top: 0px;
1979}
1980
1981QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
1982color: #adadad;
1983min-width: 5px;
1984background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:0.6 #252525, stop:1 #252525);
1985margin-bottom: 3px;
1986border-bottom: 1px solid #202020; /* selection color */
1987border-top: 1px solid #202020;
1988border-left: 1px solid #202020;
1989border-right: 1px solid #202020;
1990border-bottom-left-radius: 2px;
1991border-bottom-right-radius: 2px;
1992}
1993
1994QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
1995background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
1996color: white;
1997border-bottom: 1px solid #202020; /* selection color */
1998border-top: 1px solid #333333;
1999border-left: 1px solid #202020;
2000border-right: 1px solid #202020;
2001margin-bottom: 0px;
2002border-bottom-left-radius: 2px;
2003border-bottom-right-radius: 2px;
2004}
2005
2006QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
2007background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #444444);
2008margin-bottom: 0px;
2009}
2010
2011QTabBar::tab:left, QDockWidget QTabBar::tab:left {
2012color: #adadad;
2013min-height: 5px;
2014background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #333333, stop:0.6 #252525, stop:1 #252525);
2015margin-right: 3px;
2016border-bottom: 1px solid #202020; /* selection color */
2017border-right: 1px solid #202020;
2018border-left: 1px solid #202020;
2019border-top: 1px solid #202020;
2020border-top-left-radius: 2px;
2021border-bottom-left-radius: 2px;
2022}
2023
2024QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
2025background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
2026color: white;
2027border-bottom: 1px solid #202020; /* selection color */
2028border-right: 1px solid #333333;
2029border-left: 1px solid #202020;
2030border-top: 1px solid #202020;
2031margin-left: 0px;
2032border-top-left-radius: 2px;
2033border-bottom-left-radius: 2px;
2034}
2035
2036QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
2037background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:1 #333333);
2038margin-left: 0px;
2039}
2040
2041QTabBar::tab:right, QDockWidget QTabBar::tab:right {
2042color: white;
2043min-height: 5px;
2044background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #333333, stop:0.6 #252525, stop:1 #252525);
2045margin-right: 3px;
2046border-bottom: 1px solid #202020; /* selection color */
2047border-left: 1px solid #202020;
2048border-right: 1px solid #202020;
2049border-top: 1px solid #202020;
2050border-top-right-radius: 2px;
2051border-bottom-right-radius: 2px;
2052}
2053
2054QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
2055background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
2056color: white;
2057border-bottom: 1px solid #202020; /* selection color */
2058border-left: 1px solid #333333;
2059border-left: 1px solid #202020;
2060border-top: 1px solid #202020;
2061margin-right: 0px;
2062border-top-right-radius: 2px;
2063border-bottom-right-radius: 2px;
2064}
2065
2066QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
2067background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #333333, stop:1 #444444);
2068margin-right: 0px;
2069}
2070
2071QTabBar QToolButton, QDockWidget QTabBar QToolButton {
2072/* Fixes #136 */
2073/* background-color: #444444; */
2074border: 1px solid #202020;;
2075margin: 1px;
2076background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #333333, stop:0.6 #252525, stop:1 #252525);
2077
2078}
2079
2080QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
2081background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
2082}
2083
2084QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
2085background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #444444, stop:0.6 #444444, stop:1 #333333);
2086}
2087
2088QTabBar QToolButton::left-arrow:enabled, QDockWidget QTabBar QToolButton::left-arrow:enabled {
2089image: url(qss:images_classic/Arrow-left-lightgray.png);
2090}
2091
2092QTabBar QToolButton::left-arrow:disabled, QDockWidget QTabBar QToolButton::left-arrow:disabled {
2093image: url(qss:images_classic/Arrow-left-darkgray.png);
2094}
2095
2096QTabBar QToolButton::right-arrow:enabled, QDockWidget QTabBar QToolButton::right-arrow:enabled {
2097image: url(qss:images_classic/Arrow-right-lightgray.png);
2098}
2099
2100QTabBar QToolButton::right-arrow:disabled, QDockWidget QTabBar QToolButton::right-arrow:disabled {
2101image: url(qss:images_classic/Arrow-right-darkgray.png);
2102}
2103
2104/* QDockWiget -------------------------------------------------------------
2105
2106--------------------------------------------------------------------------- */
2107QDockWidget {
2108background-color: #333333;
2109border: 1px solid #020202;
2110border-radius: 2px;
2111titlebar-close-icon: url(qss:images_classic/transparent.png);
2112titlebar-normal-icon: url(qss:images_classic/transparent.png);
2113}
2114
2115QDockWidget::title {
2116/* Better size for title bar */
2117padding: 3px;
2118spacing: 4px;
2119border: none;
2120background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
2121text-align: center;
2122font-weight: bold;
2123}
2124
2125QDockWidget::close-button {
2126icon-size: 10px;
2127border: none;
2128background-color: transparent;
2129background-image: none;
2130border: 0;
2131margin: 0;
2132padding: 0;
2133image: url(qss:images_classic/close-white.png);
2134}
2135
2136QDockWidget::close-button:hover {
2137image: url(qss:images_classic/close-red.png);
2138}
2139
2140QDockWidget::close-button:pressed {
2141image: url(qss:images_classic/close-white.png);
2142}
2143
2144QDockWidget::float-button {
2145icon-size: 12px;
2146border: none;
2147background-color: transparent;
2148background-image: none;
2149border: 0;
2150margin: 0;
2151padding: 0;
2152image: url(qss:images_classic/undock-white.png);
2153}
2154
2155QDockWidget::float-button:hover {
2156/*background-color: @ThemeAccentColor1;*/
2157image: url(qss:images_classic/undock-blue.png);
2158}
2159
2160QDockWidget::float-button:pressed {
2161image: url(qss:images_classic/undock-white.png);
2162}
2163
2164/* QTreeView QListView QTableView -----------------------------------------
2165
2166https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
2167https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
2168https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
2169
2170--------------------------------------------------------------------------- */
2171QTreeView::branch {
2172background-color: transparent;
2173selection-background-color: transparent;
2174}
2175
2176QTreeView::branch:has-siblings:!adjoins-item {
2177}
2178
2179QTreeView::branch:has-siblings:adjoins-item {
2180
2181}
2182
2183QTreeView::branch:!has-children:!has-siblings:adjoins-item {
2184
2185}
2186
2187QTreeView::branch:closed:has-children:has-siblings {
2188border-image: none;
2189image: url(qss:images_classic/Arrow-right-white.png);
2190}
2191
2192QTreeView::branch:has-children:!has-siblings:closed {
2193border-image: none;
2194image: url(qss:images_classic/Arrow-right-white.png);
2195}
2196
2197QTreeView::branch:open:has-children:has-siblings {
2198border-image: none;
2199image: url(qss:images_classic/Arrow-down-white.png);
2200}
2201
2202QTreeView::branch:open:has-children:!has-siblings {
2203border-image: none;
2204image: url(qss:images_classic/Arrow-down-white.png);
2205}
2206
2207QTreeView::indicator,
2208QListView::indicator,
2209QTableView::indicator,
2210QColumnView::indicator {
2211border: 1px solid #ffffff;
2212}
2213
2214QTreeView::indicator:unchecked:disabled,
2215QListView::indicator:unchecked:disabled,
2216QTableView::indicator:unchecked:disabled,
2217QColumnView::indicator:unchecked:disabled {
2218border: 1px solid #696969;
2219}
2220
2221QTreeView::indicator:checked,
2222QListView::indicator:checked,
2223QTableView::indicator:checked,
2224QColumnView::indicator:checked {
2225image: url(qss:images_classic/check-mark-white.png);
2226}
2227
2228QTreeView::indicator:checked:disabled ,
2229QListView::indicator:checked:disabled ,
2230QTableView::indicator:checked:disabled ,
2231QColumnView::indicator:checked:disabled {
2232image: url(qss:images_classic/check-mark-lightgray.png);
2233border: 1px solid #696969;
2234}
2235
2236QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
2237QListView::indicator:checked:hover,
2238QListView::indicator:checked:focus,
2239QListView::indicator:checked:pressed,
2240QTableView::indicator:checked:hover,
2241QTableView::indicator:checked:focus,
2242QTableView::indicator:checked:pressed,
2243QColumnView::indicator:checked:hover,
2244QColumnView::indicator:checked:focus,
2245QColumnView::indicator:checked:pressed {
2246/* image: url(qss:images_classic/checkbox-checked-blue.png); */
2247/* background-color: @ThemeAccentColor1;
2248border: 1px solid #ffffff; */
2249}
2250
2251/* QTreeView::indicator:unchecked,
2252QListView::indicator:unchecked,
2253QTableView::indicator:unchecked,
2254QColumnView::indicator:unchecked {
2255image: url(qss:images_classic/checkbox-Empty-white.png);
2256} */
2257
2258QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
2259QListView::indicator:unchecked:hover,
2260QListView::indicator:unchecked:focus,
2261QListView::indicator:unchecked:pressed,
2262QTableView::indicator:unchecked:hover,
2263QTableView::indicator:unchecked:focus,
2264QTableView::indicator:unchecked:pressed,
2265QColumnView::indicator:unchecked:hover,
2266QColumnView::indicator:unchecked:focus,
2267QColumnView::indicator:unchecked:pressed {
2268/* image: url(qss:images_classic/checkbox-Empty-blue.png); */
2269/* background-color: @ThemeAccentColor1;
2270border: 1px solid #ffffff; */
2271}
2272
2273QTreeView::indicator:indeterminate,
2274QListView::indicator:indeterminate,
2275QTableView::indicator:indeterminate,
2276QColumnView::indicator:indeterminate {
2277image: url(qss:images_classic/Indeterminate-mark-white.png);
2278}
2279
2280QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
2281QListView::indicator:indeterminate:hover,
2282QListView::indicator:indeterminate:focus,
2283QListView::indicator:indeterminate:pressed,
2284QTableView::indicator:indeterminate:hover,
2285QTableView::indicator:indeterminate:focus,
2286QTableView::indicator:indeterminate:pressed,
2287QColumnView::indicator:indeterminate:hover,
2288QColumnView::indicator:indeterminate:focus,
2289QColumnView::indicator:indeterminate:pressed {
2290/* image: url(qss:images_classic/Indeterminate-mark-lightgray.png);
2291background-color: @ThemeAccentColor1;
2292border: 1px solid #ffffff; */
2293}
2294
2295QTreeView,
2296QListView,
2297QTableView,
2298QColumnView {
2299background-color: #252525; /* background of a lot of stuff including spreadsheets.*/
2300color: white;
2301gridline-color: #020202;
2302border-radius: 0px;
2303selection-background-color: @ThemeAccentColor1;
2304}
2305
2306QTableView,
2307QListView {
2308background-color: #252525; /* background of a lot of stuff including spreadsheets.*/
2309}
2310
2311QTreeView:disabled,
2312QListView:disabled,
2313QTableView:disabled,
2314QColumnView:disabled {
2315background-color: #444444;
2316color: #adadad;
2317}
2318
2319QTreeView:selected,
2320QListView:selected,
2321QTableView:selected,
2322QColumnView:selected {
2323background-color: #333333;
2324color: white;
2325}
2326
2327QTreeView:focus,
2328QListView:focus,
2329QTableView:focus,
2330QColumnView:focus {
2331/* background-color: @ThemeAccentColor2; */
2332}
2333
2334QTreeView::item:pressed,
2335QListView::item:pressed,
2336QTableView::item:pressed,
2337QColumnView::item:pressed {
2338background-color: @ThemeAccentColor1;
2339}
2340
2341QTreeView::item:selected:active,
2342QListView::item:selected:active,
2343QTableView::item:selected:active,
2344QColumnView::item:selected:active {
2345background-color: @ThemeAccentColor1;
2346}
2347
2348QTreeView::item:selected:!active,
2349QListView::item:selected:!active,
2350QTableView::item:selected:!active,
2351QColumnView::item:selected:!active {
2352background-color: @ThemeAccentColor1;
2353}
2354
2355QTreeView::item:!selected:hover,
2356QListView::item:!selected:hover,
2357QTableView::item:!selected:hover,
2358QColumnView::item:!selected:hover {
2359outline: 0;
2360color: white;
2361background-color: @ThemeAccentColor1;
2362}
2363
2364QTableCornerButton::section {
2365background-color: #444444;
2366border: 1px transparent #020202;
2367border-radius: 0px;
2368}
2369
2370QTableView::item {
2371color: white;
2372}
2373QTableView {
2374/*qproperty-AliasedCellBackgroundColor: #f700ff;*/
2375/*qproperty-aliasBgColor: #f700ff;*/
2376}
2377
2378/* QHeaderView ------------------------------------------------------------
2379
2380https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
2381
2382--------------------------------------------------------------------------- */
2383QHeaderView {
2384background-color: transparent;
2385/* text-align: bottom; */
2386}
2387
2388QHeaderView:disabled {
2389/* background-color: #444444; */
2390color: #adadad;
2391}
2392
2393QHeaderView::section {
2394background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
2395color: white;
2396border-bottom: 1px solid #020202;
2397border-right: 1px solid #020202;
2398border-top: 1px solid #020202;
2399border-left: 1px solid transparent;
2400}
2401
2402QHeaderView::section::horizontal {
2403/* padding-top: 1px;
2404padding-bottom: 1px;
2405padding-left: 5px;
2406padding-right: 0px; */
2407}
2408
2409QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
2410/* border-left: 0px solid #020202; */
2411}
2412
2413QHeaderView::section::horizontal:disabled {
2414color: #adadad;
2415}
2416
2417QHeaderView::section::vertical {
2418border-top: 1px solid #020202;
2419}
2420
2421QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
2422border-top: 2px solid #020202;
2423}
2424
2425QHeaderView::section::vertical:disabled {
2426border-top: 2px solid #020202;
2427}
2428
2429QHeaderView::down-arrow {
2430/* Those settings (border/width/height/background-color) solve bug */
2431/* transparent arrow background and size */
2432background-color: transparent;
2433border: none;
2434height: 12px;
2435width: 12px;
2436padding-left: 2px;
2437padding-right: 2px;
2438image: url(qss:images_classic/Arrow-down-lightgray.png);
2439}
2440
2441QHeaderView::up-arrow {
2442background-color: transparent;
2443border: none;
2444height: 12px;
2445width: 12px;
2446padding-left: 2px;
2447padding-right: 2px;
2448image: url(qss:images_classic/Arrow-up-lightgray.png);
2449}
2450
2451/* QToolBox --------------------------------------------------------------
2452
2453https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
2454used in PATH
2455
2456--------------------------------------------------------------------------- */
2457QToolBox {
2458padding: 0px;
2459border: 0px solid transparent;
2460border-radius: 4px;
2461background-color: transparent;
2462color: white;
2463}
2464
2465QToolBox:selected {
2466padding: 0px;
2467border: 1px solid @ThemeAccentColor1;
2468}
2469
2470QToolBox::tab {
2471background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
2472color: white;
2473border-radius: 4px;
2474border: 1px solid #020202;
2475image: none;
2476background-image: none;
2477padding-left: 0px;
2478}
2479
2480QToolBox::tab:disabled {
2481color: #adadad;
2482}
2483
2484QToolBox::tab:selected {
2485background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #333333);
2486}
2487
2488QToolBox::tab:selected:disabled {
2489background-color: #696969;
2490border-bottom: 0px solid #cccccc;
2491color: #adadad;
2492}
2493
2494QToolBox::tab:!selected {
2495color: white;
2496}
2497
2498QToolBox::tab:!selected:disabled {
2499background-color: #444444;
2500}
2501
2502QToolBox::tab:hover {
2503background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #444444, stop:1 #333333);
2504}
2505
2506QToolBox > QScrollArea > QWidget > QWidget {
2507padding: 0px;
2508border: 0px;
2509background-color: #3c3c3c;
2510border-radius: 4px;
2511}
2512
2513/* QFrame -----------------------------------------------------------------
2514
2515https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
2516https://doc.qt.io/qt-5/qframe.html#-prop
2517https://doc.qt.io/qt-5/qframe.html#details
2518https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
2519
2520--------------------------------------------------------------------------- */
2521/* (dot) .QFrame fix #141, #126, #123 */
2522.QFrame {
2523border-radius: 0px;
2524border: 0px solid #020202;
2525background-color: #333333;
2526/* No frame */
2527/* HLine */
2528/* HLine */
2529}
2530
2531.QFrame[frameShape="0"] {
2532border-radius: 2px;
2533border: 1px solid #020202;
2534}
2535
2536.QFrame[frameShape="4"] {
2537max-height: 1px;
2538border: none;
2539background-color: #020202;
2540}
2541
2542.QFrame[frameShape="5"] {
2543max-width: 1px;
2544border: none;
2545background-color: #333333;
2546}
2547
2548/* QSplitter --------------------------------------------------------------
2549
2550https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
2551
2552---------------------------------------------------------------------------*/
2553QSplitterHandle:hover { /* to fix bug about hovering on splitters https://bugreports.qt.io/browse/QTBUG-13768 */
2554
2555}
2556
2557QSplitter::handle {
2558margin: 0px 0px;
2559padding: 0px;
2560}
2561
2562QSplitter::handle:horizontal {
2563background-image: none;
2564background-position: center center;
2565background-repeat: none;
2566margin: 2px 2px 2px 2px;
2567width: 1px;
2568}
2569
2570QSplitter::handle:vertical {
2571background-image: none;
2572background-position: center center;
2573background-repeat: none;
2574margin: 2px 2px 2px 2px;
2575height: 1px;
2576}
2577QSplitter::handle:vertical:hover {
2578image: url(qss:images_classic/splitter_horizontal-lightgray.png);
2579}
2580
2581QSplitter::handle:horizontal:hover {
2582image: url(qss:images_classic/splitter_vertical-lightgray.png);
2583}
2584
2585/* QDateEdit, QDateTimeEdit -----------------------------------------------
2586
2587--------------------------------------------------------------------------- */
2588QDateEdit, QDateTimeEdit {
2589selection-background-color: @ThemeAccentColor1;
2590border-style: solid;
2591border: 1px solid #020202;
2592border-radius: 2px;
2593/* This fixes 103, 111 */
2594padding-top: 2px;
2595/* This fixes 103, 111 */
2596padding-bottom: 2px;
2597padding-left: 4px;
2598padding-right: 4px;
2599min-width: 10px;
2600}
2601
2602QDateEdit:on, QDateTimeEdit:on {
2603selection-background-color: @ThemeAccentColor1;
2604}
2605
2606QDateEdit::drop-down, QDateTimeEdit::drop-down {
2607subcontrol-origin: padding;
2608subcontrol-position: top right;
2609width: 12px;
2610border-left: 1px solid #020202;
2611}
2612
2613QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
2614image: url(qss:images_classic/Arrow-down-lightgray.png);
2615height: 8px;
2616width: 8px;
2617}
2618
2619QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
2620image: url(qss:images_classic/Arrow-down-white.png);
2621}
2622
2623QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
2624background-color: #333333;
2625border-radius: 2px;
2626border: 1px solid #020202;
2627selection-background-color: @ThemeAccentColor1;
2628}
2629
2630/* QAbstractView ----------------------------------------------------------
2631
2632--------------------------------------------------------------------------- */
2633QAbstractView:hover {
2634border: 1px solid @ThemeAccentColor1;
2635color: white;
2636}
2637
2638QAbstractView:selected {
2639background-color: @ThemeAccentColor1;
2640color: white;
2641}
2642
2643/* PlotWidget -------------------------------------------------------------
2644
2645--------------------------------------------------------------------------- */
2646PlotWidget {
2647/* Fix cut labels in plots #134 */
2648padding: 0px;
2649color: rgba(2, 2, 2, 0.614);
2650}
2651
2652/*==================================================================================================
2653SKETCHER
2654==================================================================================================*/
2655
2656Gui--StatefulLabel[state="empty_sketch"] {
2657color : #ffffff; /* 50% opacity white */
2658}
2659Gui--StatefulLabel[state="under_constrained"] {
2660color : #ffffff
2661}
2662Gui--StatefulLabel[state="conflicting_constraints"] {
2663color : #fc6c6c; /* Red */
2664font-weight: bold;
2665}
2666Gui--StatefulLabel[state="malformed_constraints"] {
2667color : #fc6c6c; /* Red */
2668font-weight: bold;
2669}
2670Gui--StatefulLabel[state="redundant_constraints"] {
2671color : #ffa256; /* Orange red */
2672}
2673Gui--StatefulLabel[state="partially_redundant_constraints"] {
2674color : #77cbff; /* Royal blue */
2675}
2676Gui--StatefulLabel[state="solver_failed"] {
2677color : #ff9090; /* Red */
2678font-weight: bold;
2679}
2680Gui--StatefulLabel[state="fully_constrained"] {
2681color : #8cff5b; /* Green */
2682font-weight: bold;
2683}
2684Gui--UrlLabel {
2685color : #0095ff; /* Deep sky blue */
2686text-decoration : underline;
2687}
2688
2689Gui--NotificationLabel {
2690background-color: #333333;
2691border: 1px solid #020202;
2692border-radius: 2px;
2693}
2694/* overlay */
2695Gui--OverlayToolButton{
2696image: url(qss:images_classic/close-lightgray.png);
2697}
2698
2699Gui--OverlayToolButton:hover {
2700image: url(qss:images_classic/close-red.png);
2701}
2702
2703Gui--OverlayToolButton[objectName="OBTN Float"] {
2704image: url(qss:images_classic/float-lightgray.png);
2705}
2706
2707Gui--OverlayToolButton[objectName="OBTN Float"]:hover {
2708image: url(qss:images_classic/float-white.png);
2709}
2710
2711Gui--OverlayToolButton[objectName="OBTN Overlay"] {
2712image: url(qss:images_classic/overlay-lightgray.png);
2713}
2714
2715Gui--OverlayToolButton[objectName="OBTN Overlay"]:hover {
2716image: url(qss:images_classic/overlay-white.png);
2717}
2718
2719/*==================================================================================================
2720Forming windows below are the border settings. See also https://forum.freecad.org/viewtopic.php?p=439797#p439797
2721==================================================================================================*/
2722QMdiSubWindow {
2723border:2px solid #333333;
2724border-radius: 2px;
2725border-top-right-radius: 7px;
2726border-top-left-radius: 7px;
2727background-color: #333333;
2728}
2729
2730QMdiSubWindow:hover {
2731border:2px solid #020202;
2732}
2733
2734QMdiSubWindow:active {
2735border:2px solid @ThemeAccentColor1;
2736}
2737
2738/*==================================================================================================
2739Settings menu #groupsTreeView:
2740==================================================================================================*/
2741
2742QTreeView::branch#groupsTreeView:closed:has-children:has-siblings {
2743border-image: none;
2744image: url(qss:images_classic/Arrow-right-white.png);
2745}
2746
2747QTreeView::branch#groupsTreeView:open:has-children:has-siblings {
2748border-image: none;
2749image: url(qss:images_classic/Arrow-down-white.png);
2750}
2751
2752QTreeView::branch#groupsTreeView:open:has-children:!has-siblings {
2753
2754border-image: none;
2755image: url(qss:images_classic/Arrow-down-white.png);
2756}
2757
2758QTreeView::branch#groupsTreeView:has-children:!has-siblings:closed {
2759border-image: none;
2760image: url(qss:images_classic/Arrow-right-white.png);
2761}
2762
2763QTreeView::branch#groupsTreeView:has-siblings:!adjoins-item {
2764border-image: none;
2765}
2766
2767/*==================================================================================================
2768Start page
2769==================================================================================================*/
2770QWidget#thumbnailWidget {
2771background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #333333, stop:1 #252525);
2772border-radius: 8px;
2773border: 1px solid #020202;
2774}
2775
2776QWidget#thumbnailWidget[state="hovered"] {
2777border: 1px solid @ThemeAccentColor1;
2778}
2779
2780QWidget#thumbnailWidget[state="pressed"] {
2781border: 1px solid @ThemeAccentColor1;
2782}
2783
2784/**
2785* Special handling for WB Tab Bar
2786*/
2787#WbTabBar #WbTabBarMore {
2788padding-right: 12px;
2789}
2790
2791/* Below is a fix for indentation in properties, but this is a QT 6 bug only and so is disabled since Windows is as I write this still on QT 5. */
2792/* QTreeView::item:selected:active#groupsTreeView {
2793background-color: @ThemeAccentColor1;
2794margin-left:-8px;
2795}
2796
2797QTreeView::item:selected#groupsTreeView{
2798background-color: @ThemeAccentColor1;
2799margin-left:-8px;
2800}
2801
2802QTreeView::item:!selected:hover#groupsTreeView {
2803outline: 0;
2804color: white;
2805background-color: @ThemeAccentColor1;
2806margin-left:-8px;
2807} */