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 • 6.62 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
173
/*********************
174
* CAJA File manager *
175
*********************/
176
// pathpar toggle button
177
.caja-navigation-window button.toggle.image-button {
178
border-radius: $material_radius;
179
}
180
181
// pathbar
182
// pathbar buttons
183
.caja-pathbar button {
184
margin: 0 -1px 0 -2px;
185
// padding: 4px;
186
187
@extend %pathbar_button;
188
189
// arrow button
190
> widget {
191
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
192
-GtkArrow-arrow-scaling: 1;
193
}
194
}
195
196
// places, treeview, history, information, emblems and notes
197
// .caja-side-pane notebook treeview.view,
198
// .caja-side-pane notebook textview.view text,
199
.caja-side-pane notebook viewport.frame,
200
.caja-side-pane notebook widget .vertical {
201
background-color: $base_color;
202
}
203
204
// treeview rows
205
.caja-side-pane treeview.view {
206
// padding: 2px 0;
207
}
208
209
.caja-side-pane notebook,
210
.caja-notebook {
211
border-top: 1px solid $border_color;
212
213
.frame { border-style: none; }
214
}
215
216
// window and desktop mode
217
.caja-canvas-item {
218
// border-radius: $material_radius;
219
}
220
221
// desktop mode
222
.caja-desktop.caja-canvas-item {
223
@extend .nautilus-desktop.nautilus-canvas-item;
224
}
225
226
.caja-desktop EelEditableLabel.entry {
227
}
228
229
// statusbar
230
.caja-navigation-window statusbar {
231
margin: 0 -10px;
232
padding: 0 4px;
233
border-top: 1px solid $border_color;
234
}
235
236
// infobar
237
.caja-notebook frame > border {
238
border-style: none;
239
}
240
241
#caja-extra-view-widget {
242
border-bottom: 1px solid $border_color;
243
background-color: $bg_color; // needs overriding
244
245
> box > box > label { font-weight: bold; }
246
}
247
248
249
/*********
250
* Pluma *
251
*********/
252
// Pluma status bar
253
.pluma-window statusbar {
254
margin: 0 -10px;
255
padding: 0 4px;
256
border-top: 1px solid $border_color;
257
258
frame {
259
> border { border-style: none; }
260
261
button.flat {
262
padding: 0 4px;
263
border-radius: 0;
264
265
widget {
266
-gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
267
-GtkArrow-arrow-scaling: 1;
268
}
269
}
270
}
271
}
272
273
// Printpreview
274
.pluma-print-preview {
275
toolbar { border-bottom: 1px solid $border_color; }
276
277
// scrolledwindow { background-color: $base_color; }
278
}
279
280
// sidebar file-browser
281
.pluma-window paned.horizontal box.vertical {
282
box.horizontal button.flat {
283
margin: 1px;
284
285
@extend %small_button;
286
}
287
288
.frame { border-style: none; }
289
290
notebook.frame {
291
margin-top: -1px;
292
border-top: 1px solid $border_color;
293
294
box.vertical toolbar.horizontal { border-bottom: 1px solid $border_color; }
295
}
296
}
297
298
299
/*********
300
* Atril *
301
*********/
302
.atril-window paned.horizontal box.vertical {
303
.frame { border-style: none; }
304
305
notebook .frame { border-top: 1px solid $border_color; }
306
}
307
308
309
/* mate-screensaver lock dialog */
310
.lock-dialog {
311
border-radius: $material_radius;
312
// not sure if box-shadow works here
313
box-shadow: $shadow_4, inset 0 1px $highlight_color;
314
315
frame > border { border-style: none; }
316
}
317