5 <author>Darkomarko42</author>
6 <copyright>Â Darkomarko42, 2019</copyright>
7 <date>Oct 24, 2019</date>
8 <description>Marwaita metacity theme v2.0</description>
11 <!-- meaningfull constants -->
13 <constant name="C_border_focused" value="gtk:custom(m_border,gtk:bg[NORMAL])" />
14 <constant name="C_border_unfocused" value="gtk:custom(m_border,gtk:bg[NORMAL])" />
15 <constant name="C_titlebar_focused_hilight" value="gtk:custom(metacity_theme,gtk:bg[NORMAL])" />
16 <constant name="C_titlebar_unfocused" value="gtk:custom(metacity_theme,gtk:bg[NORMAL])" />
17 <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
18 <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[NORMAL])" />
20 <constant name="C_icons_fg_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
21 <constant name="C_icons_bg_focused_prelight" value="gtk:custom(m_button,gtk:bg[NORMAL])" />
22 <constant name="C_icons_bg_focused_pressed" value="gtk:custom(m_button_active,gtk:bg[NORMAL])" />
24 <constant name="C_icons_fg_c_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
25 <constant name="C_icons_bg_c_focused_prelight" value="gtk:custom(m_button,gtk:bg[NORMAL])" />
26 <constant name="C_icons_bg_c_focused_pressed" value="gtk:custom(m_button_active,gtk:bg[NORMAL])" />
28 <constant name="C_icons_fg_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[NORMAL])" />
31 <!--<constant name="C_border_focused" value="blend/#000000/gtk:bg[NORMAL]/0.7" />
32 <constant name="C_border_unfocused" value="blend/#000000/gtk:bg[NORMAL]/0.8" />
33 <constant name="C_titlebar_focused_hilight" value="gtk:custom(wm_highlight,gtk:base[NORMAL])" />
34 <constant name="C_titlebar_unfocused" value="blend/gtk:base[NORMAL]/gtk:bg[NORMAL]/0.4" />
35 <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
36 <constant name="C_title_focused_hilight" value="gtk:custom(wm_borders_edge,gtk:base[NORMAL])" />
37 <constant name="C_title_focused_hilight_dark" value="gtk:custom(wm_borders_edge,gtk:bg[NORMAL])" />
38 <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[INSENSITIVE])" />
40 <!-- color of the button icons -->
41 <!--<constant name="C_icons_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
42 <constant name="C_icons_pressed" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />-->
43 <constant name="C_icons_unfocused" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
44 <constant name="C_icons_unfocused_prelight" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
45 <constant name="C_icons_unfocused_pressed" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
46 <constant name="C_icons_shadow" value="gtk:custom(wm_borders_edge,gtk:base[NORMAL])" />
47 <constant name="C_separator" value="blend/#000000/gtk:bg[NORMAL]/0.9" />
48 <constant name="D_icons_unfocused_offset" value="0" /> <!-- offset of the unfocused icons -->
49 <constant name="D_icons_shrink" value="0" /> <!-- increasing this value makes the icons in buttons smaller -->
50 <constant name="D_icons_grow" value="0" /> <!-- increasing this value makes the icons in buttons bigger -->
52 <constant name="ISquare" value="10"/>
54 <!-- define constants -->
55 <constant name="XPad" value="8"/>
56 <constant name="YPad" value="6"/>
57 <constant name="BtnPad" value="6"/>
58 <constant name="IconTitleSpacing" value="6"/>
59 <constant name="ButtonIPad" value="4"/>
64 <frame_geometry name="normal">
65 <distance name="left_width" value="1"/>
66 <distance name="right_width" value="1"/>
67 <distance name="bottom_height" value="1"/>
68 <distance name="left_titlebar_edge" value="1"/>
69 <distance name="right_titlebar_edge" value="1"/>
70 <distance name="button_width" value="32"/>
71 <distance name="button_height" value="32"/>
72 <distance name="title_vertical_pad" value="0"/>
73 <border name="title_border" left="0" right="0" top="0" bottom="0"/>
74 <border name="button_border" left="1" right="0" top="1" bottom="1"/>
77 <!-- strip borders off the normal geometry -->
78 <frame_geometry name="normal_small_borders" parent="normal">
79 <distance name="left_width" value="1"/>
80 <distance name="right_width" value="1"/>
81 <distance name="bottom_height" value="1"/>
82 <distance name="left_titlebar_edge" value="1"/>
83 <distance name="right_titlebar_edge" value="1"/>
87 <frame_geometry name="utility" title_scale="x-small">
88 <distance name="left_width" value="1"/>
89 <distance name="right_width" value="1"/>
90 <distance name="bottom_height" value="1"/>
91 <distance name="left_titlebar_edge" value="1"/>
92 <distance name="right_titlebar_edge" value="1"/>
93 <distance name="button_width" value="24"/>
94 <distance name="button_height" value="24"/>
95 <distance name="title_vertical_pad" value="0"/>
96 <border name="title_border" left="0" right="0" top="0" bottom="0"/>
97 <border name="button_border" left="1" right="0" top="1" bottom="1"/>
100 <frame_geometry name="border" has_title="false">
101 <distance name="left_width" value="1"/>
102 <distance name="right_width" value="1"/>
103 <distance name="bottom_height" value="1"/>
104 <distance name="left_titlebar_edge" value="0"/>
105 <distance name="right_titlebar_edge" value="0"/>
106 <distance name="button_width" value="0"/>
107 <distance name="button_height" value="0"/>
108 <distance name="title_vertical_pad" value="0"/>
109 <border name="title_border" left="0" right="0" top="0" bottom="0"/>
110 <border name="button_border" left="0" right="0" top="0" bottom="0"/>
115 <!-- window focused -->
116 <draw_ops name="draw_titlebar1">
117 <rectangle color="C_titlebar_focused_hilight" x="0" y="0" width="width" height="height" filled="true"/>
118 <line color="C_border_focused" x1="0" y1="0" x2="0" y2="height"/>
119 <line color="C_border_focused" x1="0" y1="0" x2="width" y2="0"/>
120 <line color="C_border_focused" x1="width-1" y1="0" x2="width-1" y2="height"/>
123 <draw_ops name="draw_ledge1">
124 <line color="C_border_focused" x1="0" y1="0" x2="0" y2="height"/>
127 <draw_ops name="draw_redge1">
128 <line color="C_border_focused" x1="width-1" y1="0" x2="width-1" y2="height"/>
131 <draw_ops name="draw_bottomedge1">
132 <line color="C_border_focused" x1="0" y1="0" x2="width" y2="height-1"/>
136 <!-- window unfocused -->
137 <draw_ops name="draw_titlebar0">
138 <rectangle color="C_titlebar_unfocused" x="0" y="0" width="width" height="height" filled="true"/>
139 <line color="C_border_unfocused" x1="0" y1="0" x2="0" y2="height"/>
140 <line color="C_border_unfocused" x1="0" y1="0" x2="width" y2="0"/>
141 <line color="C_border_unfocused" x1="width-1" y1="0" x2="width-1" y2="height-1"/>
144 <draw_ops name="draw_ledge0">
145 <line color="C_border_unfocused" x1="0" y1="0" x2="0" y2="height"/>
148 <draw_ops name="draw_redge0">
149 <line color="C_border_unfocused" x1="width-1" y1="0" x2="width-1" y2="height"/>
152 <draw_ops name="draw_bottomedge0">
153 <line color="C_border_unfocused" x1="0" y1="height-1" x2="width" y2="height-1"/>
156 <draw_ops name="blank">
161 <draw_ops name="title_text">
162 <!--<clip x="0" y="0" width="width-SpacerWidth" height="height"/>-->
163 <title color="C_title_focused"
164 x="(0 `max` ((frame_x_center - title_width/2) `min` (width - title_width)))"
165 y="(0 `max` ((height - title_height) / 2)) + 1"/>
168 <draw_ops name="title_text0">
169 <!--<clip x="0" y="0" width="width-SpacerWidth" height="height"/>-->
170 <title color="C_title_unfocused"
171 x="(0 `max` ((frame_x_center - title_width/2) `min` (width - title_width)))"
172 y="(0 `max` ((height - title_height) / 2)) + 1"/>
175 <draw_ops name="title_normal">
176 <include name="title_text"/>
177 <!--<rectangle color="#00ff00" x="1" y="1" width="width-1" height="height-1" filled="true"/>-->
180 <draw_ops name="title_focused">
181 <include name="title_text"/>
184 <draw_ops name="title_utility">
185 <include name="title_text"/>
188 <draw_ops name="title_utility_focused">
189 <include name="title_text"/>
194 <!-- Buttons background -->
195 <draw_ops name="button_prelight_bg">
196 <rectangle color="C_icons_bg_focused_prelight" filled="true" x="0" y="0" width="width" height="height"/>
199 <draw_ops name="button_pressed_bg">
200 <rectangle color="C_icons_bg_focused_pressed" filled="true" x="0" y="0" width="width" height="height"/>
203 <draw_ops name="close_button">
204 <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
207 <draw_ops name="close_button1">
208 <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
211 <draw_ops name="close_button_unfocused">
212 <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
215 <draw_ops name="close_button_normal">
216 <include name="close_button"/>
219 <draw_ops name="close_button_prelight">
220 <rectangle color="C_icons_bg_c_focused_prelight" filled="true" x="0" y="0" width="width" height="height"/>
221 <include name="close_button1"/>
224 <draw_ops name="close_button_pressed">
225 <rectangle color="C_icons_bg_c_focused_pressed" filled="true" x="0" y="0" width="width" height="height"/>
226 <include name="close_button1"/>
230 <draw_ops name="minimize_button">
231 <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
233 <draw_ops name="minimize_button_unfocused">
234 <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
236 <draw_ops name="minimize_button_pressed">
237 <include name="button_pressed_bg"/>
238 <include name="minimize_button"/>
240 <draw_ops name="minimize_button_prelight">
241 <include name="button_prelight_bg"/>
242 <include name="minimize_button"/>
246 <draw_ops name="maximize_button">
247 <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
249 <draw_ops name="maximize_button_unfocused">
250 <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
253 <draw_ops name="maximize_button_pressed">
254 <include name="button_pressed_bg"/>
255 <include name="maximize_button"/>
258 <draw_ops name="maximize_button_prelight">
259 <include name="button_prelight_bg"/>
260 <include name="maximize_button" />
264 <draw_ops name="restore_button_unfocused">
265 <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
269 <draw_ops name="restore_button">
270 <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
274 <draw_ops name="restore_button_pressed">
275 <include name="button_pressed_bg"/>
276 <include name="restore_button"/>
278 <draw_ops name="restore_button_prelight">
279 <include name="button_prelight_bg"/>
280 <include name="restore_button"/>
286 <draw_ops name="menu_button">
289 width="width-12" height="height-12"/>
292 <draw_ops name="menu_button_pressed">
293 <include name="menu_button"/>
297 <draw_ops name="focus_outline">
306 <frame_style name="normal_focused" geometry="normal">
307 <piece position="title" draw_ops="title_focused"/>
308 <piece position="titlebar" draw_ops="draw_titlebar1"/>
309 <piece position="left_edge" draw_ops="draw_ledge1"/>
310 <piece position="right_edge" draw_ops="draw_redge1"/>
311 <piece position="bottom_edge" draw_ops="draw_bottomedge1"/>
312 <!-- we don't specify for prelight, so normal is used -->
313 <button function="close" state="normal" draw_ops="close_button_normal"/>
314 <button function="close" state="prelight" draw_ops="close_button_prelight"/>
315 <button function="close" state="pressed" draw_ops="close_button_pressed"/>
316 <button function="minimize" state="normal" draw_ops="minimize_button"/>
317 <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
318 <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
319 <button function="maximize" state="normal" draw_ops="maximize_button"/>
320 <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
321 <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
322 <button function="menu" state="normal" draw_ops="menu_button"/>
323 <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
327 <frame_style name="normal_unfocused" geometry="normal" parent="normal_focused">
328 <piece position="title" draw_ops="title_text0"/>
329 <piece position="titlebar" draw_ops="draw_titlebar0"/>
330 <piece position="left_edge" draw_ops="draw_ledge0"/>
331 <piece position="right_edge" draw_ops="draw_redge0"/>
332 <piece position="bottom_edge" draw_ops="draw_bottomedge0"/>
333 <button function="close" state="normal" draw_ops="close_button_unfocused"/>
334 <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
335 <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
338 <frame_style name="shaded_focused" geometry="normal" parent="normal_unfocused">
339 <piece position="title" draw_ops="title_focused"/>
342 <frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
343 <piece position="entire_background" draw_ops="blank"/>
344 <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
345 <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
346 <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
349 <frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
350 <button function="maximize" state="normal" draw_ops="restore_button"/>
351 <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
352 <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
355 <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
356 <piece position="title" draw_ops="title_utility"/>
359 <frame_style name="utility_focused" geometry="utility" parent="normal_focused">
360 <piece position="title" draw_ops="title_utility_focused"/>
363 <frame_style name="border" geometry="border" parent="normal_unfocused">
364 <piece position="title" draw_ops="blank"/>
367 <frame_style_set name="normal">
368 <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
369 <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
370 <frame focus="yes" state="maximized" style="maximized_focused"/>
371 <frame focus="no" state="maximized" style="maximized_unfocused"/>
372 <frame focus="yes" state="shaded" style="shaded_focused"/>
373 <frame focus="no" state="shaded" style="normal_unfocused"/>
374 <frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
375 <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
378 <frame_style_set name="utility" parent="normal">
379 <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
380 <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
381 <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
382 <frame focus="yes" state="maximized" style="utility_focused"/>
383 <frame focus="no" state="maximized" style="utility_unfocused"/>
384 <frame focus="yes" state="shaded" style="utility_focused"/>
385 <frame focus="no" state="shaded" style="utility_unfocused"/>
386 <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
387 <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
390 <frame_style_set name="border" parent="normal">
391 <frame focus="yes" state="normal" resize="both" style="border"/>
392 <frame focus="no" state="normal" resize="both" style="border"/>
393 <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
394 <frame focus="yes" state="maximized" style="utility_focused"/>
395 <frame focus="no" state="maximized" style="utility_unfocused"/>
396 <frame focus="yes" state="shaded" style="utility_focused"/>
397 <frame focus="no" state="shaded" style="utility_unfocused"/>
398 <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
399 <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
402 <window type="normal" style_set="normal"/>
403 <window type="dialog" style_set="normal"/>
404 <window type="modal_dialog" style_set="normal"/>
405 <window type="menu" style_set="normal"/>
406 <window type="utility" style_set="utility"/>
407 <window type="border" style_set="border"/>
409 <menu_icon function="close" state="normal" draw_ops="close_button"/>
410 <menu_icon function="maximize" state="normal" draw_ops="maximize_button"/>
411 <menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/>
412 <menu_icon function="minimize" state="normal" draw_ops="minimize_button"/>