A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _gnome.scss

View raw Download
text/plain • 18.67 kiB
ASCII text
        
            
1
/************
2
* Nautilus *
3
************/
4
// based css:
5
// https://git.gnome.org/browse/nautilus/tree/src/resources/css/Adwaita.css
6
// hard-coded css:
7
// https://git.gnome.org/browse/nautilus/tree/src/resources/css/nautilus.css
8
9
.nautilus-window,
10
.nautilus-window notebook,
11
.nautilus-window notebook > stack {
12
background-color: $base_color;
13
}
14
15
.nautilus-canvas-item {
16
// border-radius: $material_radius;
17
}
18
19
.nautilus-canvas-item.dim-label,
20
.nautilus-list-dim-label {
21
// @extend .dim-label;
22
}
23
24
.nautilus-desktop.nautilus-canvas-item:not(:selected) {
25
// background-color: rgba($black, $lower_opacity);
26
color: $inverse_fg_color;
27
text-shadow: $shadow_1;
28
}
29
30
// Toolbar
31
@keyframes needs_attention_keyframes {
32
to { background-color: $fill_color; }
33
}
34
35
.nautilus-operations-button-needs-attention {
36
animation: needs_attention_keyframes $longer_duration $standard_curve 2 alternate;
37
}
38
39
.nautilus-operations-button-needs-attention-multiple {
40
animation: needs_attention_keyframes $longer_duration $standard_curve 4 alternate;
41
}
42
43
// Floating status bar
44
.nautilus-window .floating-bar {
45
@extend %osd;
46
47
// @extend .toolbar.osd;
48
49
min-height: 32px;
50
padding: 0;
51
border-style: solid solid none;
52
border-width: 1px;
53
border-color: $border_color;
54
border-radius: (2px + 1px) (2px + 1px) 0 0;
55
background-color: $base_color;
56
background-clip: $extra_background_clip;
57
transition: $longer_transition, border-width 0;
58
59
&.bottom.left { // axes left border and border radius
60
margin-right: 8px - 1px;
61
border-left-style: none;
62
border-top-left-radius: 0;
63
}
64
65
&.bottom.right { // axes right border and border radius
66
margin-left: 8px - 1px;
67
border-right-style: none;
68
border-top-right-radius: 0;
69
}
70
71
button {
72
margin: (32px - $small_size) / 2;
73
74
@extend %small_button;
75
}
76
}
77
78
.disk-space-display {
79
// border-style: solid;
80
// border-width: 2px;
81
82
&.unknown { background-color: $warning_color; }
83
84
&.used { background-color: $primary_color; }
85
86
&.free { background-color: $divider_color; }
87
}
88
89
// View
90
// Hide superfluous treeview drop target indication
91
.nautilus-list-view .view:not(.dnd) {
92
// border-bottom: 1px solid $border_color;
93
}
94
95
.documents-entry-tag {
96
@extend .entry-tag;
97
}
98
99
// Workaround for the double border of the searchbar since we use a revealer which
100
// always allocates at least 1 pixel
101
.nautilus-window {
102
searchbar { border-top: 1px solid $border_color; }
103
104
.searchbar-container { margin-top: -1px; }
105
}
106
107
.conflict-row:not(:selected) { background-color: mix($warning_color, $base_color, percentage($lower_opacity)); }
108
109
// Icon view
110
.nautilus-window flowboxchild {
111
// > widget > box > .icon-background { background-color: black; }
112
113
> widget > .icon-item-background {
114
padding: 4px;
115
border-radius: $material_radius;
116
}
117
118
&:selected {
119
background-color: transparent;
120
121
> widget > .icon-item-background { background-color: $primary_color; }
122
}
123
}
124
125
// Batch rename dialog
126
dialog.background > box.dialog-vbox.vertical > grid.horizontal {
127
> scrolledwindow.frame { border-style: none; }
128
129
> box.horizontal:last-child {
130
margin: -6px 0 0 -6px;
131
border-top: 1px solid $border_color;
132
133
> label { margin: 0 8px; }
134
135
> box > button { border-radius: 0; }
136
}
137
}
138
139
// Tweak to fix the messy sizing of the popover menu
140
.nautilus-window > popover.menu:not(:last-child) {
141
padding: 3px;
142
143
> stack > box > box > box {
144
margin-top: -6px;
145
146
> box {
147
margin-bottom: -6px;
148
149
&.linked { margin-top: 1px; }
150
}
151
}
152
153
separator { margin-bottom: -2px; }
154
}
155
156
.nautilus-menu-sort-heading {
157
// min-height: 26px;
158
// padding-left: 5px;
159
// padding-right: 5px;
160
margin: 1px 3px;
161
font-weight: 500;
162
163
&:disabled { color: $hint_fg_color; }
164
}
165
166
// Make operations button circular
167
.nautilus-window headerbar > revealer > button { @extend %circular_button; }
168
169
// Ensure paned separator rendering. See issue #84 for details.
170
.nautilus-window paned > separator { background-color: $bg_color; }
171
172
173
/*********
174
* gedit *
175
*********/
176
// based css:
177
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit.adwaita.css
178
// hard-coded css:
179
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit-style.css
180
181
// Only normal state is handle
182
.open-document-selector-name-label {
183
// font-weight: bold;
184
}
185
186
// Only normal state is handle
187
.open-document-selector-path-label {
188
color: $secondary_fg_color;
189
font-size: smaller;
190
191
&:selected { color: $inverse_secondary_fg_color; }
192
}
193
194
.gedit-document-panel {
195
background-color: $lighter_bg_color;
196
197
// Try to look as the notebook tab close button
198
row button.flat {
199
margin-top: 8px;
200
margin-bottom: 8px;
201
202
@extend %small_button;
203
}
204
}
205
206
.gedit-document-panel-group-row:not(:first-child) {
207
border-top: 1px solid $border_color;
208
}
209
210
.gedit-side-panel-paned statusbar {
211
border-top: 1px solid $border_color;
212
}
213
214
.gedit-search-slider {
215
margin: 4px 4px 8px;
216
217
entry {
218
&:dir(ltr),
219
&:dir(rtl) { // specificity bump
220
border-radius: 2px;
221
222
.gedit-search-entry-occurrences-tag {
223
all: unset;
224
color: $hint_fg_color;
225
}
226
}
227
228
$buttons_width: $small_size * 2 + $container_padding * 3;
229
230
&:dir(ltr) {
231
margin-right: -$buttons_width;
232
padding-right: $buttons_width;
233
234
.gedit-search-entry-occurrences-tag { margin-left: $container_padding; }
235
236
image.right { margin-right: 0; }
237
}
238
239
&:dir(rtl) {
240
margin-left: -$buttons_width;
241
padding-left: $buttons_width;
242
243
.gedit-search-entry-occurrences-tag { margin-right: $container_padding; }
244
245
image.left { margin-left: 0; }
246
}
247
248
&.error ~ button {
249
color: $inverse_secondary_fg_color;
250
251
&:hover, &:active { color: $inverse_fg_color; }
252
253
&:disabled { color: $inverse_disabled_secondary_fg_color; }
254
}
255
}
256
257
button {
258
border: solid $container_padding transparent;
259
260
@extend %simple_flat_button;
261
262
&:dir(ltr),
263
&:dir(rtl) { @extend %small_button; } // specificity bump
264
265
&:last-child:dir(ltr),
266
&:not(:first-child):dir(rtl) { margin-left: -$container_padding / 2; }
267
268
&:first-child:dir(rtl),
269
&:not(:last-child):dir(ltr) { margin-right: -$container_padding / 2; }
270
}
271
}
272
273
frame.gedit-map-frame > border {
274
&:dir(ltr) { border-style: none none none solid; }
275
&:dir(rtl) { border-style: none solid none none; }
276
}
277
278
279
/**************
280
* Tweak Tool *
281
**************/
282
// hard-coded css:
283
// https://git.gnome.org/browse/gnome-tweak-tool/tree/data/shell.css
284
285
// the sidebar
286
.tweak-categories {
287
// padding: 4px 0;
288
// background-color: shade(@theme_bg_color, 0.99);
289
background-image: image($lighter_bg_color);
290
291
separator { @extend %hide_separators; }
292
}
293
294
.tweak {
295
// padding-top: 3px;
296
padding: 3px;
297
298
&.title:hover { box-shadow: none; }
299
}
300
301
.tweak-group-white,
302
.tweak-white,
303
.tweak-white:hover {
304
// background-color: white;
305
background-image: image($base_color);
306
}
307
308
.tweak-startup,
309
.tweak-startup:hover {
310
// background-color: lighter(shade(@theme_bg_color, 0.9));
311
background-image: image($base_color);
312
}
313
314
.tweak-group-startup {
315
// background-color: @view_separators;
316
background-image: image($base_color);
317
border: 1px solid $border_color;
318
}
319
320
// Workaround for 3.26
321
322
row#Focus,
323
row#StaticWorkspaceTweak,
324
row#PrimaryWorkspaceTweak {
325
padding: 0;
326
border: 1px solid $border_color;
327
328
row:not(:last-child) { border-bottom: 1px solid $border_color; }
329
}
330
331
// Add more spaces between title and list
332
row#Focus,
333
row#PrimaryWorkspaceTweak {
334
margin-top: 4px;
335
}
336
337
338
/***********
339
* Builder *
340
***********/
341
// based css:
342
// https://git.gnome.org/browse/gnome-builder/tree/data/theme
343
// hard-coded css:
344
// https://git.gnome.org/browse/gnome-builder/tree/data/theme/shared.css
345
346
// Layout tab and tab bar tweaks
347
// The following makes the layout stack header look similar to a tab bar.
348
layouttabbar {
349
border-bottom: 1px solid $border_color;
350
background-color: $bg_color;
351
352
button { @extend %flat_button; }
353
354
> box > button {
355
margin: (40px - $medium_size) / 2 0;
356
// border-radius: 0;
357
}
358
}
359
360
layouttab {
361
margin: 0 8px; // not working
362
border-style: none solid;
363
border-width: 1px;
364
border-color: $border_color;
365
box-shadow: inset 0 -2px $primary_color;
366
background-color: $base_color;
367
368
separator.vertical { margin: 8px 4px; }
369
370
button {
371
&.text-button, &.image-button, & {
372
margin-top: 8px;
373
margin-bottom: 8px;
374
padding: 0 4px;
375
}
376
}
377
378
// Close button styling for layouttab.
379
// > box > button.close { @extend %circular_button; }
380
}
381
382
layout {
383
border: 1px solid $border_color;
384
-PnlDockBin-handle-size: 1;
385
}
386
387
entry.search-missing {
388
background-color: $error_color;
389
color: $inverse_fg_color;
390
}
391
392
// tweak icons for treeviews
393
window.workbench treeview.image {
394
color: $secondary_fg_color;
395
396
&:selected { color: $inverse_secondary_fg_color; }
397
}
398
399
popover.popover-selector list {
400
padding: 8px - 2px;
401
402
row {
403
border-radius: 2px;
404
405
image {
406
&:dir(ltr) { margin-right: 6px; }
407
&:dir(rtl) { margin-left: 6px; }
408
}
409
410
.accel {
411
&:dir(ltr) { margin-left: 6px; }
412
&:dir(rtl) { margin-right: 6px; }
413
}
414
}
415
}
416
417
omnibar {
418
&.linked:not(.vertical) entry { border-radius: 2px; }
419
420
&:not(:hover):not(:active) entry { color: $secondary_fg_color; }
421
}
422
423
popover.omnibar list row:not(:last-child) {
424
border-bottom: 1px solid $border_color;
425
}
426
427
entry.preferences-search {
428
@extend %entry.flat;
429
430
box-shadow: inset 0 -1px $border_color;
431
background-color: $base_color;
432
433
// doesn't work properly
434
// &:dir(ltr) { border-right: 1px solid $border_color; }
435
// &:dir(rtl) { border-left: 1px solid $border_color; }
436
}
437
438
preferences stacksidebar.sidebar {
439
list { background-color: $lighter_bg_color; }
440
441
&:dir(ltr),
442
&:dir(rtl) { list { border-style: none; }}
443
444
list separator { @extend %hide_separators; }
445
}
446
447
preferences > box > box {
448
&:dir(ltr) { border-right: 1px solid $border_color; }
449
&:dir(rtl) { border-left: 1px solid $border_color; }
450
}
451
452
popover.messagepopover {
453
&.background { padding: 0; }
454
455
.popover-action-area button {
456
@extend %simple_flat_button;
457
458
padding: 8px 16px;
459
border-top: 1px solid $border_color;
460
border-radius: 0;
461
462
&:first-child { border-bottom-left-radius: 2px; }
463
464
&:last-child { border-bottom-right-radius: 2px; }
465
}
466
467
.popover-content-area { margin: 16px; }
468
}
469
470
popover.transfers list {
471
background-color: transparent;
472
473
row:not(:first-child) { border-top: 1px solid $border_color; }
474
475
row > box { padding: 10px; }
476
}
477
478
dockbin {
479
border: 1px solid $border_color;
480
-PnlDockBin-handle-size: 1;
481
}
482
483
dockpaned {
484
border: 1px solid $border_color;
485
}
486
487
eggsearchbar box.search-bar {
488
padding: 0 8px;
489
border-bottom: 1px solid $border_color;
490
background-color: $bg_color;
491
}
492
493
docktabstrip {
494
padding: 0 8px;
495
border-bottom: 1px solid $border_color;
496
background-color: $bg_color;
497
}
498
499
docktab {
500
transition: $longer_transition,
501
background-size 0,
502
background-image 0;
503
min-height: $small_size;
504
min-width: $small_size;
505
margin-bottom: -1px;
506
padding: $container_padding 6px;
507
508
outline-offset: -6px;
509
510
border-width: 1px; // for reorderable tabs
511
border-color: transparent; //
512
513
background-image: radial-gradient(circle farthest-corner at center,
514
$primary_color 10%,
515
transparent 0%);
516
background-repeat: no-repeat;
517
background-position: center;
518
background-size: 0% 0%;
519
520
color: $secondary_fg_color;
521
font-weight: 500;
522
523
&:hover {
524
box-shadow: inset 0 -2px $track_color;
525
color: $fg_color;
526
}
527
528
&:checked {
529
transition: $longer_transition,
530
background-size $longer_duration $deceleration_curve,
531
background-image $longer_duration + $ripple_duration $deceleration_curve;
532
box-shadow: inset 0 -2px $primary_color;
533
background-image: radial-gradient(circle farthest-corner at center,
534
transparent 10%,
535
transparent 0%);
536
background-size: 1000% 1000%;
537
color: $fg_color;
538
}
539
}
540
541
dockoverlayedge {
542
background-color: $bg_color;
543
544
docktabstrip {
545
padding: 0;
546
border: none;
547
}
548
549
&.left-edge docktab {
550
&:hover { box-shadow: inset -2px 0 $track_color; }
551
&:checked { box-shadow: inset -2px 0 $primary_color; }
552
}
553
554
&.right-edge docktab {
555
&:hover { box-shadow: inset 2px 0 $track_color; }
556
&:checked { box-shadow: inset 2px 0 $primary_color; }
557
}
558
}
559
560
pillbox {
561
background-color: $bg_color;
562
border-radius: 2px;
563
}
564
565
buildperspective row {
566
// padding: 10px;
567
}
568
569
layoutpane entry.search {
570
@extend %entry.flat;
571
572
box-shadow: inset 0 -1px $border_color;
573
background-color: $base_color;
574
}
575
576
editortweak entry.search {
577
@extend %entry.flat;
578
579
margin-bottom: -1px;
580
box-shadow: none;
581
}
582
583
//
584
// let's tweak hard-coded elements
585
//
586
587
.gb-search-entry-occurrences-tag {
588
box-shadow: none;
589
background-color: transparent;
590
}
591
592
// Keep search bar and layouttab height in sync.
593
// layouttabbar > box,
594
// eggsearchbar > revealer > box,
595
docktabstrip {
596
min-height: 39px;
597
}
598
599
eggsearchbar entry {
600
// min-height: 24px;
601
}
602
603
window.workbench preferences preferencesgroup list entry {
604
// background: none;
605
// min-height: 0px;
606
padding-top: 8px;
607
padding-bottom: 8px;
608
}
609
610
button.run-arrow-button {
611
// min-width: 12px;
612
padding-left: ($medium_size - 16px) / 2;
613
padding-right: ($medium_size - 16px) / 2;
614
}
615
616
//
617
// Additional styles for 3.26
618
//
619
620
button.dzlmenubutton image {
621
min-width: $medium_size - 6px;
622
623
&.arrow { min-width: $medium_size - 9px; }
624
}
625
626
button.dzlmenubuttonitem {
627
color: $fg_color;
628
font-weight: normal;
629
630
&:disabled { color: $disabled_fg_color; }
631
}
632
633
idelayoutstackheader {
634
border-bottom: 1px solid $border_color;
635
636
button:checked { color: $fg_color; }
637
}
638
639
// utilities stack switcher
640
ideeditorutilities > dzldockpaned > box > stackswitcher {
641
padding: 8px 0;
642
background-color: $bg_color;
643
644
&:dir(ltr) { border-right: 1px solid $border_color; }
645
646
&:dir(rtl) { border-left: 1px solid $border_color; }
647
648
button {
649
border-radius: 0;
650
outline-offset: -6px;
651
box-shadow: none;
652
background-color: transparent;
653
654
&:active {
655
background-image: radial-gradient(circle farthest-corner at center,
656
rgba($primary_color, 0.7) 10%,
657
transparent 0%);
658
}
659
660
&:checked {
661
background-color: transparent;
662
color: $fg_color;
663
}
664
665
&:dir(ltr) {
666
margin-right: -1px;
667
668
&:hover { box-shadow: inset -2px 0 $track_color; }
669
670
&:active,
671
&:checked { box-shadow: inset -2px 0 $primary_color; }
672
}
673
674
&:dir(rtl) {
675
margin-left: -1px;
676
677
&:hover { box-shadow: inset 2px 0 $track_color; }
678
679
&:active,
680
&:checked { box-shadow: inset 2px 0 $primary_color; }
681
}
682
}
683
}
684
685
// buildui panel
686
ideeditorsidebar notebook header {
687
background: transparent;
688
}
689
690
popover.messagepopover {
691
// padding: 0;
692
693
list {
694
border: 1px solid $border_color;
695
696
row:not(:last-child) { border-bottom: 1px solid $border_color; }
697
}
698
}
699
700
701
/**********
702
* Photos *
703
**********/
704
// based css:
705
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
706
707
GdMainIconView.content-view {
708
-GdMainIconView-icon-size: 48;
709
710
// Make spinner visible on both dark and bright backgrounds w/o making
711
// it look ugly/weird.
712
// &.cell:active { color: $hint_fg_color; }
713
}
714
715
.documents-counter {
716
margin: 8px;
717
border-radius: $circular_radius;
718
box-shadow: $shadow_2;
719
background-color: $accent_color;
720
color: $inverse_fg_color;
721
font-weight: bold;
722
}
723
724
.photos-entry-tag {
725
@extend .entry-tag;
726
}
727
728
.documents-scrolledwin.frame {
729
border-style: none;
730
731
frame.content-view > border { border-style: none; }
732
}
733
734
.photos-icon-bg {
735
}
736
737
.photos-fade-in {
738
opacity: 1;
739
transition: opacity $shorter_duration $deceleration_curve;
740
}
741
742
.photos-fade-out {
743
opacity: 0;
744
transition: opacity $shorter_duration $deceleration_curve;
745
}
746
747
.photos-collection-icon {
748
}
749
750
overlay grid.horizontal > revealer > scrolledwindow.frame {
751
&:dir(ltr) { border-style: none none none solid; }
752
&:dir(rtl) { border-style: none solid none none; }
753
}
754
755
756
/*********
757
* Music *
758
*********/
759
// hard-coded css:
760
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
761
762
.side-panel:dir(ltr) {
763
// border-width: 0 1px 0 0;
764
border-style: solid;
765
border-color: $border_color;
766
}
767
768
.side-panel:dir(rtl) {
769
// border-width: 0 0 0 1px;
770
border-style: solid;
771
border-color: $border_color;
772
}
773
774
.side-panel .view {
775
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
776
background-image: image($lighter_bg_color);
777
778
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
779
}
780
781
.side-panel .view:selected {
782
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
783
background-image: image($primary_color);
784
785
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
786
}
787
788
.songs-list {
789
// box-shadow: inset 0 -1px shade(@borders, 1.30);
790
// background-color: @theme_bg_color;
791
792
&:hover { background-image: image($row_fill_color); }
793
}
794
795
frame.documents-dropdown {
796
@extend toolbar.osd;
797
798
margin: 8px;
799
800
> border { border: none; }
801
}
802
803
box.vertical > revealer > toolbar.search-bar {
804
border-bottom: 1px solid $border_color;
805
background-clip: border-box; // avoid black border
806
807
button > widget {
808
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
809
// -GtkArrow-arrow-scaling: 1;
810
}
811
}
812
813
814
/*********
815
* To Do *
816
*********/
817
taskrow {
818
transition: $shorter_transition;
819
margin: 0 -8px;
820
821
&:hover { transition: none; }
822
823
label { margin: 0 8px; }
824
825
image { min-width: 16px; }
826
}
827
828
task-list-view > box > revealer > box > button {
829
margin: (12px * 2 - $medium_size) / 2;
830
}
831
832
833
/*******
834
* eog *
835
*******/
836
#eog-thumb-nav {
837
scrolledwindow { border-top: none; }
838
839
button { -gtk-outline-radius: 2px; }
840
}
841
842
843
/*************
844
* Evolution *
845
*************/
846
frame.taskbar > border { border-style: solid none none; }
847
848
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
849
850
851
/********
852
* gitg *
853
********/
854
frame.commit-frame > border { border-style: solid none none; }
855
856
857
/**************
858
* Characters *
859
**************/
860
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
861
862
list.categories { background-image: image($lighter_bg_color); }
863
864
865
/*********
866
* Boxes *
867
*********/
868
.transparent-bg + stack overlay > label {
869
min-height: 24px;
870
padding: 0 4px;
871
border-radius: $material_radius;
872
background-color: rgba($black, $lower_opacity);
873
color: $inverse_fg_color;
874
}
875
876
877
/**************
878
* Calculator *
879
**************/
880
button.title label { min-height: $medium_size; }
881
882
883
/*********
884
* Geary *
885
*********/
886
// fix a issue that separator seems double
887
.geary-titlebar-left {
888
&:dir(ltr) {
889
margin-right: 5px;
890
padding-right: 0;
891
}
892
893
&:dir(rtl) {
894
margin-left: 5px;
895
padding-left: 0;
896
}
897
898
> separator { background-color: rgba($black, 0.05); }
899
}
900
901
.geary-titlebar-right {
902
&:dir(ltr) { margin-left: -5px; }
903
904
&:dir(rtl) { margin-right: -5px; }
905
}
906