-
Notifications
You must be signed in to change notification settings - Fork 7
/
light-blue.qss
2088 lines (1769 loc) · 62.3 KB
/
light-blue.qss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
ABOUT
============================================================================================================
version 2.05
QT theme (stylesheet) specially developed for FreeCAD (http://www.freecadweb.org/).
It might work with other software that uses QT styling.
LICENSE
============================================================================================================
Copyright (c) 2016 Pablo Gil Fernández
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
INSTALLATION
============================================================================================================
1) Place the .qss files and /images/ folder in the path that fits your OS:
OSX = /Users/[YOUR_USER_NAME]/Library/Preferences/FreeCAD/Gui/Stylesheets/
WINDOWS = C:/[INSTALLATION_PATH]/FreeCAD/data/Gui/Stylesheets/
LINUX = /home/[YOUR_USER_NAME]/.FreeCAD/Gui/Stylesheets/
2) In order to display correctly images:
2.1) FreeCAD 0.16 (development builds newer than commit 5b3d50a): that's it, you are done!
2.2) FreeCAD 0.15: Images used in the theme need ABSOLUTE paths to be found by FreeCAD, so you should search the string "qss:images" (without "") and replace with the real path of your computer. It should be done with all the .qss files you want to install-use
find = qss:images
replace = /Users/myName/Library/Preferences/FreeCAD/Gui/Stylesheets/images
CUSTOMIZATION
============================================================================================================
If you would like to change the overall look/style of the theme, just find and replace following colors in the whole file:
BACKGROUND (darker to ligher)
black
#505050
#6e6e6e
#828282
#a2a2a0
#b6b6b6
#c8c8c8
#c3c3c3
#d2d2d2
#dcdcdc
#e0e0e0
#e6e6e6
#f0f0f0
#f5f5f5 = main background color
white
SELECTION (darker to lighter)
#1b3774
#2053c0
#3874f2
#5e90fa = main selection color
#6f9efa = used to build QSpinBox up and down buttons, it's used as color in the middle
#7cabf9
#adc5ed
#cbd8e6
KNOWN BUGS and TO DO
============================================================================================================
- please, follow the link to get updated information: http://forum.freecadweb.org/viewtopic.php?f=10&t=12417
*/
/*==================================================================================================
Reset elements
==================================================================================================*/
/* Reseting everything helps to unify styles across different operating systems */
* {
padding: 0px;
margin: 0px;
border: 0px;
border-style: none;
border-image: none;
outline: 0;
}
/* specific reset for elements inside QToolBar */
QToolBar * {
margin: 0px;
padding: 0px;
}
/*==================================================================================================
Main window
==================================================================================================*/
QMainWindow,
QDialog,
QDockWidget,
QToolBar {
background-color: #f5f5f5; /* main background color */
}
QMdiArea {
background-image: url(qss:images/background_freecad.png);
background-position: center center;
background-repeat: no-repeat;
}
/*==================================================================================================
MENUS
==================================================================================================*/
QMenuBar,
QMenuBar::item {
color: black;
background-color: #f5f5f5; /* main background color */
}
QMenu,
QMenu::item {
color: black;
background-color: #f5f5f5; /* main background color */
text-decoration: none;
}
QMenuBar::item:selected,
QMenuBar::item:pressed,
QMenu::item:selected,
QMenu::item:pressed {
color: white;
background-color: #5e90fa;
}
QMenu::right-arrow {
width: 10px;
height: 10px;
image:url(qss:images/right_arrow_dark.png);
margin-right: 2px;
}
QMenu::right-arrow:selected {
image:url(qss:images/right_arrow_lighter.png);
}
QMenu::item {
padding: 2px 16px 2px 26px; /* make room for icon at left */
border: 1px solid transparent; /* reserve space for selection border */
}
QMenu::icon {
margin-left: 2px;
}
QMenu::separator {
height: 1px;
background-color: rgba(0,0,0,30);
margin: 6px 4px;
}
QMenu::indicator:non-exclusive:checked {
color: white;
}
/* Fix for elements inside a drop-down menu */
QMenu QRadioButton,
QMenu QCheckBox,
QMenu QPushButton,
QMenu QToolButton {
color: black; /* same as regular QRadioButton and QCheckBox */
}
QMenu QRadioButton:hover,
QMenu QCheckBox:hover,
QMenu QPushButton:hover,
QMenu QToolButton:hover,
QMenu QPushButton:pressed,
QMenu QToolButton:pressed,
QMenu QPushButton:selected,
QMenu QToolButton:selected {
color: white;
background-color: #5e90fa; /* same as QMenu::item:selected and QMenu::item:pressed */
}
QMenu QRadioButton:disabled,
QMenu QCheckBox:disabled {
color: #6e6e6e;
}
QMenu QRadioButton::indicator:disabled,
QMenu QCheckBox::indicator:disabled {
color: #6e6e6e;
background-color: transparent;
border: 1px solid #6e6e6e;
}
/*==================================================================================================
Tool bar
==================================================================================================*/
QToolBar {
border: none;
padding: 2px;
}
QToolBar::handle:top,
QToolBar::handle:bottom,
QToolBar::handle:horizontal {
background-image: url(qss:images/Hmovetoolbar_dark.png);
width: 10px;
margin: 4px 2px;
background-position: top right;
background-repeat: repeat-y;
}
QToolBar::handle:left,
QToolBar::handle:right,
QToolBar::handle:vertical {
background-image: url(qss:images/Vmovetoolbar_dark.png);
height: 10px;
margin: 2px 4px;
background-position: left bottom;
background-repeat: repeat-x;
}
QToolBar::separator:top,
QToolBar::separator:bottom,
QToolBar::separator:horizontal {
width: 1px;
margin: 6px 4px;
background-color: rgba(0,0,0,30);
}
QToolBar::separator:left,
QToolBar::separator:right,
QToolBar::separator:vertical {
height: 1px;
margin: 4px 6px;
background-color: rgba(0,0,0,30);
}
/*==================================================================================================
Group box
==================================================================================================*/
QGroupBox {
color: rgba(0,0,0,120);
border:1px solid rgba(0, 0, 0, 20); /* lighter than its own border-color */;
border-radius: 3px;
margin-top: 10px;
padding: 6px;
background-color: rgba(255, 255, 255, 15);
}
QGroupBox:title {
top: -8px;
left: 12px;
}
/*==================================================================================================
Tooltip
==================================================================================================*/
QToolTip {
color: white;
background-color: #828282;
/*opacity: 90%; doesn't correctly work */
padding: 4px;
border-radius: 3px; /* has no effect */
}
/*==================================================================================================
Dock widget
==================================================================================================*/
QDockWidget {
color: rgba(0,0,0,120);
titlebar-close-icon: url(qss:images/close_dark.png);
titlebar-normal-icon: url(qss:images/undock_dark.png);
}
QDockWidget::title {
text-align: center;
background-color: rgba(0,0,0,10);
border: 4px solid #f5f5f5; /* fix to simulate margin between this :title and tabs */ /* same as main background color */
border-radius: 6px; /* bigger than normal due to previous border fix */
padding: 4px 0px; /* also needed because of previous border fix */
}
QDockWidget::close-button,
QDockWidget::float-button {
border: none;
background: transparent;
border-radius: 3px;
subcontrol-origin: padding;
subcontrol-position: right center;
}
QDockWidget::close-button {
right: 4px;
}
QDockWidget::float-button {
right: 22px;
}
QDockWidget::close-button:hover,
QDockWidget::float-button:hover {
background-color: rgba(0,0,0,15);
}
QDockWidget::close-button:pressed,
QDockWidget::float-button:pressed {
background-color: rgba(0,0,0,30);
}
/* fix for Python Console (probably there is a smarter way to arrive to it) */
QDockWidget > QFrame {
background-color: #f0f0f0;
border: 1px solid #c3c3c3;
}
/*==================================================================================================
Progress bar
==================================================================================================*/
QProgressBar,
QProgressBar:horizontal {
color: white;
background-color: rgba(0,0,0,10);
text-align: center;
border: 1px solid rgba(0,0,0,80);
padding: 1px;
border-radius: 3px;
}
QProgressBar::chunk,
QProgressBar::chunk:horizontal {
background-color: qlineargradient(spread:pad, x1:1, y1:0.545, x2:1, y2:0, stop:0 #3874f2, stop:1 #5e90fa);
border-radius: 3px;
}
/*==================================================================================================
Scroll
==================================================================================================*/
QAbstractScrollArea {
border-radius: 2px;
background-color: transparent;
}
QAbstractScrollArea::corner {
border: none;
background-color: transparent;
}
QScrollBar:horizontal {
background-color: transparent;
height: 15px;
margin: 0px;
}
QScrollBar::handle:vertical,
QScrollBar::handle:horizontal {
background-color: rgba(0,0,0,80);
}
QScrollBar::handle:vertical:hover,
QScrollBar::handle:horizontal:hover {
background-color: rgba(0,0,0,100);
}
QScrollBar::handle:horizontal {
min-width: 5px;
border-radius: 3px;
margin: 4px 15px;
}
QScrollBar::sub-line:horizontal {
margin: 1px 3px 0px 3px; /* 1px to correctly fit the 10px width image */
border-image: url(qss:images/left_arrow_dark.png);
width: 6px;
height: 10px;
subcontrol-position: left;
subcontrol-origin: margin;
}
QScrollBar::add-line:horizontal {
margin: 1px 3px 0px 3px; /* 1px to correctly fit the 10px width image */
border-image: url(qss:images/right_arrow_dark.png);
width: 6px;
height: 10px;
subcontrol-position: right;
subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal:hover,
QScrollBar::sub-line:horizontal:on {
border-image: url(qss:images/left_arrow_darker.png);
}
QScrollBar::add-line:horizontal:hover,
QScrollBar::add-line:horizontal:on {
border-image: url(qss:images/right_arrow_darker.png);
}
QScrollBar::up-arrow:horizontal,
QScrollBar::down-arrow:horizontal {
background-color: none;
}
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal {
background-color: transparent;
}
QScrollBar:vertical {
background-color: transparent;
width: 15px;
margin: 0px;
}
QScrollBar::handle:vertical {
min-height: 5px;
border-radius: 3px;
margin: 15px 4px;
}
QScrollBar::sub-line:vertical {
margin: 3px 0px 3px 1px; /* 1px to correctly fit the 10px width image */
border-image: url(qss:images/up_arrow_dark.png);
height: 6px;
width: 10px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::add-line:vertical {
margin: 3px 0px 3px 1px; /* 1px to correctly fit the 10px width image */
border-image: url(qss:images/down_arrow_dark.png);
height: 6px;
width: 10px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}
QScrollBar::sub-line:vertical:hover,
QScrollBar::sub-line:vertical:on {
border-image: url(qss:images/up_arrow_darker.png);
}
QScrollBar::add-line:vertical:hover,
QScrollBar::add-line:vertical:on {
border-image: url(qss:images/down_arrow_darker.png);
}
QScrollBar::up-arrow:vertical,
QScrollBar::down-arrow:vertical {
background-color: none;
}
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical {
background-color: transparent;
}
/*==================================================================================================
Tab bar
==================================================================================================*/
QTabWidget::pane {
background-color: transparent; /* temporal (transparent background) */ /* tab content background color */
position: absolute;
}
QTabWidget::pane:top {
top: -1px;
border-top: 1px solid #d2d2d2;
}
QTabWidget::pane:bottom {
bottom: -1px;
border-bottom: 1px solid #d2d2d2;
}
QTabWidget::pane:left {
right: -1px;
border-right: 1px solid #d2d2d2;
}
QTabWidget::pane:right {
left: -1px;
border-left: 1px solid #d2d2d2;
}
QTabWidget::tab-bar:top,
QTabWidget::tab-bar:bottom {
left: 10px;
}
QTabWidget::tab-bar:left,
QTabWidget::tab-bar:right {
top: 10px;
}
QTabBar {
qproperty-drawBase: 0; /* important */
background-color: transparent;
}
/* Workaround for QTabBars created from docked QDockWidgets which don't draw the border if not set and reseted as follows: */
QTabBar {
border-top: 1px solid #d2d2d2; /* set color for all QTabBars */
}
QDockWidget QTabBar {
border-color: transparent; /* set color for all QTabBars but ones created from QDockWidget */
}
QDialog QTabBar {
border-color: transparent; /* set color for QTabBars inside Preferences dialog */
}
/* end fix */
QTabBar::tab {
background-color: transparent;
border: 1px solid transparent;
padding: 3px;
}
QTabBar::tab:top,
QTabBar::tab:bottom {
border-top-width: 4px; /* same as selected tab colored border in order to center close-button */
border-bottom-width: 4px; /* same as selected tab colored border in order to center close-button */
min-width: 11ex;
margin-left: 2px;
margin-right: 2px;
}
QTabBar::tab:left,
QTabBar::tab:right {
border-left-width: 4px; /* same as selected tab colored border in order to center close-button */
border-right-width: 4px; /* same as selected tab colored border in order to center close-button */
min-height: 14ex;
margin-top: 2px;
margin-bottom: 2px;
}
QTabBar::tab:selected {
background-color: #f5f5f5; /* same as tab content background color */
border-color: #d2d2d2;
}
QTabBar::tab:top:selected {
border-top: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #5e90fa, stop:1 #3874f2); /* selection color */
border-bottom-color: #f5f5f5; /* same as tab content background color */
}
QTabBar::tab:bottom:selected {
border-bottom: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #5e90fa, stop:1 #3874f2); /* selection color */
border-top-color: #f5f5f5; /* same as tab content background color */
}
QTabBar::tab:right:selected {
border-left: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #5e90fa, stop:1 #3874f2); /* selection color */
border-right-color: #f5f5f5; /* same as tab content background color */
}
QTabBar::tab:left:selected {
border-right: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 #5e90fa, stop:1 #3874f2); /* selection color */
border-left-color: #f5f5f5; /* same as tab content background color */
}
QTabBar::tab:!selected {
color: rgba(0,0,0,160);
}
QTabBar::tab:!selected:hover {
color: rgba(0,0,0,220);
background-color: rgba(0,0,0,20);
}
QTabBar::tab:first:selected {
margin-left: 0; /* the first selected tab has nothing to overlap with on the left */
}
QTabBar::tab:last:selected {
margin-right: 0; /* the last selected tab has nothing to overlap with on the right */
}
QTabBar::tab:only-one {
margin: 0; /* if there is only one tab, we don't want overlapping margins */
}
/* hack to access Preference TabBar background */
QDialog#Gui__Dialog__DlgPreferences > QFrame QFrame {
background-color: transparent; /* main background color (in Windows is #f5f5f5) */
}
/* fix for previous hack that broke QTabWidget background on Windows */
QDialog#Gui__Dialog__DlgPreferences QTabWidget::pane {
background-color: transparent; /* temporal (transparent background) */
}
/* hack to correctly align Preferences icon list on OSX */
QDialog#Gui__Dialog__DlgPreferences > QListView {
min-width: 130px;
}
/* unique styles for sections inside Preferences */
QDialog#Gui__Dialog__DlgPreferences > QListView::item {
border-radius: 6px;
}
QDialog#Gui__Dialog__DlgPreferences > QListView::item:hover {
background-color: #dcdcdc;
}
QDialog#Gui__Dialog__DlgPreferences > QListView::item:selected {
color: white;
background-color: #5e90fa;
}
/*==================================================================================================
Tab bar buttons
==================================================================================================*/
/* Close button */
QTabBar::close-button {
subcontrol-origin: margin;
subcontrol-position: center right; /* only works for QT 4.6 and newer */;
border-radius: 2px;
background-image: url(qss:images/close_dark.png);
background-position: center center;
background-repeat: none;
}
QTabBar::close-button:hover {
background-color: rgba(0,0,0,20);
}
QTabBar::close-button:pressed {
background-color: rgba(0,0,0,30);
}
/* Fix for lists inside Model tab */
QDockWidget QTreeView,
QDockWidget QListView,
QDockWidget QTableView {
margin: 6px;
border: 1px solid #c3c3c3; /* same as regular QTreeView, QListView and QTableView */
min-height: 40px; /* neccesary in some areas of FreeCAD */
}
/* Buttons to scroll tabs if there is not space to show all of them: */
QTabBar::scroller {
width: 20px; /* the width of the scroll buttons */
}
QTabBar QToolButton,
QTabBar QToolButton:hover {
background-color: #f5f5f5; /* same as main background color */
}
QTabBar QToolButton::right-arrow:enabled {
image: url(qss:images/right_arrow_dark.png);
}
QTabBar QToolButton::right-arrow:disabled,
QTabBar QToolButton::right-arrow:off {
image: url(qss:images/right_arrow_disabled_dark.png);
}
QTabBar QToolButton::right-arrow:hover {
image: url(qss:images/right_arrow_darker.png);
}
QTabBar QToolButton::left-arrow:enabled {
image: url(qss:images/left_arrow_dark.png);
}
QTabBar QToolButton::left-arrow:disabled,
QTabBar QToolButton::left-arrow:off {
image: url(qss:images/left_arrow_disabled_dark.png);
}
QTabBar QToolButton::left-arrow:hover {
image: url(qss:images/left_arrow_darker.png);
}
QTabBar QToolButton::up-arrow:enabled {
image: url(qss:images/up_arrow_dark.png);
}
QTabBar QToolButton::up-arrow:disabled,
QTabBar QToolButton::up-arrow:off {
image: url(qss:images/up_arrow_disabled_dark.png);
}
QTabBar QToolButton::up-arrow:hover {
image: url(qss:images/up_arrow_darker.png);
}
QTabBar QToolButton::down-arrow:enabled {
image: url(qss:images/down_arrow_dark.png);
}
QTabBar QToolButton::down-arrow:disabled,
QTabBar QToolButton::down-arrow:off {
image: url(qss:images/down_arrow_disabled_dark.png);
}
QTabBar QToolButton::down-arrow:hover {
image: url(qss:images/down_arrow_darker.png);
}
QTabBar::tear {
/* default OS tear better */
}
/*==================================================================================================
Tree and list views
==================================================================================================*/
QTreeView,
QListView,
QTableView {
background-color: #f0f0f0;
alternate-background-color: #e6e6e6; /* related with QListView background */
border: 1px solid #c3c3c3;
selection-color: white;
selection-background-color: #5e90fa; /* should be similar to QListView::item selected background-color */
show-decoration-selected: 1; /* make the selection span the entire width of the view */
border-radius: 3px;
}
QListView::item:hover,
QTreeView::item:hover {
background-color: transparent; /* fix to homogenize it on all OSs */
}
QListView::item:selected,
QTreeView::item:selected {
color: white; /* should be similar to QListView selection-color */
background-color: #5e90fa; /* should be similar to QListView selection-background-color */
show-decoration-selected: 1; /* make the selection span the entire width of the view */
}
/* Property Editor QTreeView (FreeCAD custom widget) */
Gui--PropertyEditor--PropertyEditor {
gridline-color: #d2d2d2; /* same as Group header background */
}
/* fix for column items background when a link is present */
Gui--PropertyEditor--PropertyEditor > QWidget > QFrame:focus {
background-color: #cbd8e6; /* same as focused background color */
}
/* hack to hide weird redundant information inside the value of a Placement cell */
Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel,
Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QLabel:disabled {
color: transparent;
background-color: transparent;
border: none;
border-radius: 0px;
margin: 0px;
padding: 0px;
}
/* hack to hide non editable cells inside Property values */
Gui--PropertyEditor--PropertyEditor QLineEdit:read-only,
Gui--PropertyEditor--PropertyEditor QLineEdit:disabled,
Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:read-only,
Gui--PropertyEditor--PropertyEditor QAbstractSpinBox:disabled {
color: transparent;
border-color: transparent;
background-color: transparent;
selection-color: transparent;
selection-background-color: transparent;
}
/* hack to disable margin inside Property values to following elements */
Gui--PropertyEditor--PropertyEditor QSpinBox,
Gui--PropertyEditor--PropertyEditor QDoubleSpinBox,
Gui--PropertyEditor--PropertyEditor QAbstractSpinBox,
Gui--PropertyEditor--PropertyEditor QLineEdit,
Gui--PropertyEditor--PropertyEditor QComboBox {
margin-left: 0px;
margin-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}
/* reset min-height to 0px inside list views */
QTreeView > QWidget > QComboBox,
QTreeView > QWidget > QAbstractSpinBox,
QTreeView > QWidget > QSpinBox,
QTreeView > QWidget > QDoubleSpinBox,
QTreeView > QWidget > QLineEdit,
QTreeView > QWidget > QTextEdit,
QTreeView > QWidget > QTimeEdit,
QTreeView > QWidget > QDateEdit,
QTreeView > QWidget > QDateTimeEdit,
QTreeView > QWidget > Gui--ColorButton {
min-height: 0px;
}
/* set border-radius to 0px inside list views */
QTreeView > QWidget > QComboBox,
QTreeView > QWidget > QAbstractSpinBox,
QTreeView > QWidget > QSpinBox,
QTreeView > QWidget > QDoubleSpinBox,
QTreeView > QWidget > QLineEdit,
QTreeView > QWidget > QTextEdit,
QTreeView > QWidget > QTimeEdit,
QTreeView > QWidget > QDateEdit,
QTreeView > QWidget > QDateTimeEdit,
QTreeView > QWidget > QComboBox:drop-down,
QTreeView > QWidget > QAbstractSpinBox:up-button,
QTreeView > QWidget > QSpinBox:up-button,
QTreeView > QWidget > QDoubleSpinBox:up-button,
QTreeView > QWidget > QTimeEdit:up-button,
QTreeView > QWidget > QDateEdit:up-button,
QTreeView > QWidget > QDateTimeEdit:up-button,
QTreeView > QWidget > QAbstractSpinBox:down-button,
QTreeView > QWidget > QSpinBox:down-button,
QTreeView > QWidget > QDoubleSpinBox:down-button,
QTreeView > QWidget > QTimeEdit:down-button,
QTreeView > QWidget > QDateEdit:down-button,
QTreeView > QWidget > QDateTimeEdit:down-button,
QTreeView > QWidget > Gui--ColorButton {
border-radius: 0px;
}
/* set focus colors to best viewing the editable fields */
QTreeView > QWidget > QComboBox:focus,
QTreeView > QWidget > QAbstractSpinBox:focus,
QTreeView > QWidget > QSpinBox:focus,
QTreeView > QWidget > QDoubleSpinBox:focus,
QTreeView > QWidget > QLineEdit:focus,
QTreeView > QWidget > QTextEdit:focus,
QTreeView > QWidget > QTimeEdit:focus,
QTreeView > QWidget > QDateEdit:focus,
QTreeView > QWidget > QDateTimeEdit:focus {
border-color: #cbd8e6; /* same as focused background color */
border-bottom-color: #7cabf9; /* same as focused border color */
}
QTreeView > QWidget > QAbstractSpinBox:read-only,
QTreeView > QWidget > QSpinBox:read-only,
QTreeView > QWidget > QDoubleSpinBox:read-only,
QTreeView > QWidget > QLineEdit:read-only,
QTreeView > QWidget > QTextEdit:read-only,
QTreeView > QWidget > QTimeEdit:read-only,
QTreeView > QWidget > QDateEdit:read-only,
QTreeView > QWidget > QDateTimeEdit:read-only {
color: transparent;
background-color: transparent;
border-color: transparent;
}
/* Fix to correctly (not totally) draw QTextEdit on OSX at Page properties: "Page result", "Template" and "Editable Texts" */
Gui--PropertyEditor--PropertyEditor > QWidget > QWidget > QWidget {
min-height: 14px;
border-radius: 0px; /* reset */
}
/*==================================================================================================
Header of tree and list views
==================================================================================================*/
QHeaderView {
background-color: #c3c3c3;
border-top-left-radius: 2px; /* 1px less than its container */
border-top-right-radius: 2px; /* 1px less than its container */
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
QHeaderView::section {
border:none;
padding: 4px 6px;
background-color: #c3c3c3;
}
QHeaderView::section:horizontal {
padding: 4px 6px; /* left and right value similar to QHeaderView::section */
border-right: 1px solid rgba(0,0,0,30);
}
QHeaderView::section:vertical {
border-bottom: 1px solid rgba(0,0,0,30);
}
QTableCornerButton::section {
background-color: #c3c3c3;
border-top: none;
border-left: none;
border-right: 1px solid rgba(0,0,0,30);
border-bottom: 1px solid rgba(0,0,0,30);
}
QHeaderView::section:last {
border-right: none;
}
QHeaderView::up-arrow {
image: url(qss:images/up_arrow_dark.png);
}
QHeaderView::up-arrow:hover {
image: url(qss:images/up_arrow_darker.png);
}
QHeaderView::down-arrow {
image: url(qss:images/down_arrow_dark.png);
}
QHeaderView::down-arrow:hover {
image: url(qss:images/down_arrow_darker.png);
}
/* Group header inside Property Editor (FreeCAD custom widget) */
Gui--PropertyEditor--PropertyEditor {
qproperty-groupTextColor: #828282; /* same as main background color */
qproperty-groupBackground: #d2d2d2; /* same as item gridlines */
}
/*==================================================================================================
Branch system for QTreeViews
==================================================================================================*/
QTreeView::branch {
background: transparent;
}
QTreeView::branch:has-siblings:!adjoins-item {
border-image: url(qss:images/branch_vline.png) 0;
}
QTreeView::branch:has-siblings:adjoins-item {
border-image: url(qss:images/branch_more.png) 0;
}
QTreeView::branch:!has-children:!has-siblings:adjoins-item {
border-image: url(qss:images/branch_end.png) 0;
}
QTreeView::branch:closed:has-children:has-siblings {
image: url(qss:images/branch_closed_dark.png);
}
QTreeView::branch:has-children:!has-siblings:closed {
image: url(qss:images/branch_closed_dark.png);
border-image: url(qss:images/branch_end.png) 0;
}
QTreeView::branch:open:has-children:has-siblings {
image: url(qss:images/branch_open_dark.png);
border-image: url(qss:images/branch_more.png) 0;
}
QTreeView::branch:open:has-children:!has-siblings {
image: url(qss:images/branch_open_dark.png);
border-image: url(qss:images/branch_end.png) 0;
}
/*==================================================================================================
Splitter and windows separator
==================================================================================================*/
QSplitter::handle {
margin: 0px 11px;
padding: 0px;
}
QSplitter::handle:horizontal {
background-image: url(qss:images/splitter_vertical_dark.png);
background-position: center center;
background-repeat: none;
margin: 4px 2px 4px 2px;
width: 2px;
}
QSplitter::handle:vertical {
background-image: url(qss:images/splitter_horizontal_dark.png);
background-position: center center;
background-repeat: none;
margin: 2px 4px 2px 4px;
height: 2px;
}
/* Similar to the splitter is the following window separator (but horizontal/vertical is on the opposite way) */
QMainWindow::separator {
background-position: center center;
background-repeat: none;
}
QMainWindow::separator:horizontal {
height: 2px;
background-image: url(qss:images/splitter_horizontal_dark.png);
margin: 4px 2px 4px 2px;
}
QMainWindow::separator:vertical {
width: 2px;