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 • 14.38 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
// Make operations button circular
104
.nautilus-window headerbar > revealer > button { @extend %circular_button; }
105
106
// Ensure paned separator rendering. See issue #84 for details.
107
.nautilus-window paned > separator { background-color: $bg_color; }
108
109
110
/*********
111
* gedit *
112
*********/
113
// based css:
114
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit.adwaita.css
115
// hard-coded css:
116
// https://git.gnome.org/browse/gedit/tree/gedit/resources/css/gedit-style.css
117
118
// Only normal state is handle
119
.open-document-selector-name-label {
120
font-weight: bold;
121
}
122
123
// Only normal state is handle
124
.open-document-selector-path-label {
125
color: $secondary_fg_color;
126
font-size: smaller;
127
128
&:selected { color: $inverse_secondary_fg_color; }
129
}
130
131
.gedit-document-panel {
132
background-color: $lighter_bg_color;
133
134
// Try to look as the notebook tab close button
135
row button.flat {
136
margin-top: 8px;
137
margin-bottom: 8px;
138
139
@extend %small_button;
140
}
141
}
142
143
.gedit-document-panel-group-row:not(:first-child) {
144
border-top: 1px solid $border_color;
145
}
146
147
.gedit-side-panel-paned statusbar {
148
border-top: 1px solid $border_color;
149
}
150
151
.gedit-search-slider {
152
margin: 4px 4px 8px;
153
154
entry {
155
&:dir(ltr),
156
&:dir(rtl) { // specificity bump
157
border-radius: 2px;
158
159
.gedit-search-entry-occurrences-tag {
160
all: unset;
161
color: $hint_fg_color;
162
}
163
}
164
165
$buttons_width: $small_size * 2 + $container_padding * 3;
166
167
&:dir(ltr) {
168
margin-right: -$buttons_width;
169
padding-right: $buttons_width;
170
171
.gedit-search-entry-occurrences-tag { margin-left: $container_padding; }
172
173
image.right { margin-right: 0; }
174
}
175
176
&:dir(rtl) {
177
margin-left: -$buttons_width;
178
padding-left: $buttons_width;
179
180
.gedit-search-entry-occurrences-tag { margin-right: $container_padding; }
181
182
image.left { margin-left: 0; }
183
}
184
185
&.error ~ button {
186
color: $inverse_secondary_fg_color;
187
188
&:hover, &:active { color: $inverse_fg_color; }
189
190
&:disabled { color: $inverse_disabled_secondary_fg_color; }
191
}
192
}
193
194
button {
195
border: solid $container_padding transparent;
196
197
@extend %simple_flat_button;
198
199
&:dir(ltr),
200
&:dir(rtl) { @extend %small_button; } // specificity bump
201
202
&:last-child:dir(ltr),
203
&:not(:first-child):dir(rtl) { margin-left: -$container_padding / 2; }
204
205
&:first-child:dir(rtl),
206
&:not(:last-child):dir(ltr) { margin-right: -$container_padding / 2; }
207
}
208
}
209
210
frame.gedit-map-frame > border {
211
&:dir(ltr) { border-style: none none none solid; }
212
&:dir(rtl) { border-style: none solid none none; }
213
}
214
215
216
/**************
217
* Tweak Tool *
218
**************/
219
// hard-coded css:
220
// https://git.gnome.org/browse/gnome-tweak-tool/tree/data/shell.css
221
222
// the sidebar
223
.tweak-categories {
224
// padding: 4px 0;
225
// background-color: shade(@theme_bg_color, 0.99);
226
background-image: image($lighter_bg_color);
227
228
separator { @extend %hide_separators; }
229
}
230
231
.tweak {
232
// padding-top: 3px;
233
padding: 3px;
234
235
&.title:hover { box-shadow: none; }
236
}
237
238
.tweak-group-white,
239
.tweak-white,
240
.tweak-white:hover {
241
// background-color: white;
242
background-image: image($base_color);
243
}
244
245
.tweak-startup,
246
.tweak-startup:hover {
247
// background-color: lighter(shade(@theme_bg_color, 0.9));
248
background-image: image($base_color);
249
}
250
251
.tweak-group-startup {
252
// background-color: @view_separators;
253
background-image: image($base_color);
254
border: 1px solid $border_color;
255
}
256
257
258
/***********
259
* Builder *
260
***********/
261
// based css:
262
// https://git.gnome.org/browse/gnome-builder/tree/data/theme
263
// hard-coded css:
264
// https://git.gnome.org/browse/gnome-builder/tree/data/theme/shared.css
265
266
// Titlebar adjustments for workbench
267
//
268
// This is needed due to our placement of headerbar inside of a
269
// stack. We were seeing black edges around the header bar, and
270
// improper radius on the headerbar.
271
//
272
workbench {
273
stack.titlebar {
274
padding: 0;
275
// box-shadow: none;
276
}
277
278
&:not(.tiled):not(.maximized):not(.fullscreen) stack.titlebar headerbar {
279
border-radius: 2px 2px 0 0;
280
// box-shadow: none;
281
}
282
}
283
284
perspectiveswitcher {
285
background-color: $bg_color;
286
287
button:checked { color: $primary_color; }
288
}
289
290
// Layout tab and tab bar tweaks
291
// The following makes the layout stack header look similar to a tab bar.
292
layouttabbar {
293
border-bottom: 1px solid $border_color;
294
background-color: $bg_color;
295
296
button { @extend %flat_button; }
297
298
> box > button {
299
margin: (40px - $medium_size) / 2 0;
300
// border-radius: 0;
301
}
302
}
303
304
layouttab {
305
margin: 0 8px; // not working
306
border-style: none solid;
307
border-width: 1px;
308
border-color: $border_color;
309
box-shadow: inset 0 -2px $primary_color;
310
background-color: $base_color;
311
312
separator.vertical { margin: 8px 4px; }
313
314
button {
315
&.text-button, &.image-button, & {
316
margin-top: 8px;
317
margin-bottom: 8px;
318
padding: 0 4px;
319
}
320
}
321
322
// Close button styling for layouttab.
323
// > box > button.close { @extend %circular_button; }
324
}
325
326
layout {
327
border: 1px solid $border_color;
328
-PnlDockBin-handle-size: 1;
329
}
330
331
entry.search-missing {
332
background-color: $error_color;
333
color: $inverse_fg_color;
334
}
335
336
// tweak icons for treeviews
337
workbench treeview.image {
338
color: $secondary_fg_color;
339
340
&:selected { color: $inverse_secondary_fg_color; }
341
}
342
343
dockbin {
344
border: 1px solid $border_color;
345
-PnlDockBin-handle-size: 1;
346
}
347
348
dockpaned {
349
border: 1px solid $border_color;
350
}
351
352
eggsearchbar box.search-bar {
353
padding: 0 8px;
354
border-bottom: 1px solid $border_color;
355
background-color: $bg_color;
356
}
357
358
docktabstrip {
359
padding: 0 8px;
360
border-bottom: 1px solid $border_color;
361
background-color: $bg_color;
362
}
363
364
docktab {
365
transition: $longer_transition,
366
background-size 0,
367
background-image 0;
368
min-height: $small_size;
369
min-width: $small_size;
370
margin-bottom: -1px;
371
padding: $container_padding 6px;
372
373
outline-offset: -6px;
374
375
border-width: 1px; // for reorderable tabs
376
border-color: transparent; //
377
378
background-image: radial-gradient(circle farthest-corner at center,
379
$primary_color 10%,
380
transparent 0%);
381
background-repeat: no-repeat;
382
background-position: center;
383
background-size: 0% 0%;
384
385
color: $secondary_fg_color;
386
font-weight: 500;
387
388
&:hover {
389
box-shadow: inset 0 -2px $track_color;
390
color: $fg_color;
391
}
392
393
&:checked {
394
transition: $longer_transition,
395
background-size $longer_duration $deceleration_curve,
396
background-image $longer_duration + $ripple_duration $deceleration_curve;
397
box-shadow: inset 0 -2px $primary_color;
398
background-image: radial-gradient(circle farthest-corner at center,
399
transparent 10%,
400
transparent 0%);
401
background-size: 1000% 1000%;
402
color: $fg_color;
403
}
404
}
405
406
dockoverlayedge {
407
background-color: $bg_color;
408
409
docktabstrip {
410
padding: 0;
411
border: none;
412
}
413
414
&.left-edge docktab {
415
&:hover { box-shadow: inset -2px 0 $track_color; }
416
&:checked { box-shadow: inset -2px 0 $primary_color; }
417
}
418
419
&.right-edge docktab {
420
&:hover { box-shadow: inset 2px 0 $track_color; }
421
&:checked { box-shadow: inset 2px 0 $primary_color; }
422
}
423
}
424
425
pillbox {
426
background-color: $bg_color;
427
border-radius: 2px;
428
}
429
430
buildperspective row {
431
padding: 10px;
432
}
433
434
layoutpane entry.search {
435
@extend %entry.flat;
436
437
box-shadow: inset 0 -1px $border_color;
438
background-color: $base_color;
439
}
440
441
editortweak entry.search {
442
@extend %entry.flat;
443
444
margin-bottom: -1px;
445
box-shadow: none;
446
}
447
448
//
449
// let's tweak hard-coded elements
450
//
451
452
// styling for editor search
453
frame.gb-search-frame {
454
// border-bottom-left-radius: 5px;
455
border-bottom-right-radius: 5px;
456
}
457
458
.gb-search-entry-occurrences-tag {
459
box-shadow: none;
460
background-color: transparent;
461
}
462
463
// Keep search bar and layouttab height in sync.
464
// layouttabbar > box,
465
// eggsearchbar > revealer > box,
466
docktabstrip {
467
min-height: 39px;
468
}
469
470
eggsearchbar entry {
471
// min-height: 24px;
472
}
473
474
workbench preferences preferencesgroup list entry {
475
// background: none;
476
// min-height: 0px;
477
padding-top: 8px;
478
padding-bottom: 8px;
479
}
480
481
482
/**********
483
* Photos *
484
**********/
485
// based css:
486
// https://git.gnome.org/browse/gnome-photos/tree/data/Adwaita.css
487
488
GdMainIconView.content-view {
489
-GdMainIconView-icon-size: 48;
490
491
// Make spinner visible on both dark and bright backgrounds w/o making
492
// it look ugly/weird.
493
// &.cell:active { color: $hint_fg_color; }
494
}
495
496
.documents-counter {
497
margin: 8px;
498
border-radius: $circular_radius;
499
box-shadow: $shadow_2;
500
background-color: $accent_color;
501
color: $inverse_fg_color;
502
font-weight: bold;
503
}
504
505
.photos-entry-tag {
506
@extend .entry-tag;
507
}
508
509
.documents-scrolledwin.frame {
510
border-style: none;
511
}
512
513
.photos-icon-bg {
514
}
515
516
.photos-fade-in {
517
opacity: 1;
518
transition: opacity $shorter_duration $deceleration_curve;
519
}
520
521
.photos-fade-out {
522
opacity: 0;
523
transition: opacity $shorter_duration $deceleration_curve;
524
}
525
526
.photos-collection-icon {
527
}
528
529
overlay grid.horizontal > revealer > scrolledwindow.frame {
530
&:dir(ltr) { border-style: none none none solid; }
531
&:dir(rtl) { border-style: none solid none none; }
532
}
533
534
535
/*********
536
* Music *
537
*********/
538
// hard-coded css:
539
// https://git.gnome.org/browse/gnome-music/tree/data/application.css
540
541
.side-panel:dir(ltr) {
542
// border-width: 0 1px 0 0;
543
border-style: solid;
544
border-color: $border_color;
545
}
546
547
.side-panel:dir(rtl) {
548
// border-width: 0 0 0 1px;
549
border-style: solid;
550
border-color: $border_color;
551
}
552
553
.side-panel .view {
554
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.9);
555
background-image: image($lighter_bg_color);
556
557
&:hover { background-image: image(mix($fg_color, $lighter_bg_color, percentage(0.05))); }
558
}
559
560
.side-panel .view:selected {
561
// background-color: mix(@theme_fg_color, @theme_bg_color, 0.5);
562
background-image: image($primary_color);
563
564
&:hover { background-image: image(mix($inverse_fg_color, $primary_color, percentage(0.05))); }
565
}
566
567
.playlists-list {
568
// box-shadow: inset 0 -1px @view_separators;
569
}
570
571
.songs-list {
572
// box-shadow: inset 0 1px shade(@borders, 1.30);
573
// background-color: @theme_bg_color;
574
575
&:hover { background-image: image($row_fill_color); }
576
}
577
578
frame.documents-dropdown {
579
@extend toolbar.osd;
580
581
margin: 8px;
582
583
> border { border: none; }
584
}
585
586
box.vertical:not(.titlebar) > revealer > toolbar.search-bar {
587
border-bottom: 1px solid $border_color;
588
589
button > widget {
590
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
591
// -GtkArrow-arrow-scaling: 1;
592
}
593
}
594
595
596
/*********
597
* To Do *
598
*********/
599
task-row {
600
transition: $shorter_transition;
601
margin: 0 -4px;
602
603
&:hover { transition: none; }
604
605
label { margin: 0 8px; }
606
607
image { margin: 0 4px; }
608
}
609
610
task-list-view > box > revealer > box > button {
611
min-height: $medium_size;
612
margin: -4px;
613
padding: 0 12px;
614
615
label { margin: 0 8px; }
616
617
image { margin: 0 4px; }
618
}
619
620
621
/*******
622
* eog *
623
*******/
624
#eog-thumb-nav {
625
scrolledwindow { border-top: none; }
626
627
button { -gtk-outline-radius: 2px; }
628
}
629
630
631
/*************
632
* Evolution *
633
*************/
634
frame.taskbar > border { border-style: solid none none; }
635
636
box.vertical > paned.horizontal notebook widget .frame { border-style: none; }
637
638
639
/********
640
* gitg *
641
********/
642
frame.commit-frame > border { border-style: solid none none; }
643
644
645
/**************
646
* Characters *
647
**************/
648
box.dialog-vbox scrolledwindow.related { border: 1px solid $border_color; }
649
650
list.categories { background-image: image($lighter_bg_color); }
651
652
653
/*********
654
* Boxes *
655
*********/
656
.transparent-bg + stack overlay > label {
657
min-height: 24px;
658
padding: 0 4px;
659
border-radius: $material_radius;
660
background-color: rgba($black, $lower_opacity);
661
color: $inverse_fg_color;
662
}
663
664
665
/**************
666
* Calculator *
667
**************/
668
button.title label { min-height: $medium_size; }
669
670
671
/*********
672
* Geary *
673
*********/
674
// fix a issue that separator seems double
675
.geary-titlebar-left {
676
&:dir(ltr) {
677
margin-right: 5px;
678
padding-right: 0;
679
}
680
681
&:dir(rtl) {
682
margin-left: 5px;
683
padding-left: 0;
684
}
685
686
> separator { background-color: rgba($black, 0.05); }
687
}
688
689
.geary-titlebar-right {
690
&:dir(ltr) { margin-left: -5px; }
691
692
&:dir(rtl) { margin-right: -5px; }
693
}
694