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.

 _mate.scss

View raw Download
text/plain • 7.48 kiB
ASCII text
        
            
1
// based css:
2
// https://github.com/mate-desktop/mate-themes/blob/master/desktop-themes/Menta/gtk-3.0/mate-applications.css
3
4
/**************
5
* Mate-Panel *
6
**************/
7
// first make all transparent
8
.mate-panel-menu-bar menubar,
9
#PanelApplet-window-menu-applet-button {
10
background-color: transparent;
11
}
12
13
// let's start it
14
.mate-panel-menu-bar {
15
background-color: $solid_panel_bg_color;
16
color: $inverse_secondary_fg_color;
17
font-weight: 500;
18
19
button {
20
@extend %flat_button;
21
@extend %button_selected.flat;
22
23
min-height: 16px;
24
min-width: 16px;
25
padding: 0; // NOTE: Most buttons padding are hard-coded to 0 (except hide buttons)
26
border-radius: 0;
27
28
&:checked { background-color: $inverse_divider_color; }
29
}
30
}
31
32
// hide buttons
33
PanelToplevel.horizontal > grid > button {
34
min-width: 24px;
35
}
36
37
PanelToplevel.vertical > grid > button {
38
min-height: 24px;
39
}
40
41
#PanelApplet {
42
// border-width: 0;
43
}
44
45
PanelSeparator {
46
color: $inverse_divider_color;
47
}
48
49
// the grid left from na-tray and wncktasklist
50
MatePanelAppletFrameDBus {
51
border-style: solid;
52
border-color: $inverse_divider_color;
53
54
.mate-panel-menu-bar.horizontal & { border-width: 0 1px; }
55
.mate-panel-menu-bar.vertical & { border-width: 1px 0; }
56
}
57
58
// main menu
59
.mate-panel-menu-bar {
60
// set normal menubar button
61
&.horizontal menubar > menuitem { padding: 0 8px; }
62
&.vertical menubar > menuitem { padding: 8px 0; }
63
64
// set normal menubar menuitem
65
menubar menu > menuitem {
66
// adjust sizing since the menuitem has large icons
67
min-height: $menuitem_size;
68
padding: 0 6px;
69
// font-weight: initial;
70
}
71
}
72
73
// all applets
74
.mate-panel-menu-bar #PanelApplet button {
75
-GtkWidget-window-dragging: true;
76
// padding: 4px;
77
}
78
79
#tasklist-button {
80
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
81
currentColor 0%,
82
transparent 0%)
83
0 0 0 / 0 0 0px;
84
85
&:checked {
86
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
87
currentColor 100%,
88
transparent 0%)
89
0 0 2 / 0 0 2px;
90
}
91
92
// instead of #tasklist-button { padding: 0 4px; }
93
image:dir(ltr), label:dir(rtl) { padding-left: 4px; }
94
label:dir(ltr), image:dir(rtl) { padding-right: 4px; }
95
96
// #tasklist-button is always horizontal even if the panel is vertical
97
.mate-panel-menu-bar.vertical & { min-height: 32px; }
98
}
99
100
#showdesktop-button {
101
.mate-panel-menu-bar.horizontal & image {
102
min-width: 24px;
103
padding: 0 4px;
104
}
105
106
.mate-panel-menu-bar.vertical & image {
107
min-height: 24px;
108
padding: 4px 0;
109
}
110
}
111
112
// WnckPager
113
PanelApplet.wnck-applet .wnck-pager {
114
background-color: transparent;
115
color: $alt_primary_color;
116
117
&:hover { background-color: $inverse_divider_color; }
118
119
&:active { background-color: $inverse_track_color; }
120
121
&:selected { background-color: $primary_color; }
122
}
123
124
#clock-applet-button {
125
.mate-panel-menu-bar.horizontal & label { padding: 0 8px; }
126
.mate-panel-menu-bar.vertical & label { padding: 8px 0; }
127
}
128
129
#MatePanelPopupWindow {
130
border: 1px solid $border_color;
131
border-radius: $material_radius + 1px;
132
box-shadow: inset 0 1px $highlight_color;
133
134
frame > border { border-style: none; }
135
136
button { padding: 4px 16px; }
137
138
// FIXME, does not work
139
ClockMap { border: 1px solid $border_color; }
140
141
// Instead, this works
142
widget { color: $border_color; }
143
}
144
145
na-tray-applet {
146
-NaTrayApplet-icon-padding: 3px;
147
-NaTrayApplet-icon-size: 16;
148
}
149
150
// remove right space a bit
151
na-tray-applet > widget > box {
152
// margin-right: 2px;
153
}
154
155
// no background for icon-padding area
156
na-tray-applet widget box widget {
157
// background-color: transparent;
158
}
159
160
// Classic icon style
161
.mate-panel-menu-bar {
162
-PanelMenuBar-icon-visible: true;
163
}
164
165
// volume applet, brightness applet
166
.mate-panel-applet-slider {
167
border: 1px solid $border_color;
168
border-radius: $material_radius + 1px;
169
box-shadow: inset 0 1px $highlight_color;
170
background-color: $bg_color;
171
172
frame > border { border-style: none; }
173
}
174
175
// mate-menu
176
177
// mimic menubar menuitem style
178
#PanelApplet {
179
&:not(:selected) > box { transition: $shorter_transition; }
180
181
&:selected > box {
182
background-color: $inverse_divider_color;
183
color: $inverse_fg_color;
184
}
185
}
186
187
#mate-menu {
188
// FIXME, does not work
189
border: 1px solid $border_color;
190
191
button {
192
@extend %simple_flat_button;
193
194
min-height: 24px;
195
min-width: 24px;
196
padding: 4px 0;
197
color: $fg_color;
198
font-weight: normal;
199
200
label:not(:first-child) { color: $secondary_fg_color; }
201
}
202
203
entry {
204
margin: 0 0 8px;
205
206
image { margin: 0; }
207
208
+ button {
209
margin: 0 4px 8px;
210
padding: ($medium_size - 24px) / 2;
211
}
212
}
213
}
214
215
216
/*********************
217
* CAJA File manager *
218
*********************/
219
// pathpar toggle button
220
.caja-navigation-window button.toggle.image-button {
221
border-radius: $material_radius;
222
}
223
224
// pathbar
225
// pathbar buttons
226
.caja-pathbar button {
227
margin: 0 -1px 0 -2px;
228
// padding: 4px;
229
230
@extend %pathbar_button;
231
232
// arrow button
233
> widget {
234
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
235
-GtkArrow-arrow-scaling: 1;
236
}
237
}
238
239
// places, treeview, history, information, emblems and notes
240
// .caja-side-pane notebook treeview.view,
241
// .caja-side-pane notebook textview.view text,
242
.caja-side-pane notebook viewport.frame,
243
.caja-side-pane notebook widget .vertical {
244
background-color: $base_color;
245
}
246
247
// treeview rows
248
.caja-side-pane treeview.view {
249
// padding: 2px 0;
250
}
251
252
.caja-side-pane notebook,
253
.caja-notebook {
254
border-top: 1px solid $border_color;
255
256
.frame { border-style: none; }
257
}
258
259
// window and desktop mode
260
.caja-canvas-item {
261
// border-radius: $material_radius;
262
}
263
264
// desktop mode
265
.caja-desktop.caja-canvas-item {
266
@extend .nautilus-desktop.nautilus-canvas-item;
267
}
268
269
.caja-desktop EelEditableLabel.entry {
270
}
271
272
// statusbar
273
.caja-navigation-window statusbar {
274
margin: 0 -10px;
275
padding: 0 4px;
276
border-top: 1px solid $border_color;
277
}
278
279
// infobar
280
.caja-notebook frame > border {
281
border-style: none;
282
}
283
284
#caja-extra-view-widget {
285
border-bottom: 1px solid $border_color;
286
background-color: $bg_color; // needs overriding
287
288
> box > box > label { font-weight: bold; }
289
}
290
291
292
/*********
293
* Pluma *
294
*********/
295
// Pluma status bar
296
.pluma-window statusbar {
297
margin: 0 -10px;
298
padding: 0 4px;
299
border-top: 1px solid $border_color;
300
301
frame {
302
> border { border-style: none; }
303
304
button.flat {
305
padding: 0 4px;
306
border-radius: 0;
307
308
widget {
309
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
310
-GtkArrow-arrow-scaling: 1;
311
}
312
}
313
}
314
}
315
316
// Printpreview
317
.pluma-print-preview {
318
toolbar { border-bottom: 1px solid $border_color; }
319
320
// scrolledwindow { background-color: $base_color; }
321
}
322
323
// sidebar file-browser
324
.pluma-window paned.horizontal box.vertical {
325
box.horizontal button.flat {
326
margin: 1px;
327
328
@extend %small_button;
329
}
330
331
.frame { border-style: none; }
332
333
notebook.frame {
334
margin-top: -1px;
335
border-top: 1px solid $border_color;
336
337
box.vertical toolbar.horizontal { border-bottom: 1px solid $border_color; }
338
}
339
}
340
341
342
/*********
343
* Atril *
344
*********/
345
.atril-window paned.horizontal box.vertical {
346
.frame { border-style: none; }
347
348
notebook .frame { border-top: 1px solid $border_color; }
349
}
350
351
352
/* mate-screensaver lock dialog */
353
.lock-dialog {
354
border-radius: $material_radius;
355
// not sure if box-shadow works here
356
box-shadow: $shadow_4, inset 0 1px $highlight_color;
357
358
frame > border { border-style: none; }
359
}
360