metacity-theme-3.xml

1<?xml version="1.0"?>
2<metacity_theme>
3<info>
4  <name>Tokyonight</name>
5  <author>vinceliucie | mod: fkorpsvart</author>
6  <copyright>GPL</copyright>
7  <date>2024</date>
8  <description>Tokyonight Metacity theme</description>
9</info>
10
11<!-- meaningful constants -->
12
13<constant name="C_titlebar_focused" value="gtk:custom(wm_bg,gtk:bg[NORMAL])"/>
14<constant name="C_titlebar_unfocused" value="gtk:custom(wm_unfocused_bg,gtk:bg[NORMAL])"/>
15<constant name="C_highlight_focused" value="gtk:custom(wm_highlight,gtk:base[NORMAL])"/>
16<constant name="C_highlight_unfocused" value="gtk:custom(wm_highlight,gtk:base[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[INSENSITIVE])"/>
19<constant name="C_border_focused" value="gtk:custom(wm_border,blend/#000000/gtk:bg[NORMAL]/0.5)"/>
20<constant name="C_border_unfocused" value="gtk:custom(wm_border,blend/#000000/gtk:bg[NORMAL]/0.65)"/>
21
22<!-- geometries -->
23
24<frame_geometry name="normal" title_scale="medium" rounded_top_left="10" rounded_top_right="10">
25  <distance name="left_width" value="1"/>
26  <distance name="right_width" value="1"/>
27  <distance name="bottom_height" value="1"/>
28  <distance name="left_titlebar_edge" value="6"/>
29  <distance name="right_titlebar_edge" value="6"/>
30  <distance name="title_vertical_pad" value="10"/>
31  <border name="title_border" left="10" right="10" top="6" bottom="6"/>
32  <border name="button_border" left="3" right="3" top="5" bottom="5"/>
33  <aspect_ratio name="button" value="1"/>
34</frame_geometry>
35
36<frame_geometry name="max" rounded_top_left="false" rounded_top_right="false" parent="normal">
37  <distance name="left_width" value="0"/>
38  <distance name="right_width" value="0"/>
39  <distance name="bottom_height" value="0"/>
40</frame_geometry>
41
42<frame_geometry name="tiled_left" parent="max">
43  <distance name="right_width" value="1"/>
44</frame_geometry>
45
46<frame_geometry name="tiled_right" parent="max">
47  <distance name="left_width" value="1"/>
48</frame_geometry>
49
50<frame_geometry name="nobuttons" hide_buttons="true" parent="normal">
51</frame_geometry>
52
53<frame_geometry name="modal" parent="normal">
54</frame_geometry>
55
56<frame_geometry name="small" title_scale="small" parent="normal">
57  <distance name="title_vertical_pad" value="8"/>
58</frame_geometry>
59
60<frame_geometry name="border" has_title="false" rounded_top_left="false" rounded_top_right="false" parent="normal">
61  <distance name="left_width" value="1"/>
62  <distance name="right_width" value="1"/>
63  <distance name="bottom_height" value="1"/>
64  <distance name="title_vertical_pad" value="0"/>
65  <border name="title_border" left="10" right="10" top="0" bottom="0"/>
66  <border name="button_border" left="0" right="0" top="0" bottom="0"/>
67</frame_geometry>
68
69<frame_geometry name="borderless" has_title="false" rounded_top_left="false" rounded_top_right="false" parent="normal">
70  <distance name="left_width" value="0"/>
71  <distance name="right_width" value="0"/>
72  <distance name="bottom_height" value="0"/>
73  <distance name="title_vertical_pad" value="0"/>
74  <border name="button_border" left="0" right="0" top="0" bottom="0"/>
75  <border name="title_border" left="0" right="0" top="0" bottom="0"/>
76</frame_geometry>
77
78<frame_geometry name="attached" hide_buttons="true" rounded_bottom_left="6" rounded_bottom_right="6" parent="normal">
79  <distance name="title_vertical_pad" value="6"/>
80</frame_geometry>
81
82<!-- drawing operations -->
83
84<!-- title -->
85
86<draw_ops name="title_focused">
87  <title version="< 3.1"
88    x="(0 `max` ((width - title_width) / 2))"
89    y="(0 `max` ((height - title_height) / 2))"
90    color="C_title_focused"/>
91  <title version=">= 3.1"
92    x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
93    y="(0 `max` ((height - title_height) / 2))"
94    ellipsize_width="width"
95    color="C_title_focused"/>
96</draw_ops>
97
98<draw_ops name="title_unfocused">
99  <title version="< 3.1"
100    x="(0 `max` ((width - title_width) / 2))"
101    y="(0 `max` ((height - title_height) / 2))"
102    color="C_title_unfocused"/>
103  <title version=">= 3.1"
104    x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
105    y="(0 `max` ((height - title_height) / 2))"
106    ellipsize_width="width"
107    color="C_title_unfocused"/>
108</draw_ops>
109
110<!-- window decorations -->
111
112<draw_ops name="entire_background_focused">
113  <rectangle color="C_titlebar_focused" x="0" y="0" width="width" height="height" filled="true"/>
114</draw_ops>
115
116<draw_ops name="entire_background_unfocused">
117  <rectangle color="C_titlebar_unfocused" x="0" y="0" width="width" height="height" filled="true"/>
118</draw_ops>
119
120<draw_ops name="titlebar_focused">
121  <include name="entire_background_focused"/>
122</draw_ops>
123
124<draw_ops name="titlebar_unfocused">
125  <include name="entire_background_unfocused"/>
126</draw_ops>
127
128<draw_ops name="rounded_border_focused">
129  <line color="C_border_focused" x1="12" y1="0" x2="width-13" y2="0" />
130  <line color="C_border_focused" x1="0" y1="height-1" x2="width-1" y2="height-1" />
131  <line color="C_border_focused" x1="0" y1="12" x2="0" y2="height-2" />
132  <line color="C_border_focused" x1="width-1" y1="12" x2="width-1" y2="height-2" />
133  <arc color="C_border_focused" x="0" y="0" width="25" height="25"  start_angle="270" extent_angle="90" />
134  <arc color="C_border_focused" x="width-26" y="0" width="25" height="25"  start_angle="0" extent_angle="90" />
135  <!-- double arcs for darker borders -->
136  <arc color="C_border_focused" x="0" y="0" width="25" height="25"  start_angle="270" extent_angle="90" />
137  <arc color="C_border_focused" x="width-26" y="0" width="25" height="25"  start_angle="0" extent_angle="90" />
138  <line color="C_highlight_focused" x1="13" y1="1" x2="width - 14" y2="1"/>
139  <arc color="C_highlight_focused" x="0" y="1" width="25" height="25" start_angle="270" extent_angle="90"/>
140  <arc color="C_highlight_focused" x="width - 26" y="1" width="25" height="25" start_angle="0" extent_angle="90"/>
141</draw_ops>
142
143<draw_ops name="rounded_border_unfocused">
144  <line color="C_border_unfocused" x1="12" y1="0" x2="width-13" y2="0" />
145  <line color="C_border_unfocused" x1="0" y1="height-1" x2="width-1" y2="height-1" />
146  <line color="C_border_unfocused" x1="0" y1="12" x2="0" y2="height-2" />
147  <line color="C_border_unfocused" x1="width-1" y1="12" x2="width-1" y2="height-2" />
148  <arc color="C_border_unfocused" x="0" y="0" width="25" height="25"  start_angle="270" extent_angle="90" />
149  <arc color="C_border_unfocused" x="width-26" y="0" width="25" height="25"  start_angle="0" extent_angle="90" />
150  <!-- double arcs for darker borders -->
151  <arc color="C_border_unfocused" x="0" y="0" width="25" height="25"  start_angle="270" extent_angle="90" />
152  <arc color="C_border_unfocused" x="width-26" y="0" width="25" height="25"  start_angle="0" extent_angle="90" />
153  <line color="C_highlight_unfocused" x1="13" y1="1" x2="width - 14" y2="1"/>
154  <arc color="C_highlight_unfocused" x="0" y="1" width="25" height="25" start_angle="270" extent_angle="90"/>
155  <arc color="C_highlight_unfocused" x="width - 26" y="1" width="25" height="25" start_angle="0" extent_angle="90"/>
156</draw_ops>
157
158<!-- button icons -->
159
160<draw_ops name="windows_button_focused">
161  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.1" colorize="C_title_focused"/>
162</draw_ops>
163
164<draw_ops name="windows_button_focused_prelight">
165  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.15" colorize="C_title_focused"/>
166</draw_ops>
167
168<draw_ops name="windows_button_focused_pressed">
169  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.2" colorize="C_title_focused"/>
170</draw_ops>
171
172<draw_ops name="windows_button_unfocused">
173  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.06" colorize="C_title_focused"/>
174</draw_ops>
175
176<draw_ops name="windows_button_unfocused_prelight">
177  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.1" colorize="C_title_focused"/>
178</draw_ops>
179
180<draw_ops name="windows_button_unfocused_pressed">
181  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.15" colorize="C_title_focused"/>
182</draw_ops>
183
184<!-- close -->
185
186<draw_ops name="windows_close_icon_focused">
187  <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
188</draw_ops>
189
190<draw_ops name="windows_close_icon_unfocused">
191  <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.35" colorize="C_title_unfocused"/>
192</draw_ops>
193
194<draw_ops name="close_focused">
195  <include name="windows_close_icon_focused"/>
196  <include name="windows_button_focused"/>
197</draw_ops>
198
199<draw_ops name="close_focused_prelight">
200  <include name="windows_close_icon_focused"/>
201  <include name="windows_button_focused_prelight"/>
202</draw_ops>
203
204<draw_ops name="close_focused_pressed">
205  <include name="windows_close_icon_focused"/>
206  <include name="windows_button_focused_pressed"/>
207</draw_ops>
208
209<draw_ops name="close_unfocused">
210  <include name="windows_close_icon_unfocused"/>
211  <include name="windows_button_unfocused"/>
212</draw_ops>
213
214<draw_ops name="close_unfocused_prelight">
215  <include name="windows_close_icon_unfocused"/>
216  <include name="windows_button_unfocused_prelight"/>
217</draw_ops>
218
219<draw_ops name="close_unfocused_pressed">
220  <include name="windows_close_icon_unfocused"/>
221  <include name="windows_button_unfocused_pressed"/>
222</draw_ops>
223
224<!-- maximize -->
225
226<draw_ops name="windows_maximize_icon_focused">
227  <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
228</draw_ops>
229
230<draw_ops name="windows_maximize_icon_unfocused">
231  <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.35" colorize="C_title_unfocused"/>
232</draw_ops>
233
234<draw_ops name="maximize_focused">
235  <include name="windows_maximize_icon_focused"/>
236  <include name="windows_button_focused"/>
237</draw_ops>
238
239<draw_ops name="maximize_focused_prelight">
240  <include name="windows_maximize_icon_focused"/>
241  <include name="windows_button_focused_prelight"/>
242</draw_ops>
243
244<draw_ops name="maximize_focused_pressed">
245  <include name="windows_maximize_icon_focused"/>
246  <include name="windows_button_focused_pressed"/>
247</draw_ops>
248
249<draw_ops name="maximize_unfocused">
250  <include name="windows_maximize_icon_unfocused"/>
251  <include name="windows_button_unfocused"/>
252</draw_ops>
253
254<draw_ops name="maximize_unfocused_prelight">
255  <include name="windows_maximize_icon_unfocused"/>
256  <include name="windows_button_unfocused_prelight"/>
257</draw_ops>
258
259<draw_ops name="maximize_unfocused_pressed">
260  <include name="windows_maximize_icon_unfocused"/>
261  <include name="windows_button_unfocused_pressed"/>
262</draw_ops>
263
264<!-- unmaximize -->
265
266<draw_ops name="windows_unmaximize_icon_focused">
267  <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
268</draw_ops>
269
270<draw_ops name="windows_unmaximize_icon_unfocused">
271  <image filename="assets/unmaximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.35" colorize="C_title_unfocused"/>
272</draw_ops>
273
274<draw_ops name="unmaximize_focused">
275  <include name="windows_unmaximize_icon_focused"/>
276  <include name="windows_button_focused"/>
277</draw_ops>
278
279<draw_ops name="unmaximize_focused_prelight">
280  <include name="windows_unmaximize_icon_focused"/>
281  <include name="windows_button_focused_prelight"/>
282</draw_ops>
283
284<draw_ops name="unmaximize_focused_pressed">
285  <include name="windows_unmaximize_icon_focused"/>
286  <include name="windows_button_focused_pressed"/>
287</draw_ops>
288
289<draw_ops name="unmaximize_unfocused">
290  <include name="windows_unmaximize_icon_unfocused"/>
291  <include name="windows_button_unfocused"/>
292</draw_ops>
293
294<draw_ops name="unmaximize_unfocused_prelight">
295  <include name="windows_unmaximize_icon_unfocused"/>
296  <include name="windows_button_unfocused_prelight"/>
297</draw_ops>
298
299<draw_ops name="unmaximize_unfocused_pressed">
300  <include name="windows_unmaximize_icon_unfocused"/>
301  <include name="windows_button_unfocused_pressed"/>
302</draw_ops>
303
304<!-- minimize -->
305
306<draw_ops name="windows_minimize_icon_focused">
307  <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
308</draw_ops>
309
310<draw_ops name="windows_minimize_icon_unfocused">
311  <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.35" colorize="C_title_unfocused"/>
312</draw_ops>
313
314<draw_ops name="minimize_focused">
315  <include name="windows_minimize_icon_focused"/>
316  <include name="windows_button_focused"/>
317</draw_ops>
318
319<draw_ops name="minimize_focused_prelight">
320  <include name="windows_minimize_icon_focused"/>
321  <include name="windows_button_focused_prelight"/>
322</draw_ops>
323
324<draw_ops name="minimize_focused_pressed">
325  <include name="windows_minimize_icon_focused"/>
326  <include name="windows_button_focused_pressed"/>
327</draw_ops>
328
329<draw_ops name="minimize_unfocused">
330  <include name="windows_minimize_icon_unfocused"/>
331  <include name="windows_button_unfocused"/>
332</draw_ops>
333
334<draw_ops name="minimize_unfocused_prelight">
335  <include name="windows_minimize_icon_unfocused"/>
336  <include name="windows_button_unfocused_prelight"/>
337</draw_ops>
338
339<draw_ops name="minimize_unfocused_pressed">
340  <include name="windows_minimize_icon_unfocused"/>
341  <include name="windows_button_unfocused_pressed"/>
342</draw_ops>
343
344<!-- menu -->
345
346<draw_ops name="menu_focused">
347  <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
348</draw_ops>
349
350<draw_ops name="menu_focused_prelight">
351  <include name="menu_focused"/>
352</draw_ops>
353
354<draw_ops name="menu_focused_pressed">
355  <include name="menu_focused"/>
356</draw_ops>
357
358<draw_ops name="menu_unfocused">
359  <image filename="assets/menu.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
360</draw_ops>
361
362<draw_ops name="menu_unfocused_prelight">
363  <include name="menu_unfocused"/>
364</draw_ops>
365
366<draw_ops name="menu_unfocused_pressed">
367  <include name="menu_unfocused"/>
368</draw_ops>
369
370<!-- shade -->
371
372<draw_ops name="shade_focused">
373  <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
374</draw_ops>
375
376<draw_ops name="shade_focused_prelight">
377  <include name="shade_focused"/>
378</draw_ops>
379
380<draw_ops name="shade_focused_pressed">
381  <include name="shade_focused"/>
382</draw_ops>
383
384<draw_ops name="shade_unfocused">
385  <image filename="assets/shade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
386</draw_ops>
387
388<draw_ops name="shade_unfocused_prelight">
389  <include name="shade_unfocused"/>
390</draw_ops>
391
392<draw_ops name="shade_unfocused_pressed">
393  <include name="shade_unfocused"/>
394</draw_ops>
395
396<!-- unshade -->
397
398<draw_ops name="unshade_focused">
399  <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_focused"/>
400</draw_ops>
401
402<draw_ops name="unshade_focused_prelight">
403  <include name="unshade_focused"/>
404</draw_ops>
405
406<draw_ops name="unshade_focused_pressed">
407  <include name="unshade_focused"/>
408</draw_ops>
409
410<draw_ops name="unshade_unfocused">
411  <image filename="assets/unshade.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.7" colorize="C_title_unfocused"/>
412</draw_ops>
413
414<draw_ops name="unshade_unfocused_prelight">
415  <include name="unshade_unfocused"/>
416</draw_ops>
417
418<draw_ops name="unshade_unfocused_pressed">
419  <include name="unshade_unfocused"/>
420</draw_ops>
421
422<!-- appmenu -->
423
424<constant name="D_appmenu_icon_size" value="16"/>
425
426<draw_ops name="appmenu_focused">
427  <icon
428    x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
429    width="D_appmenu_icon_size" height="D_appmenu_icon_size"/>
430</draw_ops>
431
432<draw_ops name="appmenu_focused_prelight">
433  <include name="appmenu_focused"/>
434</draw_ops>
435
436<draw_ops name="appmenu_focused_pressed">
437  <include name="appmenu_focused"/>
438</draw_ops>
439
440<draw_ops name="appmenu_unfocused">
441  <icon
442    x="(width - D_appmenu_icon_size) / 2" y="(height - D_appmenu_icon_size) / 2"
443    width="D_appmenu_icon_size" height="D_appmenu_icon_size"
444    alpha="0.7"/>
445</draw_ops>
446
447<draw_ops name="appmenu_unfocused_prelight">
448  <include name="appmenu_unfocused"/>
449</draw_ops>
450
451<draw_ops name="appmenu_unfocused_pressed">
452  <include name="appmenu_unfocused"/>
453</draw_ops>
454
455<!-- button backgrounds -->
456
457<draw_ops name="button_focused">
458</draw_ops>
459
460<draw_ops name="button_focused_prelight">
461  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.08" colorize="C_title_focused"/>
462</draw_ops>
463
464<draw_ops name="button_focused_pressed">
465  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.2" colorize="C_title_focused"/>
466</draw_ops>
467
468<draw_ops name="button_unfocused">
469</draw_ops>
470
471<draw_ops name="button_unfocused_prelight">
472  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.08" colorize="C_title_unfocused"/>
473</draw_ops>
474
475<draw_ops name="button_unfocused_pressed">
476  <image filename="assets/button.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.2" colorize="C_title_unfocused"/>
477</draw_ops>
478
479<!-- frame styles -->
480
481<frame_style name="normal_focused" geometry="normal">
482  <piece position="entire_background" draw_ops="entire_background_focused"/>
483  <piece position="titlebar" draw_ops="titlebar_focused"/>
484  <piece position="title" draw_ops="title_focused"/>
485  <piece position="overlay" draw_ops="rounded_border_focused"/>
486  <button function="close" state="normal" draw_ops="close_focused"/>
487  <button function="close" state="prelight" draw_ops="close_focused_prelight"/>
488  <button function="close" state="pressed" draw_ops="close_focused_pressed"/>
489  <button function="maximize" state="normal" draw_ops="maximize_focused"/>
490  <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/>
491  <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/>
492  <button function="minimize" state="normal" draw_ops="minimize_focused"/>
493  <button function="minimize" state="prelight" draw_ops="minimize_focused_prelight"/>
494  <button function="minimize" state="pressed" draw_ops="minimize_focused_pressed"/>
495  <button function="menu" state="normal" draw_ops="menu_focused"/>
496  <button function="menu" state="prelight" draw_ops="menu_focused_prelight"/>
497  <button function="menu" state="pressed" draw_ops="menu_focused_pressed"/>
498  <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_focused"/>
499  <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_focused_prelight"/>
500  <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_focused_pressed"/>
501  <button function="shade" state="normal" draw_ops="shade_focused"/>
502  <button function="shade" state="prelight" draw_ops="shade_focused_prelight"/>
503  <button function="shade" state="pressed" draw_ops="shade_focused_pressed"/>
504  <button function="unshade" state="normal" draw_ops="unshade_focused"/>
505  <button function="unshade" state="prelight" draw_ops="unshade_focused_prelight"/>
506  <button function="unshade" state="pressed" draw_ops="unshade_focused_pressed"/>
507
508  <button function="left_middle_background" state="normal" draw_ops="button_focused"/>
509  <button function="left_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
510  <button function="left_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
511  <button function="right_middle_background" state="normal" draw_ops="button_focused"/>
512  <button function="right_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
513  <button function="right_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
514
515  <button function="above" state="normal"><draw_ops></draw_ops></button>
516  <button function="above" state="pressed"><draw_ops></draw_ops></button>
517  <button function="unabove" state="normal"><draw_ops></draw_ops></button>
518  <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
519  <button function="stick" state="normal"><draw_ops></draw_ops></button>
520  <button function="stick" state="pressed"><draw_ops></draw_ops></button>
521  <button function="unstick" state="normal"><draw_ops></draw_ops></button>
522  <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
523</frame_style>
524
525<frame_style name="normal_unfocused" geometry="normal">
526  <piece position="entire_background" draw_ops="entire_background_unfocused"/>
527  <piece position="titlebar" draw_ops="titlebar_unfocused"/>
528  <piece position="title" draw_ops="title_unfocused"/>
529  <piece position="overlay" draw_ops="rounded_border_unfocused"/>
530  <button function="close" state="normal" draw_ops="close_unfocused"/>
531  <button function="close" state="prelight" draw_ops="close_unfocused_prelight"/>
532  <button function="close" state="pressed" draw_ops="close_unfocused_pressed"/>
533  <button function="maximize" state="normal" draw_ops="maximize_unfocused"/>
534  <button function="maximize" state="prelight" draw_ops="maximize_unfocused_prelight"/>
535  <button function="maximize" state="pressed" draw_ops="maximize_unfocused_pressed"/>
536  <button function="minimize" state="normal" draw_ops="minimize_unfocused"/>
537  <button function="minimize" state="prelight" draw_ops="minimize_unfocused_prelight"/>
538  <button function="minimize" state="pressed" draw_ops="minimize_unfocused_pressed"/>
539  <button function="menu" state="normal" draw_ops="menu_unfocused"/>
540  <button function="menu" state="prelight" draw_ops="menu_unfocused_prelight"/>
541  <button function="menu" state="pressed" draw_ops="menu_unfocused_pressed"/>
542  <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_unfocused"/>
543  <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_unfocused_prelight"/>
544  <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_unfocused_pressed"/>
545  <button function="shade" state="normal" draw_ops="shade_unfocused"/>
546  <button function="shade" state="prelight" draw_ops="shade_unfocused_prelight"/>
547  <button function="shade" state="pressed" draw_ops="shade_unfocused_pressed"/>
548  <button function="unshade" state="normal" draw_ops="unshade_unfocused"/>
549  <button function="unshade" state="prelight" draw_ops="unshade_unfocused_prelight"/>
550  <button function="unshade" state="pressed" draw_ops="unshade_unfocused_pressed"/>
551
552  <button function="left_middle_background" state="normal" draw_ops="button_unfocused"/>
553  <button function="left_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
554  <button function="left_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
555  <button function="right_middle_background" state="normal" draw_ops="button_unfocused"/>
556  <button function="right_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
557  <button function="right_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
558
559  <button function="above" state="normal"><draw_ops></draw_ops></button>
560  <button function="above" state="pressed"><draw_ops></draw_ops></button>
561  <button function="unabove" state="normal"><draw_ops></draw_ops></button>
562  <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
563  <button function="stick" state="normal"><draw_ops></draw_ops></button>
564  <button function="stick" state="pressed"><draw_ops></draw_ops></button>
565  <button function="unstick" state="normal"><draw_ops></draw_ops></button>
566  <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
567</frame_style>
568
569<frame_style name="normal_max_focused" geometry="max">
570  <piece position="entire_background" draw_ops="entire_background_focused"/>
571  <piece position="titlebar" draw_ops="titlebar_focused"/>
572  <piece position="title" draw_ops="title_focused"/>
573  <button function="close" state="normal" draw_ops="close_focused"/>
574  <button function="close" state="prelight" draw_ops="close_focused_prelight"/>
575  <button function="close" state="pressed" draw_ops="close_focused_pressed"/>
576  <button function="maximize" state="normal" draw_ops="unmaximize_focused"/>
577  <button function="maximize" state="prelight" draw_ops="unmaximize_focused_prelight"/>
578  <button function="maximize" state="pressed" draw_ops="unmaximize_focused_pressed"/>
579  <button function="minimize" state="normal" draw_ops="minimize_focused"/>
580  <button function="minimize" state="prelight" draw_ops="minimize_focused_prelight"/>
581  <button function="minimize" state="pressed" draw_ops="minimize_focused_pressed"/>
582  <button function="menu" state="normal" draw_ops="menu_focused"/>
583  <button function="menu" state="prelight" draw_ops="menu_focused_prelight"/>
584  <button function="menu" state="pressed" draw_ops="menu_focused_pressed"/>
585  <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_focused"/>
586  <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_focused_prelight"/>
587  <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_focused_pressed"/>
588  <button function="shade" state="normal" draw_ops="shade_focused"/>
589  <button function="shade" state="prelight" draw_ops="shade_focused_prelight"/>
590  <button function="shade" state="pressed" draw_ops="shade_focused_pressed"/>
591  <button function="unshade" state="normal" draw_ops="unshade_focused"/>
592  <button function="unshade" state="prelight" draw_ops="unshade_focused_prelight"/>
593  <button function="unshade" state="pressed" draw_ops="unshade_focused_pressed"/>
594
595  <button function="left_middle_background" state="normal" draw_ops="button_focused"/>
596  <button function="left_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
597  <button function="left_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
598  <button function="right_middle_background" state="normal" draw_ops="button_focused"/>
599  <button function="right_middle_background" state="prelight" draw_ops="button_focused_prelight"/>
600  <button function="right_middle_background" state="pressed" draw_ops="button_focused_pressed"/>
601
602  <button function="above" state="normal"><draw_ops></draw_ops></button>
603  <button function="above" state="pressed"><draw_ops></draw_ops></button>
604  <button function="unabove" state="normal"><draw_ops></draw_ops></button>
605  <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
606  <button function="stick" state="normal"><draw_ops></draw_ops></button>
607  <button function="stick" state="pressed"><draw_ops></draw_ops></button>
608  <button function="unstick" state="normal"><draw_ops></draw_ops></button>
609  <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
610</frame_style>
611
612<frame_style name="normal_max_unfocused" geometry="max">
613  <piece position="entire_background" draw_ops="entire_background_unfocused"/>
614  <piece position="titlebar" draw_ops="titlebar_unfocused"/>
615  <piece position="title" draw_ops="title_unfocused"/>
616  <button function="close" state="normal" draw_ops="close_unfocused"/>
617  <button function="close" state="prelight" draw_ops="close_unfocused_prelight"/>
618  <button function="close" state="pressed" draw_ops="close_unfocused_pressed"/>
619  <button function="maximize" state="normal" draw_ops="unmaximize_unfocused"/>
620  <button function="maximize" state="prelight" draw_ops="unmaximize_unfocused_prelight"/>
621  <button function="maximize" state="pressed" draw_ops="unmaximize_unfocused_pressed"/>
622  <button function="minimize" state="normal" draw_ops="minimize_unfocused"/>
623  <button function="minimize" state="prelight" draw_ops="minimize_unfocused_prelight"/>
624  <button function="minimize" state="pressed" draw_ops="minimize_unfocused_pressed"/>
625  <button function="menu" state="normal" draw_ops="menu_unfocused"/>
626  <button function="menu" state="prelight" draw_ops="menu_unfocused_prelight"/>
627  <button function="menu" state="pressed" draw_ops="menu_unfocused_pressed"/>
628  <button version=">= 3.5" function="appmenu" state="normal" draw_ops="appmenu_unfocused"/>
629  <button version=">= 3.5" function="appmenu" state="prelight" draw_ops="appmenu_unfocused_prelight"/>
630  <button version=">= 3.5" function="appmenu" state="pressed" draw_ops="appmenu_unfocused_pressed"/>
631  <button function="shade" state="normal" draw_ops="shade_unfocused"/>
632  <button function="shade" state="prelight" draw_ops="shade_unfocused_prelight"/>
633  <button function="shade" state="pressed" draw_ops="shade_unfocused_pressed"/>
634  <button function="unshade" state="normal" draw_ops="unshade_unfocused"/>
635  <button function="unshade" state="prelight" draw_ops="unshade_unfocused_prelight"/>
636  <button function="unshade" state="pressed" draw_ops="unshade_unfocused_pressed"/>
637
638  <button function="left_middle_background" state="normal" draw_ops="button_unfocused"/>
639  <button function="left_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
640  <button function="left_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
641  <button function="right_middle_background" state="normal" draw_ops="button_unfocused"/>
642  <button function="right_middle_background" state="prelight" draw_ops="button_unfocused_prelight"/>
643  <button function="right_middle_background" state="pressed" draw_ops="button_unfocused_pressed"/>
644
645  <button function="above" state="normal"><draw_ops></draw_ops></button>
646  <button function="above" state="pressed"><draw_ops></draw_ops></button>
647  <button function="unabove" state="normal"><draw_ops></draw_ops></button>
648  <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
649  <button function="stick" state="normal"><draw_ops></draw_ops></button>
650  <button function="stick" state="pressed"><draw_ops></draw_ops></button>
651  <button function="unstick" state="normal"><draw_ops></draw_ops></button>
652  <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
653</frame_style>
654
655<frame_style name="tiled_left_focused" geometry="tiled_left" parent="normal_max_focused">
656  <piece position="titlebar" draw_ops="entire_background_focused"/>
657</frame_style>
658
659<frame_style name="tiled_left_unfocused" geometry="tiled_left" parent="normal_max_unfocused">
660  <piece position="titlebar" draw_ops="entire_background_unfocused"/>
661</frame_style>
662
663<frame_style name="tiled_right_focused" geometry="tiled_right" parent="normal_max_focused">
664  <piece position="titlebar" draw_ops="entire_background_focused"/>
665</frame_style>
666
667<frame_style name="tiled_right_unfocused" geometry="tiled_right" parent="normal_max_unfocused">
668  <piece position="titlebar" draw_ops="entire_background_unfocused"/>
669</frame_style>
670
671<frame_style name="dialog_focused" geometry="modal" parent="normal_focused">
672</frame_style>
673
674<frame_style name="dialog_unfocused" geometry="modal" parent="normal_unfocused">
675</frame_style>
676
677<frame_style name="modal_dialog_focused" geometry="modal" parent="normal_focused">
678</frame_style>
679
680<frame_style name="modal_dialog_unfocused" geometry="modal" parent="normal_unfocused">
681</frame_style>
682
683<frame_style name="utility_focused" geometry="small" parent="normal_focused">
684</frame_style>
685
686<frame_style name="utility_unfocused" geometry="small" parent="normal_unfocused">
687</frame_style>
688
689<frame_style name="border_focused" geometry="border" parent="normal_focused">
690</frame_style>
691
692<frame_style name="border_unfocused" geometry="border" parent="normal_unfocused">
693</frame_style>
694
695<frame_style name="borderless_focused" geometry="borderless" parent="normal_focused">
696</frame_style>
697
698<frame_style name="borderless_unfocused" geometry="borderless" parent="normal_unfocused">
699</frame_style>
700
701<frame_style name="attached_focused" geometry="attached" parent="modal_dialog_focused">
702</frame_style>
703
704<frame_style name="attached_unfocused" geometry="attached" parent="modal_dialog_unfocused">
705</frame_style>
706
707<!-- placeholder for unimplementated styles-->
708
709<frame_style name="blank" geometry="normal">
710  <button function="close" state="normal"><draw_ops></draw_ops></button>
711  <button function="close" state="pressed"><draw_ops></draw_ops></button>
712  <button function="maximize" state="normal"><draw_ops></draw_ops></button>
713  <button function="maximize" state="pressed"><draw_ops></draw_ops></button>
714  <button function="minimize" state="normal"><draw_ops></draw_ops></button>
715  <button function="minimize" state="pressed"><draw_ops></draw_ops></button>
716  <button function="menu" state="normal"><draw_ops></draw_ops></button>
717  <button function="menu" state="pressed"><draw_ops></draw_ops></button>
718  <button version=">= 3.5" function="appmenu" state="normal"><draw_ops></draw_ops></button>
719  <button version=">= 3.5" function="appmenu" state="pressed"><draw_ops></draw_ops></button>
720  <button function="shade" state="normal"><draw_ops></draw_ops></button>
721  <button function="shade" state="pressed"><draw_ops></draw_ops></button>
722  <button function="unshade" state="normal"><draw_ops></draw_ops></button>
723  <button function="unshade" state="pressed"><draw_ops></draw_ops></button>
724  <button function="above" state="normal"><draw_ops></draw_ops></button>
725  <button function="above" state="pressed"><draw_ops></draw_ops></button>
726  <button function="unabove" state="normal"><draw_ops></draw_ops></button>
727  <button function="unabove" state="pressed"><draw_ops></draw_ops></button>
728  <button function="stick" state="normal"><draw_ops></draw_ops></button>
729  <button function="stick" state="pressed"><draw_ops></draw_ops></button>
730  <button function="unstick" state="normal"><draw_ops></draw_ops></button>
731  <button function="unstick" state="pressed"><draw_ops></draw_ops></button>
732</frame_style>
733
734<!-- frame style sets -->
735
736<frame_style_set name="normal_style_set">
737  <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
738  <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
739  <frame focus="yes" state="maximized" style="normal_max_focused"/>
740  <frame focus="no" state="maximized" style="normal_max_unfocused"/>
741  <frame focus="yes" state="shaded" style="normal_focused"/>
742  <frame focus="no" state="shaded" style="normal_unfocused"/>
743  <frame focus="yes" state="maximized_and_shaded" style="normal_max_focused"/>
744  <frame focus="no" state="maximized_and_shaded" style="normal_max_unfocused"/>
745  <frame version=">= 3.3" focus="yes" state="tiled_left" style="tiled_left_focused"/>
746  <frame version=">= 3.3" focus="no" state="tiled_left" style="tiled_left_unfocused"/>
747  <frame version=">= 3.3" focus="yes" state="tiled_right" style="tiled_right_focused"/>
748  <frame version=">= 3.3" focus="no" state="tiled_right" style="tiled_right_unfocused"/>
749  <frame version=">= 3.3" focus="yes" state="tiled_left_and_shaded" style="tiled_left_focused"/>
750  <frame version=">= 3.3" focus="no" state="tiled_left_and_shaded" style="tiled_left_unfocused"/>
751  <frame version=">= 3.3" focus="yes" state="tiled_right_and_shaded" style="tiled_right_focused"/>
752  <frame version=">= 3.3" focus="no" state="tiled_right_and_shaded" style="tiled_right_unfocused"/>
753</frame_style_set>
754
755<frame_style_set name="dialog_style_set">
756  <frame focus="yes" state="normal" resize="both" style="dialog_focused"/>
757  <frame focus="no" state="normal" resize="both" style="dialog_unfocused"/>
758  <frame focus="yes" state="maximized" style="blank"/>
759  <frame focus="no" state="maximized" style="blank"/>
760  <frame focus="yes" state="shaded" style="dialog_focused"/>
761  <frame focus="no" state="shaded" style="dialog_unfocused"/>
762  <frame focus="yes" state="maximized_and_shaded" style="blank"/>
763  <frame focus="no" state="maximized_and_shaded" style="blank"/>
764</frame_style_set>
765
766<frame_style_set name="modal_dialog_style_set">
767  <frame focus="yes" state="normal" resize="both" style="modal_dialog_focused"/>
768  <frame focus="no" state="normal" resize="both" style="modal_dialog_unfocused"/>
769  <frame focus="yes" state="maximized" style="blank"/>
770  <frame focus="no" state="maximized" style="blank"/>
771  <frame focus="yes" state="shaded" style="modal_dialog_focused"/>
772  <frame focus="no" state="shaded" style="modal_dialog_unfocused"/>
773  <frame focus="yes" state="maximized_and_shaded" style="blank"/>
774  <frame focus="no" state="maximized_and_shaded" style="blank"/>
775</frame_style_set>
776
777<frame_style_set name="utility_style_set">
778  <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
779  <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
780  <frame focus="yes" state="maximized" style="blank"/>
781  <frame focus="no" state="maximized" style="blank"/>
782  <frame focus="yes" state="shaded" style="utility_focused"/>
783  <frame focus="no" state="shaded" style="utility_unfocused"/>
784  <frame focus="yes" state="maximized_and_shaded" style="blank"/>
785  <frame focus="no" state="maximized_and_shaded" style="blank"/>
786</frame_style_set>
787
788<frame_style_set name="border_style_set">
789  <frame focus="yes" state="normal" resize="both" style="border_focused"/>
790  <frame focus="no" state="normal" resize="both" style="border_unfocused"/>
791  <frame focus="yes" state="maximized" style="borderless_focused"/>
792  <frame focus="no" state="maximized" style="borderless_unfocused"/>
793  <frame focus="yes" state="shaded" style="blank"/>
794  <frame focus="no" state="shaded" style="blank"/>
795  <frame focus="yes" state="maximized_and_shaded" style="blank"/>
796  <frame focus="no" state="maximized_and_shaded" style="blank"/>
797</frame_style_set>
798
799<frame_style_set name="attached_style_set">
800  <frame focus="yes" state="normal" resize="both" style="attached_focused"/>
801  <frame focus="no" state="normal" resize="both" style="attached_unfocused"/>
802  <frame focus="yes" state="maximized" style="blank"/>
803  <frame focus="no" state="maximized" style="blank"/>
804  <frame focus="yes" state="shaded" style="blank"/>
805  <frame focus="no" state="shaded" style="blank"/>
806  <frame focus="yes" state="maximized_and_shaded" style="blank"/>
807  <frame focus="no" state="maximized_and_shaded" style="blank"/>
808</frame_style_set>
809
810<!-- windows -->
811
812<window type="normal" style_set="normal_style_set"/>
813<window type="dialog" style_set="dialog_style_set"/>
814<window type="modal_dialog" style_set="modal_dialog_style_set"/>
815<window type="menu" style_set="utility_style_set"/>
816<window type="utility" style_set="utility_style_set"/>
817<window type="border" style_set="border_style_set"/>
818<window version=">= 3.2" type="attached" style_set="attached_style_set"/>
819
820</metacity_theme>
821