Debian Codegraph @

src/Gui/Stylesheets/FreeCAD.qss

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