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
|
/* NOTES to contributors:
* use 4 spaces indents, and keep code ALIGNED and ORDERED */
/* default */
* {
background-clip: padding-box;
-GtkArrow-arrow-scaling: 0.55;
-GtkHTML-link-color: @theme_selected_bg_color;
-GtkIMHtml-hyperlink-color: @theme_selected_bg_color;
-GtkScrollbar-has-backward-stepper: false;
-GtkScrollbar-has-forward-stepper: false;
-GtkScrolledWindow-scrollbar-spacing: 0;
-GtkTextView-error-underline-color: @error_color;
-GtkToolButton-icon-spacing: 6;
-GtkToolItemGroup-expander-size: 10;
-GtkTreeView-expander-size: 10;
-GtkWindow-resize-grip-height: 0;
-GtkWindow-resize-grip-width: 0;
-WnckTasklist-fade-overlay-rect: 0;
/*-GtkWidget-horizontal-separator: 0;*/
-GtkWidget-vertical-separator: 0;
outline-color: transparent;
outline-style: none;
outline-offset: 2px;
}
/***************
* base states *
***************/
.background {
background-color: @theme_bg_color;
color: @theme_fg_color;
}
.background.client-decorated {
background-color: transparent;
}
.background.window-content {
background-color: @theme_bg_color;
}
GtkClutterOffscreen {
background-color: @theme_bg_color;
color: @theme_fg_color;
}
*:selected,
*:selected:focus {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
*:active {
background-color: shade(@theme_bg_color, 1.00);
}
*:disabled,
*:disabled:disabled {
color: mix(@theme_fg_color, @theme_bg_color, 0.5);
}
/* apply effects to disabled and prelit images */
*:disabled {
-gtk-icon-effect: dim;
}
*:hover {
-gtk-icon-effect: highlight;
}
.gtkstyle-fallback {
background-color: @theme_bg_color;
color: @theme_fg_color;
}
.gtkstyle-fallback:hover {
background-color: shade(@theme_bg_color, 1.1);
color: @theme_fg_color;
}
.gtkstyle-fallback:active {
background-color: shade(@theme_bg_color, 0.9);
color: @theme_fg_color;
}
.gtkstyle-fallback:disabled {
background-color: shade(shade(@theme_bg_color, 0.95), 1.05);
color: mix(@theme_fg_color, @theme_bg_color, 0.5);
}
.gtkstyle-fallback:selected {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
/*************
* assistant *
*************/
GtkAssistant .sidebar .highlight {
background-color: @theme_selected_bg_color;
}
GtkAssistant .sidebar {
padding: 0px;
border-width: 0;
border-style: none;
background-color: @theme_bg_color;
color: @theme_fg_color;
}
/***********************
! Font and file choosers
************************/
GtkFontButton .separator,
GtkFileChooserButton .separator {
/* always disable separators */
-GtkWidget-horizontal-separator: 0;
-GtkWidget-vertical-separator: 0;
}
placessidebar>viewport.frame {
border-style: none;
}
placessidebar row {
min-height: 2px;
padding: 5px;
}
placessidebar row>revealer {
padding: 0 5px;
}
placessidebar row:selected {
color: @theme_selected_fg_color;
}
placessidebar row:disabled {
color: shade(@theme_selected_bg_color, 0.32);
}
placessidebar row image.sidebar-icon {
opacity: 0.6;
}
placessidebar row image.sidebar-icon:dir(ltr) {
padding-right: 8px;
}
placessidebar row image.sidebar-icon:dir(rtl) {
padding-left: 8px;
}
placessidebar row label.sidebar-label:dir(ltr) {
padding-right: 2px;
}
placessidebar row label.sidebar-label:dir(rtl) {
padding-left: 2px;
}
button.sidebar-button {
min-height: 8px;
min-width: 24px;
margin-top: 0;
margin-bottom: 0;
padding: 0;
border-radius: 0%;
-gtk-outline-radius: 0%;
}
placessidebar row.sidebar-placeholder-row {
min-height: 2px;
padding: 0 2px;
background-color: @theme_selected_bg_color;
background-clip: content-box;
}
placessidebar row.sidebar-new-bookmark-row {
color: @theme_selected_bg_color;
}
placessidebar row:drop(active):not(:disabled) {
box-shadow: inset 0 0 0 2px @theme_selected_bg_color;
}
/****************
* content view *
****************/
.content-view.view {
background-color: @theme_base_color;
}
.content-view.view:hover {
background-color: alpha(@theme_selected_bg_color, 0.3);
}
.content-view.view:selected,
.content-view.view:active {
background-color: @theme_selected_bg_color;
}
.content-view.view:disabled {
background-color: @entry_border_color;
}
GdMainIconView.content-view {
-GdMainIconView-icon-size: 40;
}
GtkIconView.content-view.check {
background-color: transparent;
}
GtkIconView.content-view.check:active {
background-color: transparent;
}
.content-view.view.check,
.content-view.view.check:active {
background-color: transparent;
}
GtkIconView.content-view.check:hover,
GtkIconView.content-view.check:disabled,
GtkIconView.content-view.check:selected {
background-color: transparent;
}
/****************
* drawing area *
****************/
GtkDrawingArea {
background-color: transparent;
}
GtkDrawingArea:disabled {
background-color: @entry_border_color;
}
/***********
* gtkhtml *
***********/
GtkHTML {
background-color: @theme_base_color;
color: @theme_text_color;
}
/************
* expander *
************/
.expander {
color: alpha(@theme_fg_color, 0.7);
}
.expander:hover {
color: alpha(@theme_fg_color, 0.9);
}
/*********
* frame *
*********/
frame {
border-radius: 3px;
}
frame.border-groove,
frame.border-ridge {
border-radius: 3px;
border-width: 0px;
border-style: none;
}
frame.border-groove border,
frame.border-ridge border {
border-radius: 3px;
border-width: 3px;
border-style: solid;
border-color: shade(@theme_bg_color, 0.9);
}
/*******************
* scrolled window *
*******************/
scrolledwindow.frame {
border-radius: 3px;
border-width: 0;
border-style: none;
}
/* avoid double borders when a viewport is
* packed into a GtkScrolledWindow */
scrolledwindow.shortcuts-pane.sidebar treeview {
background-color: @theme_bg_color;
}
scrolledwindow viewport.frame {
border-style: none;
}
/************
* iconview *
************/
GtkIconView.view.cell:selected,
GtkIconView.view.cell:selected:focus {
border-width: 3px;
border-style: solid;
border-color: @theme_selected_bg_color;
background-color: @theme_selected_bg_color;
background-image: none;
color: @theme_selected_fg_color;
}
.content-view.view.rubberband,
.view.rubberband,
.rubberband {
border-width: 1px;
border-style: solid;
border-color: shade(@theme_selected_bg_color, 0.9);
background-color: alpha(@theme_selected_bg_color, 0.3);
}
/*********
* image *
*********/
GtkImage,
GtkImage:active,
GtkImage:disabled {
background-color: transparent;
}
/*********
* label *
*********/
GtkLabel,
GtkLabel:active,
GtkLabel:disabled {
background-color: transparent;
}
/*******************
* symbolic images *
*******************/
.image,
.view.image {
color: alpha(@theme_fg_color, 0.5);
}
.image:hover,
.view.image:hover {
color: @theme_fg_color;
}
.image:selected,
.image:selected:hover,
.view.image:selected,
.view.image:selected:hover {
color: @theme_selected_fg_color;
}
/*****************
* miscellaneous *
*****************/
.floating-bar {
border-width: 3px;
border-style: none;
background-color: @theme_bg_color;
background-image: none;
color: @theme_fg_color;
}
.floating-bar.top {}
.floating-bar.right {}
.floating-bar.bottom {}
.floating-bar.left {}
.floating-bar .button,
.floating-bar .button:focus {
border-style: none;
background-color: transparent;
background-image: none;
}
.view.dim-label,
.dim-label {
color: alpha(currentColor, 0.6);
}
.dnd {
border-width: 1px;
border-style: solid;
border-color: shade(@theme_selected_bg_color, 0.9);
}
.grip {
background-color: transparent;
}
.arrow {
color: alpha(@theme_fg_color, 0.7);
}
.arrow:disabled {
color: alpha(@theme_fg_color, 0.4);
}
/******************
* pane separator *
******************/
.pane-separator {
background-color: transparent;
color: transparent;
}
/*************
* statusbar *
*************/
statusbar {
color: @theme_fg_color;
background-color: @theme_bg_color;
}
/*************
* popover *
*************/
popover.menu,
popover.background {
background-color: @theme_bg_color;
border: 4px solid @theme_selected_bg_color;
background-clip: border-box;
padding: 5px 5px;
}
popover label {
padding: 0px 5px;
}
popover modelbutton {
padding: 5px 5px;
}
popover modelbutton:hover {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
popover modelbutton:active {
background-color: shade(@theme_selected_bg_color, 0.9);
color: @theme_selected_fg_color;
}
/************
* textview *
************/
.view text,
iconview text,
textview text {
background-color: @base_color;
color: @theme_fg_color;
}
.view text:disabled,
iconview text:disabled,
textview text:disabled {
color: rgba(0, 0, 0, 0.32);
}
textview text:selected {
background-color: @theme_selected_bg_color;
}
textview border {
background-color: @theme_selected_bg_color;
background-image: image(rgba(0, 0, 0, 0.1));
background-repeat: no-repeat;
color: rgba(0, 0, 0, 0.48);
}
textview border.bottom {
background-size: 100% 1px;
background-position: top;
}
textview border.top {
background-size: 100% 1px;
background-position: bottom;
}
textview border.left {
background-size: 1px 100%;
background-position: right;
}
textview border.right {
background-size: 1px 100%;
background-position: left;
}
/* this affects the text view that caused me so much trouble in the past*/
.view:selected,
iconview:selected,
.view text selection,
iconview text selection,
textview text selection,
flowbox flowboxchild:selected,
spinbutton:not(.vertical) selection,
/* notebook > stack:not(:only-child) revealer entry selection, */
/* notebook > stack:not(:only-child) revealer spinbutton:not(.vertical) selection, */
entry selection,
modelbutton.flat:selected,
popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected,
row:selected,
calendar:selected {
background-color: @theme_selected_bg_color;
}
row:selected label,
label:selected,
.view:selected,
iconview:selected,
.view text selection,
iconview text selection,
textview text selection,
flowbox flowboxchild:selected,
spinbutton:not(.vertical) selection,
/* notebook > stack:not(:only-child) revealer entry selection, */
/* notebook > stack:not(:only-child) revealer spinbutton:not(.vertical) selection, */
entry selection,
modelbutton.flat:selected,
popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected,
row:selected,
calendar:selected {
color: @theme_selected_fg_color;
}
row:selected label:disabled,
label:disabled:selected,
.view:disabled:selected,
iconview:disabled:selected,
.view text selection:disabled,
iconview text selection:disabled,
textview text selection:disabled,
flowbox flowboxchild:disabled:selected,
label:disabled selection,
spinbutton:not(.vertical) selection:disabled,
/* notebook > stack:not(:only-child) revealer entry selection:disabled, */
/* notebook > stack:not(:only-child) revealer spinbutton:not(.vertical) selection:disabled, */
entry selection:disabled,
modelbutton.flat:disabled:selected,
popover.background checkbutton:disabled:selected,
popover.background radiobutton:disabled:selected,
.menuitem.button.flat:disabled:selected,
row:disabled:selected,
calendar:disabled:selected {
color: shade(@theme_selected_fg_color, 0.4);
}
/************
* Tooltips *
************/
tooltip {
border-radius: 2px;
box-shadow: none;
}
tooltip.background {
background-color: @tooltip_bg_color;
}
tooltip decoration {
background-color: transparent;
}
tooltip label {
min-height: 20px;
padding: 4px 6px;
}
tooltip * {
padding: 0;
background-color: transparent;
color: inherit;
}
/**************
* Tree Views *
**************/
treeview.view {
-GtkTreeView-grid-line-width: 1;
-GtkTreeView-grid-line-pattern: '';
-GtkTreeView-tree-line-width: 1;
-GtkTreeView-tree-line-pattern: '';
-GtkTreeView-expander-size: 16;
border-left-color: alpha(currentColor, 0.3);
border-top-color: rgba(0, 0, 0, 0.1);
}
treeview.view:hover,
treeview.view:active,
treeview.view:selected {
}
treeview.view.separator {
min-height: 5px;
color: rgba(0, 0, 0, 0.1);
}
treeview.view:drop(active) {
border-style: solid none;
border-width: 1px;
border-color: @theme_selected_bg_color;
}
treeview.view:drop(active).after {
border-top-style: none;
}
treeview.view:drop(active).before {
border-bottom-style: none;
}
treeview.view.expander {
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
-gtk-icon-transform: rotate(-90deg);
color: @theme_fg_color;
}
treeview.view.expander:dir(rtl) {
-gtk-icon-transform: rotate(90deg);
}
treeview.view.expander:checked {
-gtk-icon-transform: unset;
}
treeview.view.expander:hover,
treeview.view.expander:active {
color: shade(@theme_selected_bg_color, 0.8);
}
treeview.view.expander:disabled {
color: shade(@theme_selected_bg_color, 0.24);
}
treeview.view.expander:selected {
color: @theme_selected_fg_color;
}
treeview.view.expander:selected:hover,
treeview.view.expander:selected:active {
color: @theme_selected_fg_color;
}
treeview.view.expander:selected:disabled {
color: @theme_selected_fg_color;
}
treeview.view.progressbar {
border-style: none none solid;
border-width: 21px;
border-color: @theme_selected_bg_color;
background-color: transparent;
background-image: none;
}
treeview.view.progressbar:selected {
border-color: shade(@theme_selected_bg_color, 0.3);
}
treeview.view.trough {
border-style: none none solid;
border-width: 21px;
border-color: shade(@theme_selected_bg_color, 0.3);
background-color: transparent;
background-image: none;
}
treeview.view.trough:selected {
border-color: alpha(@theme_selected_bg_color, 0.3);
}
treeview.view header button {
padding: 2px 6px;
border-style: none solid solid none;
border-width: 1px;
border-color: rgba(0, 0, 0, 0.1);
background-clip: border-box;
}
treeview.view header button,
treeview.view header button:hover,
treeview.view header button:active {
box-shadow: none;
}
treeview.view header button,
treeview.view header button:disabled {
background-color: shade(@theme_bg_color, 1.2);
}
treeview.view header button:last-child {
border-right-style: none;
}
treeview.view button.dnd,
treeview.view header.button.dnd {
padding: 2px 6px;
border-style: none solid solid;
border-width: 1px;
border-color: rgba(0, 0, 0, 0.1);
box-shadow: none;
background-color: @theme_bg_color;
background-clip: border-box;
color: @theme_selected_bg_color;
}
/************
* viewport *
************/
GtkViewport.frame {
border-width: 0;
}
.view {
background-color: @theme_base_color;
color: @theme_text_color;
}
.view:disabled,
.view:disabled:disabled {
background-color: shade(@theme_bg_color, 1.04);
background-image: none;
color: mix(@theme_text_color, @theme_base_color, 0.4);
}
.view:selected,
.view:selected:focus {
background-color: @theme_selected_bg_color;
color: @theme_selected_fg_color;
}
/*********************
* app notifications *
*********************/
.app-notification {
border-style: none;
border-width: 0 1px 1px 1px;
padding: 8px;
background-color: @theme_base_color;
background-image: none;
color: @theme_text_color;
}
/******************************
* destructive action buttons *
******************************/
.destructive-action.button {
border-width: 1px;
border-style: solid;
border-color: transparent;
background-color: @error_color;
background-image: none;
color: mix(@theme_selected_fg_color, @error_color, 0.1);
}
.destructive-action.button:hover {
border-color: transparent;
background-color: shade(@error_color, 1.12);
background-image: none;
}
.destructive-action.button:active {
border-color: transparent;
background-color: shade(@error_color, 0.87);
background-image: none;
}
.destructive-action.button:hover:active {
border-color: transparent;
}
/**************
* List boxes *
**************/
EggListBox {
background-color: @theme_base_color;
}
EggListBox:hover {
background-color: mix(white, @theme_selected_bg_color, 0.05);
}
EggListBox:selected {
background-color: @theme_selected_bg_color;
}
list {
background-color: @theme_base_color;
}
list.row:hover {
background-color: shade(@selected_bg_color, 0.9);
color: @fg_color;
}
list.row:active,
list.row:active:hover,
list.row:checked {
color: @fg_color;
background-color: shade(@selected_bg_color, 0.83);
}
/*************************
* touch text selections *
*************************/
GtkBubbleWindow {
background-color: @theme_tooltip_bg_color;
background-clip: border-box;
padding: 10px;
}
GtkBubbleWindow.osd.background {
background-color: @theme_tooltip_bg_color;
}
GtkBubbleWindow .toolbar {
background-color: @theme_tooltip_bg_color
}
/**********************
* Window Decorations *
*********************/
decoration {
transition: box-shadow 0.3s cubic-bezier(0, 0, 0.2, 1);
border-radius: 2px 2px 0 0;
box-shadow: 0 14px 14px rgba(0, 0, 0, 0.25), 0 10px 5px rgba(0, 0, 0, 0.22), 0 16px 16px transparent;
margin: 8px;
}
decoration:backdrop {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16), 0 3px 3px rgba(0, 0, 0, 0.23), 0 16px 16px transparent;
}
.fullscreen decoration,
.tiled decoration {
}
.popup decoration {
box-shadow: none;
}
.ssd decoration {
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
}
.csd.popup decoration {
border-radius: 2px;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16), 0 3px 3px rgba(0, 0, 0, 0.23);
}
tooltip.csd decoration {
border-radius: 2px;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16), 0 3px 3px rgba(0, 0, 0, 0.23);
}
messagedialog.csd decoration {
border-radius: 2px;
}
.solid-csd decoration {
margin: 4px;
box-shadow: none;
background-color: @theme_tooltip_bg_color;
}
|