FreeCAD
2803 строки · 73.0 Кб
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: black;
45selection-background-color: @ThemeAccentColor1;
46selection-color: black;
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: #ababab;
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: #000000;
98background-color: #ACC8E5; /* same as focused background color */
99border-radius: 2px;
100}
101
102/*==================================================================================================
103Main window
104==================================================================================================*/
105QMainWindow,
106QDialog,
107QDockWidget,
108QToolBar {
109background-color: #f0f0f0; /* 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_dark.svg);
121}
122
123/* QWidget ----------------------------------------------------------------
124This causes much load time.
125--------------------------------------------------------------------------- */
126/* QWidget { */
127/* background-color: #d8d8d8; */
128/* border: 0px solid #ababab;
129padding: 0px; */
130/* color: black; */
131/* selection-background-color: @ThemeAccentColor1; */
132/* selection-color: black; */
133/* } */
134
135/* QWidget:disabled {
136color: #646464;
137selection-background-color: @ThemeAccentColor1;
138selection-color: #cccccc;
139} */
140
141QWidget::item:selected {
142background-color: @ThemeAccentColor1;
143}
144
145QColorDialog QWidget {
146background-color: #f0f0f0;
147color: black;
148selection-background-color: @ThemeAccentColor1;
149selection-color: white;
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 #ababab;
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: #e6e6e6;
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 #ededed;
219/* Fixes Spyder #9120, #9121 */
220background-color: #f0f0f0;
221/* Fixes #205, white vertical borders separating items */
222}
223
224QStatusBar::item {
225border: none;
226}
227
228QStatusBar QToolTip {
229background-color: #f0f0f0;
230border: 1px solid #ababab;
231color: #000000;
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: black;
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: #646464;
263}
264
265QCheckBox::indicator {
266color: black;
267background-color: #f0f0f0;
268width: 12px;
269height: 12px;
270border: 1px solid #1c1c1c;
271}
272
273QCheckBox::indicator:unchecked {
274background-color: #fdfdfd;
275border: 1px solid #1c1c1c;
276}
277
278QCheckBox::indicator:unchecked:hover, QCheckBox::indicator:unchecked:focus, QCheckBox::indicator:unchecked:pressed {
279background-color: @ThemeAccentColor1;
280border: 1px solid #1c1c1c;
281}
282
283QCheckBox::indicator:unchecked:disabled {
284background-color: #d8d8d8;
285border: 1px solid #646464;
286}
287
288QCheckBox::indicator:checked {
289image:url(qss:images_classic/check-mark-black.png);
290border: 1px solid #1c1c1c;
291background-color: #fdfdfd;
292}
293
294QCheckBox::indicator:checked:hover, QCheckBox::indicator:checked:pressed {
295background-color: @ThemeAccentColor1;
296border: 1px solid #1c1c1c;
297}
298
299QCheckBox::indicator:checked:disabled {
300background-color: #d8d8d8;
301border: 1px solid #ababab;
302image: url(qss:images_classic/check-mark-lightgray.png);
303}
304
305QCheckBox::indicator:indeterminate {
306background-color: #f0f0f0;
307border: 1px solid #1c1c1c;
308image: url(qss:images_classic/indeterminate-mark-black.png);
309}
310
311QCheckBox::indicator:indeterminate:disabled {
312background-color: #d8d8d8;
313border: 1px solid #ababab;
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 #1c1c1c;
320}
321
322/* QGroupBox --------------------------------------------------------------
323
324https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qgroupbox
325
326--------------------------------------------------------------------------- */
327QGroupBox {
328background-color: #ededed;
329border: 1px solid #d8d8d8;
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: #ffffff;
341width: 12px;
342height: 12px;
343margin: 1px;
344border: 1px solid #000000;
345}
346
347QGroupBox::indicator:unchecked {
348background-color: #ffffff;
349}
350
351QGroupBox::indicator:unchecked:hover {
352background-color: @ThemeAccentColor1;
353border: 1px solid #000000;
354}
355
356QGroupBox::indicator:unchecked:focus {
357border: 1px solid @ThemeAccentColor2;
358}
359
360QGroupBox::indicator:unchecked:disabled {
361background-color: #d8d8d8;
362border: 1px solid #000000;
363}
364
365QGroupBox::indicator:checked {
366background-color: #ffffff;
367border: 1px solid #000000;
368image:url(qss:images_classic/check-mark-black.png);
369}
370
371QGroupBox::indicator:checked:hover {
372background-color: @ThemeAccentColor1;
373border: 1px solid #000000;
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 #000000;
382}
383
384/* QRadioButton -----------------------------------------------------------
385
386https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton
387
388--------------------------------------------------------------------------- */
389QRadioButton {
390background-color: transparent;
391color: black;
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 {
404/* background-color: #d8d8d8; */
405}
406
407QRadioButton QWidget {
408background-color: transparent;
409color: black;
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-black.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-black.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: #f0f0f0;
462color: black;
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 #ababab;
477background-color: @ThemeAccentColor1;
478}
479
480QMenuBar::item:pressed {
481border: 0px solid #ababab;
482background-color: @ThemeAccentColor1;
483color: black;
484}
485
486/* QMenu ------------------------------------------------------------------
487
488https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
489
490--------------------------------------------------------------------------- */
491QMenu {
492border: 1px solid #ababab;
493color: black;
494margin: 0px;
495background-color: #f0f0f0;
496selection-background-color: @ThemeAccentColor1;
497}
498
499QMenu::separator {
500height: 2px;
501background-color: #ededed;
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 #ababab;
514}
515
516QMenu::item:selected {
517color: black;
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-black.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-black.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-black.png);
576}
577
578QMenu::indicator:non-exclusive:indeterminate:disabled {
579image: url(qss:images_classic/checkbox-indeterminate-black.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-black.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-black.png);
595}
596
597QMenu::indicator:exclusive:unchecked:disabled {
598image: url(qss:images_classic/checkbox-Empty-black.png);
599}
600
601QMenu::indicator:exclusive:checked {
602border: none;
603outline: none;
604image: url(qss:images_classic/Radio-checked-black.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-black.png);
612}
613
614QMenu::indicator:exclusive:checked:disabled {
615outline: none;
616image: url(qss:images_classic/Radio-checked-black.png);
617}
618
619QMenu::right-arrow {
620margin: 5px;
621padding-left: 12px;
622image:url(qss:images_classic/Arrow-right-black.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: #f0f0f0;
635color: black;
636border: 1px solid #ababab;
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 #ababab;
652border-radius: 3px;
653/* fix #159 */
654padding: 0px;
655/* remove min-height to fix #244 */
656color: black;
657}
658
659QAbstractScrollArea:disabled {
660color: #646464;
661/* background-color: #d8d8d8; */
662}
663
664/* QScrollArea ------------------------------------------------------------
665
666---------------------------------------------------------------------------
667text input field disabled!!!!*/
668QScrollArea QWidget:disabled {
669/* background-color: #d8d8d8; */
670color: #646464;
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 #ababab, stop:0.1 #f9f9f9, stop:0.9 #fafafa, stop:1 #ababab);
682border-left: 14px solid qlineargradient(x1:1, y1:0, x2:0, y2:0, stop:0 #ababab, stop:0.1 #f9f9f9, stop:0.9 #fafafa, stop:1 #ababab);
683border-top: 1px solid #ababab;
684border-bottom: 1px solid #ababab;
685background-color: #e6e6e6;
686}
687
688QScrollBar:vertical {
689background-color: #222222;
690width: 14px;
691border-top: 14px solid qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 #ababab, stop:0.1 #f9f9f9, stop:0.9 #fafafa, stop:1 #ababab);
692border-bottom: 14px solid qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #ababab, stop:0.1 #f9f9f9, stop:0.9 #fafafa, stop:1 #ababab);
693border-left: 1px solid #ababab;
694border-right: 1px solid #ababab;
695background-color: #e6e6e6;
696}
697
698QScrollBar::handle:horizontal {
699border-left: 1px solid #ababab;
700border-right: 1px solid #ababab;
701background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:1 #f2f2f2);
702}
703
704QScrollBar::handle:horizontal:hover {
705background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f2f2f2, stop:1 #fefefe);
706/* border: 1px #e6e6e6; */
707}
708
709QScrollBar::handle:horizontal:focus {
710border: 1px solid @ThemeAccentColor2;
711}
712
713QScrollBar::handle:vertical {
714border-top: 1px solid #ababab;
715border-bottom: 1px solid #ababab;
716min-height: 8px;
717border-radius: 0px;
718background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #fefefe, stop:1 #f2f2f2);
719}
720
721QScrollBar::handle:vertical:hover {
722background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f2f2f2, stop:1 #fefefe);
723/* border: solid 1px #e6e6e6; */
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-black.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-black.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-black.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-black.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: #ffffff;
825color: black;
826border-radius: 2px;
827border: 0px solid #ababab;
828}
829
830QTextEdit:focus {
831border: 1px solid @ThemeAccentColor2;
832}
833
834QTextEdit:selected {
835background-color: #346792;
836color: black;
837}
838
839/* QPlainTextEdit ---------------------------------------------------------
840Python
841--------------------------------------------------------------------------- */
842QPlainTextEdit {
843background-color: #ffffff;
844color: black;
845border-radius: 2px;
846border: 0px solid #ababab;
847}
848
849QPlainTextEdit:focus {
850border: 1px solid @ThemeAccentColor2;
851}
852
853QPlainTextEdit:selected {
854background-color: @ThemeAccentColor1;
855color: black;
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 #ababab;
876}
877
878/* QToolBar ---------------------------------------------------------------
879
880https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
881
882--------------------------------------------------------------------------- */
883QToolBar {
884background-color: #f0f0f0;
885/* border: 1px solid #ababab; */
886/* font-weight: bold; */
887}
888
889QToolBar:horizontal {
890border-bottom: 1px solid #ababab;
891padding-top: 3px;
892padding-left: 4px;
893}
894
895QToolBar:vertical {
896border-left: 1px solid #ababab;
897border-right: 1px solid #ababab;
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-darkgray.png);
918}
919
920QToolBar::handle:vertical:hover {
921height: 8px;
922image: url(qss:images_classic/Vmovetoolbar-darkgray.png);
923}
924
925QToolBar::separator:horizontal {
926width: 2px;
927padding: 0px 3px;
928image: url(qss:images_classic/Hsepartoolbar-lightgray.png);
929}
930
931QToolBar::separator:vertical {
932height: 2px;
933padding: 3px 0px;
934image: url(qss:images_classic/Vsepartoolbar-lightgray.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;
941}
942
943QToolButton#qt_toolbar_ext_button:hover {
944background-color: transparent;
945}
946
947QToolButton#qt_toolbar_ext_button:on {
948background-color: transparent;
949}
950
951
952/* QAbstractSpinBox -------------------------------------------------------
953
954--------------------------------------------------------------------------- */
955QAbstractSpinBox,
956QSpinBox {
957background-color: #ffffff;
958border: 1px solid #ababab;
959color: black;
960border-radius: 2px;
961min-height: 24px;
962padding-left: 4px;
963padding-right: 4px;
964}
965
966QAbstractSpinBox:up-button {
967background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
968subcontrol-origin: border;
969subcontrol-position: top right;
970border-top: 1px solid transparent;
971border-right: 1px solid transparent;
972border-bottom: 1px solid #b0b0b0;
973border-top-right-radius: 2px;
974border-left: 1px solid #b0b0b0;
975margin:1px;
976margin-bottom:-1px;
977}
978
979QAbstractSpinBox::up-arrow, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::up-arrow:off {
980image: url(qss:images_classic/Arrow-up-lightgray.png);
981height: 8px;
982width: 8px;
983}
984
985QAbstractSpinBox::up-arrow:hover {
986image: url(qss:images_classic/Arrow-up-black.png);
987height: 8px;
988width: 8px;
989}
990
991QAbstractSpinBox:down-button {
992background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fdfdfd, stop:1 #f0f0f0);
993subcontrol-origin: border;
994subcontrol-position: bottom right;
995border-bottom: 1px solid transparent;
996border-right: 1px solid transparent;
997border-top: 1px solid #b0b0b0;
998border-bottom-right-radius: 2px;
999border-left: 1px solid #b0b0b0;
1000margin:1px;
1001margin-top:-1px;
1002}
1003
1004QAbstractSpinBox::down-arrow, QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::down-arrow:off {
1005image: url(qss:images_classic/Arrow-down-lightgray.png);
1006height: 8px;
1007width: 8px;
1008}
1009
1010QAbstractSpinBox::down-arrow:hover {
1011image: url(qss:images_classic/Arrow-down-black.png);
1012height: 8px;
1013width: 8px;
1014}
1015
1016QAbstractSpinBox:hover {
1017}
1018
1019QAbstractSpinBox:focus {
1020border: 1px solid @ThemeAccentColor2;
1021}
1022
1023QAbstractSpinBox:selected {
1024background-color: @ThemeAccentColor1;
1025}
1026
1027/* ------------------------------------------------------------------------ */
1028/* DISPLAYS --------------------------------------------------------------- */
1029/* ------------------------------------------------------------------------ */
1030/* QLabel -----------------------------------------------------------------
1031
1032https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
1033
1034--------------------------------------------------------------------------- */
1035QLabel {
1036/* background-color: transparent;
1037border: 0px solid #ababab;
1038padding: 2px;
1039margin: 0px;
1040color: black;
1041spacing:8px; */
1042}
1043
1044QLabel:disabled {
1045/* background-color: transparent;
1046border: 0px solid #ababab; */
1047color: #646464;
1048}
1049
1050QLabel[haslink="true"] {
1051color: #003e7d;
1052}
1053
1054
1055/* QTextBrowser -----------------------------------------------------------
1056
1057https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
1058
1059--------------------------------------------------------------------------- */
1060QTextBrowser {
1061background-color: #ffffff;
1062border: 1px solid #ababab;
1063color: black;
1064border-radius: 2px;
1065}
1066
1067QTextBrowser:disabled {
1068background-color: #d8d8d8;
1069border: 1px solid #ababab;
1070color: #646464;
1071border-radius: 2px;
1072}
1073
1074QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pressed {
1075}
1076
1077/* QGraphicsView ----------------------------------------------------------
1078
1079--------------------------------------------------------------------------- */
1080QGraphicsView {
1081background-color: transparent;
1082border: 0px solid @ThemeAccentColor1;
1083color: black;
1084border-radius: 0px;
1085}
1086
1087QGraphicsView:disabled {
1088background-color: #fdfdfd;
1089border: 0px solid #ababab;
1090color: #646464;
1091border-radius: 0px;
1092}
1093
1094QGraphicsView:hover, QGraphicsView:!hover, QGraphicsView:selected, QGraphicsView:pressed {
1095border: 0px solid #ff00f7;
1096}
1097
1098/* QCalendarWidget --------------------------------------------------------
1099
1100--------------------------------------------------------------------------- */
1101QCalendarWidget {
1102border: 1px solid #ababab;
1103border-radius: 2px;
1104}
1105
1106QCalendarWidget:disabled {
1107background-color: #f0f0f0;
1108color: #646464;
1109}
1110
1111/* QLCDNumber -------------------------------------------------------------
1112
1113--------------------------------------------------------------------------- */
1114QLCDNumber {
1115background-color: #1aff00;
1116color: black;
1117}
1118
1119QLCDNumber:disabled {
1120background-color: #d8d8d8;
1121color: #646464;
1122}
1123
1124/* QProgressBar -----------------------------------------------------------
1125
1126https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
1127
1128--------------------------------------------------------------------------- */
1129QProgressBar {
1130background-color: #cccccc;
1131border: 1px solid #ababab;
1132color: black;
1133border-radius: 2px;
1134text-align: center;
1135}
1136
1137QProgressBar:disabled {
1138background-color: #d8d8d8;
1139border: 1px solid #ababab;
1140color: #696969;
1141border-radius: 2px;
1142text-align: center;
1143}
1144
1145QProgressBar::chunk {
1146background-color: @ThemeAccentColor1;
1147color: #d8d8d8;
1148border-radius: 2px;
1149}
1150
1151QProgressBar::chunk:disabled {
1152background-color: #d8d8d8;
1153color: #646464;
1154border-radius: 2px;
1155}
1156
1157/* ------------------------------------------------------------------------ */
1158/* BUTTONS ---------------------------------------------------------------- */
1159/* ------------------------------------------------------------------------ */
1160/* QPushButton ------------------------------------------------------------
1161
1162https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton
1163
1164--------------------------------------------------------------------------- */
1165QPushButton {
1166background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
1167color: black;
1168border: 1px solid #ababab;
1169/* border-bottom-color: #1e1e1e; simulates shadow under the button */
1170border-radius: 3px;
1171padding: 4px;
1172min-width: 80px;
1173}
1174
1175#CreateNewRow > QPushButton {
1176/* Reset min width to default */
1177min-width: -1;
1178}
1179
1180QPushButton:disabled {
1181background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #e2e2e2, stop:1 #fdfdfd);
1182color: #646464;
1183border: 1px solid #ababab;
1184}
1185
1186QPushButton:checked {
1187border: 1px solid @ThemeAccentColor1;
1188outline: none;
1189}
1190
1191QPushButton:focus {
1192border: 1px solid @ThemeAccentColor2;
1193}
1194
1195
1196QPushButton:checked:disabled {
1197border: 1px solid @ThemeAccentColor1;
1198color: #646464;
1199outline: none;
1200}
1201
1202QPushButton:checked:selected {
1203border: 1px solid @ThemeAccentColor1;
1204}
1205
1206QPushButton:hover {
1207background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:1 #f8f8f8);
1208color: black;
1209}
1210
1211QPushButton:pressed {
1212border: 1px solid @ThemeAccentColor1;
1213}
1214
1215QPushButton:selected {
1216border: 1px solid @ThemeAccentColor1;
1217color: black;
1218}
1219
1220QPushButton::menu-indicator {
1221subcontrol-origin: padding;
1222subcontrol-position: bottom right;
1223bottom: 4px;
1224}
1225
1226QDialogButtonBox QPushButton {
1227/* Issue # 194 # 248 - Special case of QPushButton inside dialogs, for better UI */
1228min-width: 80px;
1229}
1230
1231/* QToolButton ------------------------------------------------------------
1232
1233https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
1234
1235--------------------------------------------------------------------------- */
1236QToolButton {
1237background-color: transparent;
1238color: black;
1239/* border-radius: 1px; */
1240padding: 2px;
1241outline: none;
1242border: none;
1243border-radius: 3px;
1244/* The subcontrols below are used only in the DelayedPopup mode */
1245/* The subcontrols below are used only in the MenuButtonPopup mode */
1246/* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
1247}
1248
1249QToolButton:disabled {
1250padding: 2px;
1251}
1252
1253QToolButton:checked {
1254background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #efefef, stop:0.7 #d8d8d8, stop:1 #d8d8d8);
1255border-radius: 3px;
1256border-left: 1px solid #ababab;
1257border-top: 1px solid #ababab;
1258border-right: 1px solid #e1e1e1;
1259border-bottom: 1px solid #e1e1e1;
1260}
1261
1262QToolButton:checked:disabled {
1263background-color: transparent;
1264}
1265
1266QToolButton:checked:hover {
1267background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #efefef, stop:0.7 #d8d8d8, stop:1 #d8d8d8);
1268border: 1px solid #ababab;
1269}
1270
1271QToolButton:checked:pressed {
1272border: 1px solid @ThemeAccentColor2;
1273}
1274
1275QToolButton:checked:selected {
1276background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:0.7 #ffffff, stop:1 #ffffff);
1277border: 1px solid @ThemeAccentColor1;
1278}
1279
1280QToolButton:hover {
1281color: black;
1282border: 1px solid #ababab;
1283}
1284
1285QToolButton:pressed {
1286}
1287
1288QToolButton:selected {
1289border: 1px solid @ThemeAccentColor1;
1290color: black;
1291}
1292
1293QToolButton#qt_toolbutton_menubutton {
1294padding-right: 15px; /*Hack to add more width to buttons with menu */
1295border-radius: 3px;
1296}
1297
1298QToolButton::menu-button {
1299border: 1px solid transparent;
1300/* 16px width + 4px for border = 20px allocated above */
1301width: 15px;
1302border-radius: 3px;
1303}
1304
1305QToolButton::menu-button:hover {
1306border: 1px solid transparent;
1307
1308}
1309
1310QToolButton::menu-button:pressed {
1311border: 1px solid transparent;
1312}
1313
1314QToolButton::menu-button:checked:hover {
1315border: 1px solid #ababab;
1316background-color: @ThemeAccentColor2;
1317}
1318
1319QToolButton::menu-indicator {
1320/* Exclude a shift for better image */
1321subcontrol-position: right center;
1322/* Shift it a bit */
1323}
1324
1325QToolButton::menu-arrow {
1326image: url(qss:images_classic/Arrow-down-lightgray.png);
1327width: 18px;
1328height: 18px;
1329/* background-color: transparent; */
1330}
1331QToolButton::menu-arrow:open {
1332image: url(qss:images_classic/Arrow-Down-black.png);
1333width: 18px;
1334height: 18px;
1335}
1336QToolButton::menu-arrow:hover {
1337image: url(qss:images_classic/Arrow-Down-black.png);
1338width: 18px;
1339height: 18px;
1340}
1341
1342/* QCommandLinkButton -----------------------------------------------------
1343
1344--------------------------------------------------------------------------- */
1345QCommandLinkButton {
1346background-color: transparent;
1347border: 1px solid #ababab;
1348color: black;
1349border-radius: 2px;
1350padding: 0px;
1351margin: 0px;
1352}
1353
1354QCommandLinkButton:disabled {
1355background-color: transparent;
1356color: #646464;
1357}
1358
1359/* ------------------------------------------------------------------------ */
1360/* INPUTS - NO FIELDS ----------------------------------------------------- */
1361/* ------------------------------------------------------------------------ */
1362/* QComboBox --------------------------------------------------------------
1363
1364https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
1365
1366--------------------------------------------------------------------------- */
1367QComboBox {
1368border: 1px solid #ababab;
1369border-radius: 2px;
1370background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
1371selection-background-color: @ThemeAccentColor1;
1372padding-left: 4px;
1373padding-right: 2px;
1374/* padding-right = 36; 4 + 16*2 See scrollbar size */
1375/* changed to 4px to fix #239 */
1376/* Fixes #103, #111 */
1377min-height: 23px;
1378/*margin: 0px -1px 0px 0px; hack for Mac... try it on Windows and Linux */
1379/* padding-top: 2px; removed to fix #132 */
1380/* padding-bottom: 2px; removed to fix #132 */
1381/* min-width: 75px; removed to fix #109 */
1382/* Needed to remove indicator - fix #132 */
1383}
1384QComboBox:editable {
1385background-color: #fdfdfd;
1386}
1387QComboBox QAbstractItemView {
1388border: 1px solid #ababab;
1389border-radius: 2px;
1390background-color: #fdfdfd;
1391selection-background-color: @ThemeAccentColor1;
1392}
1393
1394QComboBox QAbstractItemView:hover {
1395background-color:#fdfdfd;
1396color: black;
1397}
1398
1399QComboBox QAbstractItemView:selected {
1400background-color: @ThemeAccentColor1;
1401color: black;
1402}
1403
1404QComboBox QAbstractItemView:alternate {
1405background-color: #fdfdfd;
1406}
1407
1408QComboBox:checked {
1409color: #000000;
1410}
1411
1412QComboBox:disabled {
1413background-color: #d8d8d8;
1414color: #646464;
1415}
1416
1417QComboBox:hover {
1418background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f8f8f8, stop:1 #fefefe);
1419/* border: 1px solid @ThemeAccentColor1; */
1420}
1421
1422QComboBox:focus {
1423border: 1px solid #ababab;
1424border-radius: 2px;
1425/* border: 1px solid @ThemeAccentColor2; */
1426}
1427
1428QComboBox:on {
1429selection-background-color: @ThemeAccentColor1;
1430}
1431
1432QComboBox::indicator {
1433padding-left: 8px;
1434background-color: transparent;
1435}
1436
1437QComboBox::indicator:checked {
1438width: 10px;
1439height: 10px;
1440image: url(qss:images_classic/check-mark-black.png);
1441}
1442
1443QComboBox::item {
1444/* Remove to fix #282, #285 and MR #288*/
1445/*&:checked {
1446font-weight: bold;
1447}
1448
1449&:selected {
1450border: 0px solid transparent;
1451}
1452*/
1453}
1454/* Background color of popup-list.*/
1455
1456/* Needed to complete the rule set. */
1457QComboBox::item:alternate {
1458background-color: #ededed;
1459}
1460/* Color of the selected list item. */
1461QComboBox::item:selected {
1462border: 1px solid #ababab;
1463background-color: @ThemeAccentColor1;
1464}
1465
1466QComboBox::drop-down {
1467subcontrol-origin: padding;
1468/* background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #ababab); */
1469subcontrol-position: top right;
1470width: 20px;
1471border-right: 1px solid transparent;
1472padding-right: 2px;
1473/* border-radius: 2px; */
1474}
1475QComboBox::drop-down:hover {
1476/* background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 @ThemeAccentColor1, stop:1 @ThemeAccentColor3); */
1477}
1478
1479QComboBox::down-arrow {
1480image: url(qss:images_classic/Arrow-down-lightgray.png);
1481/* height: 10px; */
1482width: 8px;
1483}
1484
1485QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
1486image: url(qss:images_classic/Arrow-down-black.png);
1487}
1488
1489
1490/*==================================================================================================
1491Tasks panel (custom FreeCAD class)
1492==================================================================================================*/
1493Gui--PropertyEditor--PropertyEditor {
1494qproperty-groupTextColor: black;
1495qproperty-groupBackground: #ededed;
1496border: 0px solid #ababab;
1497}
1498
1499/* Action group */
1500QFrame[class="panel"] {
1501background-color: rgba(237, 237, 237, 0.5);
1502}
1503
1504QSint--ActionGroup {
1505padding: 0px; /* if not reset, it might create problems with QPushButtons and other elements */
1506margin: 0px; /* if not reset, it might create problems with QPushButtons and other elements */
1507}
1508
1509QSint--ActionGroup QGroupBox {
1510border: 1px solid #696969;
1511background-color: transparent;
1512padding-bottom: 3px;
1513}
1514
1515QSint--ActionGroup QGroupBox::title {
1516top: -8px;
1517left: 13px;
1518}
1519
1520/* Separator line */
1521QSint--ActionGroup QFrame[height="1"],
1522QSint--ActionGroup QFrame[height="1"],
1523QSint--ActionGroup QFrame[height="1"],
1524QSint--ActionGroup QFrame[width="1"],
1525QSint--ActionGroup QFrame[width="1"],
1526QSint--ActionGroup QFrame[width="1"] {
1527border-color: rgba(0,0,0,60);
1528}
1529
1530/* Panel header */
1531QSint--ActionGroup QFrame[class="header"] {
1532border-top: 1px solid #ffffff;
1533border-left: 1px solid #ffffff;
1534border-right: 1px solid #ffffff;
1535/*background-color: #d4d4d4; /* Task Panel Header background color */
1536background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0,stop:0 #ffffff, stop:1 @ThemeAccentColor3);
1537border-top-left-radius: 3px;
1538border-top-right-radius: 3px;
1539border-bottom-left-radius: 0px;
1540border-bottom-right-radius: 0px;
1541margin: 0px;
1542padding: 0px;
1543color: #215dc6;
1544}
1545
1546QSint--ActionGroup QFrame[class="header"]:hover {
1547/* background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0,stop:0 #ffffff stop:1 #313d61); */
1548color: #418FDE;
1549}
1550
1551QSint--ActionGroup QToolButton[class="header"] {
1552color: black; /* Task Panel Header text color */
1553text-align: left;
1554font-weight: bold;
1555border: none;
1556margin: 0px;
1557padding: 0px;
1558}
1559
1560QSint--ActionGroup QFrame[class="header"] QLabel[fold="false"] {
1561width: 30px;
1562height: 30px;
1563image: url(qss:images_classic/Qsint_header_unfold_lightgray.png);
1564}
1565
1566QSint--ActionGroup QFrame[class="header"] QLabel:hover[fold="false"] {
1567width: 30px;
1568height: 30px;
1569image: url(qss:images_classic/Qsint_header_unfold_black.png);
1570}
1571
1572QSint--ActionGroup QFrame[class="header"] QLabel[fold="true"] {
1573width: 30px;
1574height: 30px;
1575image: url(qss:images_classic/Qsint_header_fold_lightgray.png);
1576}
1577
1578QSint--ActionGroup QFrame[class="header"] QLabel[fold="true"]:hover {
1579width: 30px;
1580height: 30px;
1581image: url(qss:images_classic/Qsint_header_fold_black.png);
1582}
1583
1584QSint--ActionGroup QFrame[class="content"] {
1585background-color: @ThemeAccentColor3; /* Task Panel background color */
1586margin: 0px;
1587padding: 0px;
1588border-bottom: 1px solid #ffffff;
1589border-left: 1px solid #ffffff;
1590border-right: 1px solid #ffffff;
1591border-top-left-radius: 0px;
1592border-top-right-radius: 0px;
1593border-bottom-left-radius: 3px;
1594border-bottom-right-radius: 3px;
1595}
1596
1597
1598/* Fixs for tabs inside Task Panel */
1599QSint--ActionGroup QFrame[class="content"] QTabBar::tab:top:selected {
1600border-bottom-color: @ThemeAccentColor1; /* same as Task Panel background color */
1601}
1602
1603QSint--ActionGroup QFrame[class="content"] QTabBar::tab:bottom:selected {
1604border-top-color: @ThemeAccentColor1; /* same as Task Panel background color */
1605}
1606
1607QSint--ActionGroup QFrame[class="content"] QTabBar::tab:right:selected {
1608border-right-color: @ThemeAccentColor1; /* same as Task Panel background color */
1609}
1610
1611QSint--ActionGroup QFrame[class="content"] QTabBar::tab:left:selected {
1612border-left-color: @ThemeAccentColor1; /* same as Task Panel background color */
1613}
1614
1615/* Fix for buttons with icons that showed cropped (still not happy with result) */
1616QSint--ActionGroup QFrame[class="content"] > QWidget > QPushButton {
1617padding: 2px; /* bigger padding crops text and icons... */
1618margin: 0px;
1619border-radius: 3px;
1620}
1621
1622/* Fix for lists inside task panels */ /* sketcher constraints list */
1623QSint--ActionGroup QFrame[class="content"] QTreeView,
1624QSint--ActionGroup QFrame[class="content"] QListView,
1625QSint--ActionGroup QFrame[class="content"] QTableView {
1626color: black;
1627background-color: #f0f0f0;
1628}
1629
1630
1631/* found inside Part Design Workbench and "make a draft on a face" Task panel options */
1632QSint--ActionGroup QFrame[class="content"] QToolButton {
1633color: black;
1634text-align: center;
1635background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
1636border: 0px solid #adadad;
1637padding: 1px 1px; /* different than regular QPushButton */
1638margin: 0px; /* different than regular QPushButton */
1639min-height: 16px; /* same as QTabBar QPushButton min-width */
1640border-radius: 3px;
1641}
1642
1643/* QToolButtons with a menu found in Sketcher task panel*/
1644QSint--ActionGroup QToolButton::menu-button {
1645border-left: 1px solid #adadad;
1646border-top-right-radius: 3px;
1647border-bottom-right-radius: 3px;
1648padding: 0px;
1649width: 19px; /* 16px width + 4px for border = 20px allocated above */
1650outline: none;
1651background-color: transparent;
1652/* margin: 10px; */
1653}
1654
1655QSint--ActionGroup QToolButton#settingsButton,
1656QSint--ActionGroup QToolButton#filterButton,
1657QSint--ActionGroup QToolButton#manualUpdate {
1658padding-right: 20px; /* make way for the popup button */
1659}
1660
1661/* to give widget inside the menu same look as regular menu */
1662QSint--ActionGroup QToolButton#filterButton QListWidget {
1663color: #000000;
1664background-color: #ffffff;
1665border: 1px solid #adadad;
1666}
1667
1668
1669QSint--ActionGroup QFrame[class="content"] QToolButton:hover{
1670background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:1 #f8f8f8);
1671}
1672QSint--ActionGroup QFrame[class="content"] QToolButton:focus {
1673border: 1px solid @ThemeAccentColor2;
1674}
1675
1676QSint--ActionGroup QFrame[class="content"] QToolButton:disabled,
1677QSint--ActionGroup QFrame[class="content"] QToolButton:disabled:checked {
1678color: #646464;
1679/* background-color: #fdfdfd; */
1680}
1681
1682QSint--ActionGroup QFrame[class="content"] QToolButton:pressed {
1683border: 1px solid @ThemeAccentColor1;
1684}
1685
1686/* QSlider ----------------------------------------------------------------
1687
1688https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
1689
1690--------------------------------------------------------------------------- */
1691QSlider:disabled {
1692background-color: #d8d8d8;
1693}
1694
1695QSlider:focus {
1696/*border: 1px solid @ThemeAccentColor2;*/
1697}
1698
1699QSlider::groove:horizontal {
1700background-color: #d8d8d8;
1701border: 1px solid #ababab;
1702height: 4px;
1703margin: 0px;
1704border-radius: 2px;
1705}
1706
1707QSlider::groove:vertical {
1708background-color: @ThemeAccentColor1;
1709border: 1px solid #ababab;
1710width: 4px;
1711margin: 0px;
1712border-radius: 2px;
1713}
1714
1715QSlider::add-page:vertical {
1716background-color: @ThemeAccentColor1;
1717border: 1px solid #ababab;
1718width: 4px;
1719margin: 0px;
1720border-radius: 2px;
1721}
1722
1723QSlider::add-page:vertical :disabled {
1724background-color: #d8d8d8;
1725}
1726
1727QSlider::sub-page:horizontal {
1728background-color: @ThemeAccentColor1;
1729border: 1px solid #ababab;
1730height: 4px;
1731margin: 0px;
1732border-radius: 2px;
1733}
1734
1735QSlider::sub-page:horizontal:disabled {
1736background-color: @ThemeAccentColor1;
1737}
1738
1739QSlider::handle:horizontal {
1740background-color: #f0f0f0;
1741border: 1px solid #ababab;
1742width: 10px;
1743height: 8px;
1744margin: -4px 0px;
1745border-radius: 6px;
1746}
1747
1748QSlider::handle:horizontal:hover {
1749background-color: @ThemeAccentColor1;
1750border: 1px solid #ababab;
1751}
1752
1753QSlider::handle:horizontal:focus {
1754background-color: @ThemeAccentColor2;
1755border: 1px solid @ThemeAccentColor2;
1756}
1757
1758QSlider::handle:vertical {
1759background-color: #f0f0f0;
1760border: 1px solid #ababab;
1761width: 10px;
1762height: 8px;
1763margin: 0px -4px;
1764border-radius: 6px;
1765}
1766
1767QSlider::handle:vertical:hover {
1768background-color: @ThemeAccentColor1;
1769border: 1px solid #ababab;
1770}
1771
1772QSlider::handle:vertical:focus {
1773border: 1px solid @ThemeAccentColor2;
1774}
1775
1776/* QLineEdit --------------------------------------------------------------
1777
1778https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
1779
1780--------------------------------------------------------------------------- */
1781QLineEdit {
1782background-color: #ffffff;
1783padding-top: 2px;
1784/* This QLineEdit fix 103, 111 */
1785padding-bottom: 2px;
1786/* This QLineEdit fix 103, 111 */
1787padding-left: 4px;
1788padding-right: 4px;
1789border-style: solid;
1790border: 1px solid #ababab;
1791border-radius: 2px;
1792color: black;
1793}
1794
1795QLineEdit:disabled {
1796background-color: #d8d8d8;
1797color: #646464;
1798}
1799
1800QLineEdit:hover {
1801/* border: 1px solid @ThemeAccentColor1; */
1802color: black;
1803}
1804
1805QLineEdit:focus {
1806border: 2px solid @ThemeAccentColor2;
1807}
1808
1809QLineEdit:selected {
1810background-color: @ThemeAccentColor1;
1811color: black;
1812}
1813
1814/* QTabWiget --------------------------------------------------------------
1815
1816https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1817
1818--------------------------------------------------------------------------- */
1819QTabWidget {
1820padding: 2px;
1821selection-background-color: @ThemeAccentColor1;
1822}
1823
1824QTabWidget QWidget {
1825/* Fixes #189 */
1826border-radius: 0px;
1827}
1828
1829QTabWidget::pane {
1830margin: 0px;
1831/* Fixes double border inside pane with pyqt5 */
1832padding: 0px;
1833background-color: rgba(227, 227, 227, 84);
1834border: 1px solid #d8d8d8;
1835}
1836
1837QTabWidget::pane:selected {
1838background-color: @ThemeAccentColor1;
1839border: 1px solid #fdfdfd;
1840}
1841
1842QTabWidget::pane:selected {
1843background-color: #557bb6;
1844border: 1px solid #346792;
1845}
1846
1847QTabWidget::pane:top {
1848top: -1px;
1849border-top: 1px solid #fdfdfd;
1850}
1851
1852QTabWidget::pane:bottom {
1853bottom: -1px;
1854border-bottom: 1px solid #fdfdfd;
1855}
1856
1857QTabWidget::pane:left {
1858right: -1px;
1859border-right: 1px solid #fdfdfd;
1860}
1861
1862QTabWidget::pane:right {
1863left: -1px;
1864border-left: 1px solid #fdfdfd;
1865}
1866/* QTabBar ----------------------------------------------------------------
1867
1868https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
1869
1870--------------------------------------------------------------------------- */
1871QTabBar, QDockWidget QTabBar {
1872qproperty-drawBase: 0;
1873background-color: #f0f0f0;
1874/* left: 5px; move to the right by 5px - removed for fix */
1875}
1876
1877QTabBar[style="icon-only"]::tab:top {
1878min-width: 16px;
1879padding-right: -2px;
1880padding-left: 10px;
1881}
1882
1883QTabBar[style="text-only"]::tab:top {
1884min-width: 16px;
1885/* padding-right: -2px;
1886padding-left: 10px; */
1887}
1888
1889QTabBar[style="icon-only"]::tab:bottom {
1890min-width: 16px;
1891padding-right: -2px;
1892padding-left: 10px;
1893}
1894
1895QTabBar[style="text-only"]::tab:bottom {
1896min-width: 16px;
1897padding-left: 4px;
1898}
1899
1900QTabBar[style="icon-only"]::tab:right {
1901min-height: 16px;
1902padding-bottom: -2px;
1903padding-top: 10px;
1904}
1905
1906QTabBar[style="text-only"]::tab:right {
1907min-height: 16px;
1908/* padding-right: -2px;
1909padding-left: 10px; */
1910}
1911
1912QTabBar[style="icon-only"]::tab:left {
1913min-height: 16px;
1914padding-top: -2px;
1915padding-bottom: 10px;
1916}
1917
1918QTabBar[style="text-only"]::tab:left {
1919min-height: 16px;
1920padding-bottom: 4px;
1921}
1922
1923QTabBar::close-button, QDockWidget QTabBar::close-button {
1924border: 0;
1925margin: 3px;
1926padding: 0px;
1927image: url(qss:images_classic/Close-lightgray.png);
1928}
1929
1930QTabBar::close-button:hover, QDockWidget QTabBar::close-button:hover {
1931image: url(qss:images_classic/close-red.png);
1932/*background-color: rgba(255, 0, 0, 0.3);*/
1933}
1934
1935QTabBar::close-button:pressed, QDockWidget QTabBar::close-button:pressed {
1936image: url(qss:images_classic/close-lightRed.png);
1937}
1938
1939QTabBar::tab, QDockWidget QTabBar::tab {
1940/* !selected and disabled ----------------------------------------- */
1941/* selected ------------------------------------------------------- */
1942padding: 4px;
1943background-color: #f0f0f0;
1944}
1945
1946QTabBar::tab:top, QDockWidget QTabBar::tab:top {
1947color: #646464;
1948margin-left: 0px;
1949margin-right: 0px;
1950min-width: 5px;
1951background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dddddd, stop:0.6 #e2e2e2, stop:1 #cccccc);
1952margin-top: 3px;
1953border-top: 1px solid #ababab; /* selection color */
1954border-bottom: 1px solid #ababab;
1955border-left: 1px solid #ababab;
1956border-right: 1px solid #ababab;
1957border-top-left-radius: 2px;
1958border-top-right-radius: 2px;
1959}
1960
1961QTabBar::tab:top:selected, QDockWidget QTabBar::tab:top:selected {
1962background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
1963color: black;
1964border-top: 1px solid #ababab; /* selection color */
1965border-bottom: 1px solid #f0f0f0;
1966border-left: 1px solid #ababab;
1967border-right: 1px solid #ababab;
1968margin-top: 0px;
1969border-top-left-radius: 2px;
1970border-top-right-radius: 2px;
1971}
1972
1973QTabBar::tab:top:!selected:hover, QDockWidget QTabBar::tab:top:!selected:hover {
1974background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #d8d8d8);
1975margin-top: 0px;
1976}
1977
1978QTabBar::tab:bottom, QDockWidget QTabBar::tab:bottom {
1979color: #646464;
1980min-width: 5px;
1981background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #dddddd, stop:0.6 #e2e2e2, stop:1 #cccccc);
1982margin-bottom: 3px;
1983border-bottom: 1px solid #ababab; /* selection color */
1984border-top: 1px solid #ababab;
1985border-left: 1px solid #ababab;
1986border-right: 1px solid #ababab;
1987border-bottom-left-radius: 2px;
1988border-bottom-right-radius: 2px;
1989}
1990
1991QTabBar::tab:bottom:selected, QDockWidget QTabBar::tab:bottom:selected {
1992background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
1993color: black;
1994border-bottom: 1px solid #ababab; /* selection color */
1995border-top: 1px solid #f0f0f0;
1996border-left: 1px solid #ababab;
1997border-right: 1px solid #ababab;
1998margin-bottom: 0px;
1999border-bottom-left-radius: 2px;
2000border-bottom-right-radius: 2px;
2001}
2002
2003QTabBar::tab:bottom:!selected:hover, QDockWidget QTabBar::tab:bottom:!selected:hover {
2004background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d8d8d8, stop:1 #f0f0f0);
2005margin-bottom: 0px;
2006}
2007
2008QTabBar::tab:left, QDockWidget QTabBar::tab:left {
2009color: #646464;
2010min-height: 5px;
2011background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #dddddd, stop:0.6 #e2e2e2, stop:1 #cccccc);
2012margin-left: 3px;
2013border-bottom: 1px solid #ababab; /* selection color */
2014border-right: 1px solid #ababab;
2015border-left: 1px solid #ababab;
2016border-top: 1px solid #ababab;
2017border-top-left-radius: 2px;
2018border-bottom-left-radius: 2px;
2019}
2020
2021QTabBar::tab:left:selected, QDockWidget QTabBar::tab:left:selected {
2022background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
2023color: black;
2024border-bottom: 1px solid #ababab; /* selection color */
2025border-right: 1px solid #f0f0f0;
2026border-left: 1px solid #ababab;
2027border-top: 1px solid #ababab;
2028margin-left: 0px;
2029border-top-left-radius: 2px;
2030border-bottom-left-radius: 2px;
2031}
2032
2033QTabBar::tab:left:!selected:hover, QDockWidget QTabBar::tab:left:!selected:hover {
2034background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #d8d8d8, stop:1 #f0f0f0);
2035margin-left: 0px;
2036}
2037
2038QTabBar::tab:right, QDockWidget QTabBar::tab:right {
2039color: black;
2040min-height: 5px;
2041background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #dddddd, stop:0.6 #e2e2e2, stop:1 #cccccc);
2042margin-right: 3px;
2043border-bottom: 1px solid #ababab; /* selection color */
2044border-left: 1px solid #ababab;
2045border-right: 1px solid #ababab;
2046border-top: 1px solid #ababab;
2047border-top-right-radius: 2px;
2048border-bottom-right-radius: 2px;
2049}
2050
2051QTabBar::tab:right:selected, QDockWidget QTabBar::tab:right:selected {
2052background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
2053color: black;
2054border-bottom: 1px solid #ababab; /* selection color */
2055border-left: 1px solid #f0f0f0;
2056border-left: 1px solid #ababab;
2057border-top: 1px solid #ababab;
2058margin-right: 0px;
2059border-top-right-radius: 2px;
2060border-bottom-right-radius: 2px;
2061}
2062
2063QTabBar::tab:right:!selected:hover, QDockWidget QTabBar::tab:right:!selected:hover {
2064background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:1 #d8d8d8);
2065margin-right: 0px;
2066}
2067
2068QTabBar QToolButton, QDockWidget QTabBar QToolButton {
2069/* Fixes #136 */
2070/* background-color: #444444; */
2071border: 1px solid #ababab;;
2072margin: 1px;
2073background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:1 #d8d8d8);
2074
2075}
2076
2077QTabBar QToolButton:pressed, QDockWidget QTabBar QToolButton:pressed {
2078background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
2079}
2080
2081QTabBar QToolButton:pressed:hover, QDockWidget QTabBar QToolButton:pressed:hover {
2082background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #f0f0f0, stop:0.6 #fdfdfd stop:1 #f0f0f0);
2083}
2084
2085QTabBar QToolButton::left-arrow:enabled, QDockWidget QTabBar QToolButton::left-arrow:enabled {
2086image: url(qss:images_classic/Arrow-left-darkgray.png);
2087}
2088
2089QTabBar QToolButton::left-arrow:disabled, QDockWidget QTabBar QToolButton::left-arrow:disabled {
2090image: url(qss:images_classic/Arrow-left-lightgray.png);
2091}
2092
2093QTabBar QToolButton::right-arrow:enabled, QDockWidget QTabBar QToolButton::right-arrow:enabled {
2094image: url(qss:images_classic/Arrow-right-darkgray.png);
2095}
2096
2097QTabBar QToolButton::right-arrow:disabled, QDockWidget QTabBar QToolButton::right-arrow:disabled {
2098image: url(qss:images_classic/Arrow-right-lightgray.png);
2099}
2100
2101/* QDockWiget -------------------------------------------------------------
2102
2103--------------------------------------------------------------------------- */
2104QDockWidget {
2105background-color: #f0f0f0;
2106border: 1px solid #ababab;
2107border-radius: 2px;
2108titlebar-close-icon: url(qss:images_classic/transparent.png);
2109titlebar-normal-icon: url(qss:images_classic/transparent.png);
2110}
2111
2112QDockWidget::title {
2113/* Better size for title bar */
2114padding: 3px;
2115spacing: 4px;
2116border: none;
2117background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
2118text-align: center;
2119font-weight: bold;
2120}
2121
2122QDockWidget::close-button {
2123icon-size: 10px;
2124border: none;
2125background-color: transparent;
2126background-image: none;
2127border: 0;
2128margin: 0;
2129padding: 0;
2130image: url(qss:images_classic/close-black.png);
2131}
2132
2133QDockWidget::close-button:hover {
2134image: url(qss:images_classic/close-red.png);
2135}
2136
2137QDockWidget::close-button:pressed {
2138image: url(qss:images_classic/close-black.png);
2139}
2140
2141QDockWidget::float-button {
2142icon-size: 12px;
2143border: none;
2144background-color: transparent;
2145background-image: none;
2146border: 0;
2147margin: 0;
2148padding: 0;
2149image: url(qss:images_classic/undock-black.png);
2150}
2151
2152QDockWidget::float-button:hover {
2153/*background-color: @ThemeAccentColor1;*/
2154image: url(qss:images_classic/undock-blue.png);
2155}
2156
2157QDockWidget::float-button:pressed {
2158image: url(qss:images_classic/undock-black.png);
2159}
2160
2161/* QTreeView QListView QTableView -----------------------------------------
2162
2163https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
2164https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
2165https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
2166
2167--------------------------------------------------------------------------- */
2168QTreeView::branch {
2169background-color: transparent;
2170selection-background-color: transparent;
2171}
2172
2173QTreeView::branch:has-siblings:!adjoins-item {
2174}
2175
2176QTreeView::branch:has-siblings:adjoins-item {
2177
2178}
2179
2180QTreeView::branch:!has-children:!has-siblings:adjoins-item {
2181
2182}
2183
2184QTreeView::branch:closed:has-children:has-siblings {
2185border-image: none;
2186image: url(qss:images_classic/Arrow-right-black.png);
2187}
2188
2189QTreeView::branch:has-children:!has-siblings:closed {
2190border-image: none;
2191image: url(qss:images_classic/Arrow-right-black.png);
2192}
2193
2194QTreeView::branch:open:has-children:has-siblings {
2195border-image: none;
2196image: url(qss:images_classic/Arrow-down-black.png);
2197}
2198
2199QTreeView::branch:open:has-children:!has-siblings {
2200border-image: none;
2201image: url(qss:images_classic/Arrow-down-black.png) ;
2202}
2203
2204QTreeView::indicator,
2205QListView::indicator,
2206QTableView::indicator,
2207QColumnView::indicator {
2208border: 1px solid #1c1c1c;
2209}
2210
2211QTreeView::indicator:unchecked:disabled,
2212QListView::indicator:unchecked:disabled,
2213QTableView::indicator:unchecked:disabled,
2214QColumnView::indicator:unchecked:disabled {
2215border: 1px solid #696969;
2216}
2217
2218QTreeView::indicator:checked,
2219QListView::indicator:checked,
2220QTableView::indicator:checked,
2221QColumnView::indicator:checked {
2222image: url(qss:images_classic/check-mark-black.png);
2223}
2224
2225QTreeView::indicator:checked:disabled ,
2226QListView::indicator:checked:disabled ,
2227QTableView::indicator:checked:disabled ,
2228QColumnView::indicator:checked:disabled {
2229image: url(qss:images_classic/check-mark-lightgray.png);
2230border: 1px solid #696969;
2231}
2232
2233QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
2234QListView::indicator:checked:hover,
2235QListView::indicator:checked:focus,
2236QListView::indicator:checked:pressed,
2237QTableView::indicator:checked:hover,
2238QTableView::indicator:checked:focus,
2239QTableView::indicator:checked:pressed,
2240QColumnView::indicator:checked:hover,
2241QColumnView::indicator:checked:focus,
2242QColumnView::indicator:checked:pressed {
2243/* image: url(qss:images_classic/checkbox-checked-blue.png); */
2244/* background-color: @ThemeAccentColor1;
2245border: 1px solid #1c1c1c; */
2246}
2247
2248/* QTreeView::indicator:unchecked,
2249QListView::indicator:unchecked,
2250QTableView::indicator:unchecked,
2251QColumnView::indicator:unchecked {
2252image: url(qss:images_classic/checkbox-Empty-black.png);
2253} */
2254
2255QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
2256QListView::indicator:unchecked:hover,
2257QListView::indicator:unchecked:focus,
2258QListView::indicator:unchecked:pressed,
2259QTableView::indicator:unchecked:hover,
2260QTableView::indicator:unchecked:focus,
2261QTableView::indicator:unchecked:pressed,
2262QColumnView::indicator:unchecked:hover,
2263QColumnView::indicator:unchecked:focus,
2264QColumnView::indicator:unchecked:pressed {
2265/* image: url(qss:images_classic/checkbox-Empty-blue.png); */
2266/* background-color: @ThemeAccentColor1;
2267border: 1px solid #1c1c1c; */
2268}
2269
2270QTreeView::indicator:indeterminate,
2271QListView::indicator:indeterminate,
2272QTableView::indicator:indeterminate,
2273QColumnView::indicator:indeterminate {
2274image: url(qss:images_classic/indeterminate-mark-black.png);
2275}
2276
2277QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
2278QListView::indicator:indeterminate:hover,
2279QListView::indicator:indeterminate:focus,
2280QListView::indicator:indeterminate:pressed,
2281QTableView::indicator:indeterminate:hover,
2282QTableView::indicator:indeterminate:focus,
2283QTableView::indicator:indeterminate:pressed,
2284QColumnView::indicator:indeterminate:hover,
2285QColumnView::indicator:indeterminate:focus,
2286QColumnView::indicator:indeterminate:pressed {
2287/* image: url(qss:images_classic/indeterminate-mark-black.png);
2288background-color: @ThemeAccentColor1;
2289border: 1px solid #1c1c1c; */
2290}
2291
2292QTreeView,
2293QListView,
2294QTableView,
2295QColumnView {
2296background-color: #f0f0f0; /* background of a lot of stuff including spreadsheets.*/
2297color: black;
2298gridline-color: #ababab;
2299border-radius: 0px;
2300selection-background-color: @ThemeAccentColor1;
2301}
2302
2303QTableView,
2304QListView {
2305background-color: #ffffff; /* background of a lot of stuff including spreadsheets.*/
2306}
2307
2308QTreeView:disabled,
2309QListView:disabled,
2310QTableView:disabled,
2311QColumnView:disabled {
2312background-color: #d8d8d8;
2313color: #646464;
2314}
2315
2316QTreeView:selected,
2317QListView:selected,
2318QTableView:selected,
2319QColumnView:selected {
2320background-color: #f0f0f0;
2321color: black;
2322}
2323
2324QTreeView:focus,
2325QListView:focus,
2326QTableView:focus,
2327QColumnView:focus {
2328/* background-color: @ThemeAccentColor2; */
2329}
2330
2331QTreeView::item:pressed,
2332QListView::item:pressed,
2333QTableView::item:pressed,
2334QColumnView::item:pressed {
2335background-color: @ThemeAccentColor1;
2336}
2337
2338QTreeView::item:selected:active,
2339QListView::item:selected:active,
2340QTableView::item:selected:active,
2341QColumnView::item:selected:active {
2342background-color: @ThemeAccentColor1;
2343}
2344
2345QTreeView::item:selected:!active,
2346QListView::item:selected:!active,
2347QTableView::item:selected:!active,
2348QColumnView::item:selected:!active {
2349background-color: @ThemeAccentColor1;
2350}
2351
2352QTreeView::item:!selected:hover,
2353QListView::item:!selected:hover,
2354QTableView::item:!selected:hover,
2355QColumnView::item:!selected:hover {
2356outline: 0;
2357color: black;
2358background-color: @ThemeAccentColor1;
2359}
2360
2361QTableCornerButton::section {
2362background-color: #d8d8d8;
2363border: 1px transparent #ababab;
2364border-radius: 0px;
2365}
2366
2367QTableView::item {
2368color: black;
2369}
2370QTableView {
2371/*qproperty-AliasedCellBackgroundColor: #f700ff;*/
2372/*qproperty-aliasBgColor: #f700ff;*/
2373}
2374
2375/* QHeaderView ------------------------------------------------------------
2376
2377https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
2378
2379--------------------------------------------------------------------------- */
2380QHeaderView {
2381background-color: transparent;
2382/* text-align: bottom; */
2383}
2384
2385QHeaderView:disabled {
2386/* background-color: #d8d8d8; */
2387color: #646464;
2388}
2389
2390QHeaderView::section {
2391background-color: qlineargradient(x1:0, y1:0.3, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
2392color: black;
2393border-bottom: 1px solid #ababab;
2394border-right: 1px solid #ababab;
2395border-top: 1px solid #ababab;
2396border-left: 1px solid transparent;
2397}
2398
2399QHeaderView::section::horizontal {
2400/* padding-top: 1px;
2401padding-bottom: 1px;
2402padding-left: 5px;
2403padding-right: 0px; */
2404}
2405
2406QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
2407/* border-left: 0px solid #ababab; */
2408}
2409
2410QHeaderView::section::horizontal:disabled {
2411color: #646464;
2412}
2413
2414QHeaderView::section::vertical {
2415border-top: 1px solid #ababab;
2416}
2417
2418QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
2419border-top: 2px solid #ababab;
2420}
2421
2422QHeaderView::section::vertical:disabled {
2423border-top: 2px solid #ababab;
2424}
2425
2426QHeaderView::down-arrow {
2427/* Those settings (border/width/height/background-color) solve bug */
2428/* transparent arrow background and size */
2429background-color: transparent;
2430border: none;
2431height: 12px;
2432width: 12px;
2433padding-left: 2px;
2434padding-right: 2px;
2435image: url(qss:images_classic/Arrow-down-lightgray.png);
2436}
2437
2438QHeaderView::up-arrow {
2439background-color: transparent;
2440border: none;
2441height: 12px;
2442width: 12px;
2443padding-left: 2px;
2444padding-right: 2px;
2445image: url(qss:images_classic/Arrow-up-lightgray.png);
2446}
2447
2448/* QToolBox --------------------------------------------------------------
2449
2450https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
2451used in PATH
2452
2453--------------------------------------------------------------------------- */
2454QToolBox {
2455padding: 0px;
2456border: 0px solid transparent;
2457border-radius: 4px;
2458background-color: transparent;
2459color: black;
2460}
2461
2462QToolBox:selected {
2463padding: 0px;
2464border: 1px solid @ThemeAccentColor1;
2465}
2466
2467QToolBox::tab {
2468background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
2469color: black;
2470border-radius: 4px;
2471border: 1px solid #ababab;
2472image: none;
2473background-image: none;
2474padding-left: 0px;
2475}
2476
2477QToolBox::tab:disabled {
2478color: #646464;
2479}
2480
2481QToolBox::tab:selected {
2482background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:1 #f8f8f8);
2483}
2484
2485QToolBox::tab:selected:disabled {
2486background-color: #696969;
2487border-bottom: 0px solid #cccccc;
2488color: #646464;
2489}
2490
2491QToolBox::tab:!selected {
2492color: black;
2493}
2494
2495QToolBox::tab:!selected:disabled {
2496background-color: #d8d8d8;
2497}
2498
2499QToolBox::tab:hover {
2500background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fefefe, stop:1 #f8f8f8);
2501}
2502
2503QToolBox > QScrollArea > QWidget > QWidget {
2504padding: 0px;
2505border: 0px;
2506background-color: #f0f0f0;
2507border-radius: 4px;
2508}
2509
2510/* QFrame -----------------------------------------------------------------
2511
2512https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
2513https://doc.qt.io/qt-5/qframe.html#-prop
2514https://doc.qt.io/qt-5/qframe.html#details
2515https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
2516
2517--------------------------------------------------------------------------- */
2518/* (dot) .QFrame fix #141, #126, #123 */
2519.QFrame {
2520border-radius: 0px;
2521border: 0px solid #ababab;
2522background-color: #f0f0f0;
2523/* No frame */
2524/* HLine */
2525/* HLine */
2526}
2527
2528.QFrame[frameShape="0"] {
2529border-radius: 2px;
2530border: 1px solid #ababab;
2531}
2532
2533.QFrame[frameShape="4"] {
2534max-height: 1px;
2535border: none;
2536background-color: #ababab;
2537}
2538
2539.QFrame[frameShape="5"] {
2540max-width: 1px;
2541border: none;
2542background-color: #f0f0f0;
2543}
2544
2545/* QSplitter --------------------------------------------------------------
2546
2547https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
2548
2549---------------------------------------------------------------------------*/
2550QSplitterHandle:hover { /* to fix bug about hovering on splitters https://bugreports.qt.io/browse/QTBUG-13768 */
2551
2552}
2553
2554QSplitter::handle {
2555margin: 0px 0px;
2556padding: 0px;
2557}
2558
2559QSplitter::handle:horizontal {
2560background-image: none;
2561background-position: center center;
2562background-repeat: none;
2563margin: 2px 2px 2px 2px;
2564width: 1px;
2565}
2566
2567QSplitter::handle:vertical {
2568background-image: none;
2569background-position: center center;
2570background-repeat: none;
2571margin: 2px 2px 2px 2px;
2572height: 1px;
2573}
2574QSplitter::handle:vertical:hover {
2575image: url(qss:images_classic/splitter_horizontal-lightgray.png);
2576}
2577
2578QSplitter::handle:horizontal:hover {
2579image: url(qss:images_classic/splitter_vertical-lightgray.png);
2580}
2581
2582/* QDateEdit, QDateTimeEdit -----------------------------------------------
2583
2584--------------------------------------------------------------------------- */
2585QDateEdit, QDateTimeEdit {
2586selection-background-color: @ThemeAccentColor1;
2587border-style: solid;
2588border: 1px solid #ababab;
2589border-radius: 2px;
2590/* This fixes 103, 111 */
2591padding-top: 2px;
2592/* This fixes 103, 111 */
2593padding-bottom: 2px;
2594padding-left: 4px;
2595padding-right: 4px;
2596min-width: 10px;
2597}
2598
2599QDateEdit:on, QDateTimeEdit:on {
2600selection-background-color: @ThemeAccentColor1;
2601}
2602
2603QDateEdit::drop-down, QDateTimeEdit::drop-down {
2604subcontrol-origin: padding;
2605subcontrol-position: top right;
2606width: 12px;
2607border-left: 1px solid #ababab;
2608}
2609
2610QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
2611image: url(qss:images_classic/Arrow-down-lightgray.png);
2612height: 8px;
2613width: 8px;
2614}
2615
2616QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
2617image: url(qss:images_classic/Arrow-down-black.png);
2618}
2619
2620QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
2621background-color: #ffffff;
2622border-radius: 2px;
2623border: 1px solid #ababab;
2624selection-background-color: @ThemeAccentColor1;
2625}
2626
2627/* QAbstractView ----------------------------------------------------------
2628
2629--------------------------------------------------------------------------- */
2630QAbstractView:hover {
2631border: 1px solid @ThemeAccentColor1;
2632color: black;
2633}
2634
2635QAbstractView:selected {
2636background-color: @ThemeAccentColor1;
2637color: black;
2638}
2639
2640/* PlotWidget -------------------------------------------------------------
2641
2642--------------------------------------------------------------------------- */
2643PlotWidget {
2644/* Fix cut labels in plots #134 */
2645padding: 0px;
2646color: rgba(253, 253, 253, 0.614);
2647}
2648
2649/*==================================================================================================
2650SKETCHER
2651==================================================================================================*/
2652
2653Gui--StatefulLabel[state="empty_sketch"] {
2654color : #393939; /* 50% opacity white */
2655}
2656Gui--StatefulLabel[state="under_constrained"] {
2657color : #000000;
2658}
2659Gui--StatefulLabel[state="conflicting_constraints"] {
2660color : #9d0000; /* Red */
2661font-weight: bold;
2662}
2663Gui--StatefulLabel[state="malformed_constraints"] {
2664color : #9d0000; /* Red */
2665font-weight: bold;
2666}
2667Gui--StatefulLabel[state="redundant_constraints"] {
2668color : #ab4d00; /* Orange red */
2669}
2670Gui--StatefulLabel[state="partially_redundant_constraints"] {
2671color : #005991; /* Royal blue */
2672}
2673Gui--StatefulLabel[state="solver_failed"] {
2674color : #9d0000; /* Red */
2675font-weight: bold;
2676}
2677Gui--StatefulLabel[state="fully_constrained"] {
2678color : #278100; /* Green */
2679font-weight: bold;
2680}
2681Gui--UrlLabel {
2682color : #0061a7; /* Deep sky blue */
2683text-decoration : underline;
2684}
2685
2686Gui--NotificationLabel {
2687background-color: #ffffff;
2688border: 1px solid #ababab;
2689border-radius: 2px;
2690}
2691/* overlay */
2692Gui--OverlayToolButton{
2693image: url(qss:images_classic/close-lightgray.png);
2694}
2695
2696Gui--OverlayToolButton:hover {
2697image: url(qss:images_classic/close-red.png);
2698}
2699
2700Gui--OverlayToolButton[objectName="OBTN Float"] {
2701image: url(qss:images_classic/float-lightgray.png);
2702}
2703
2704Gui--OverlayToolButton[objectName="OBTN Float"]:hover {
2705image: url(qss:images_classic/float-black.png);
2706}
2707
2708Gui--OverlayToolButton[objectName="OBTN Overlay"] {
2709image: url(qss:images_classic/overlay-lightgray.png);
2710}
2711
2712Gui--OverlayToolButton[objectName="OBTN Overlay"]:hover {
2713image: url(qss:images_classic/overlay-black.png);
2714}
2715
2716/*==================================================================================================
2717Forming windows below are the border settings. See also https://forum.freecad.org/viewtopic.php?p=439797#p439797
2718==================================================================================================*/
2719QMdiSubWindow {
2720border:2px solid #f0f0f0;
2721border-radius: 2px;
2722border-top-right-radius: 7px;
2723border-top-left-radius: 7px;
2724background-color: #f0f0f0;
2725}
2726
2727QMdiSubWindow:hover {
2728border:2px solid #ababab;
2729}
2730
2731QMdiSubWindow:active {
2732border:2px solid @ThemeAccentColor1;
2733}
2734
2735/*==================================================================================================
2736Settings menu #groupsTreeView:
2737==================================================================================================*/
2738
2739QTreeView::branch#groupsTreeView:closed:has-children:has-siblings {
2740border-image: none;
2741image: url(qss:images_classic/Arrow-right-black.png);
2742}
2743
2744QTreeView::branch#groupsTreeView:open:has-children:has-siblings {
2745border-image: none;
2746image: url(qss:images_classic/Arrow-down-black.png);
2747}
2748
2749QTreeView::branch#groupsTreeView:open:has-children:!has-siblings {
2750border-image: none;
2751image: url(qss:images_classic/Arrow-down-black.png);
2752}
2753
2754QTreeView::branch#groupsTreeView:has-children:!has-siblings:closed {
2755border-image: none;
2756image: url(qss:images_classic/Arrow-right-black.png);
2757}
2758
2759QTreeView::branch#groupsTreeView:has-siblings:!adjoins-item {
2760border-image: none;
2761}
2762
2763/*==================================================================================================
2764Start page
2765==================================================================================================*/
2766QWidget#thumbnailWidget {
2767background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #f0f0f0, stop:1 #fdfdfd);
2768border-radius: 8px;
2769border: 1px solid #ababab;
2770}
2771
2772QWidget#thumbnailWidget[state="hovered"] {
2773border: 1px solid @ThemeAccentColor1;
2774}
2775
2776QWidget#thumbnailWidget[state="pressed"] {
2777border: 1px solid @ThemeAccentColor1;
2778}
2779
2780/**
2781* Special handling for WB Tab Bar
2782*/
2783#WbTabBar #WbTabBarMore {
2784padding-right: 12px;
2785}
2786
2787/* 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. */
2788/* QTreeView::item:selected:active#groupsTreeView {
2789background-color: @ThemeAccentColor1;
2790margin-left:-8px;
2791}
2792
2793QTreeView::item:selected#groupsTreeView{
2794background-color: @ThemeAccentColor1;
2795margin-left:-8px;
2796}
2797
2798QTreeView::item:!selected:hover#groupsTreeView {
2799outline: 0;
2800color: white;
2801background-color: @ThemeAccentColor1;
2802margin-left:-8px;
2803} */