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