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