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