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