6
<author>Kido Mariano, Rico Sta. Cruz and Modded by DarkAenima</author>
7
<copyright>GPL</copyright>
8
<date>Jul 28, 2008</date>
9
<description>Metacity theme</description>
10
<!-- Based on the Elegant Brit theme (though now really far away from it :P) -->
15
General window layout (geometric stuff)
17
<frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true">
18
<distance name="left_width" value="1"/>
19
<distance name="right_width" value="1"/>
20
<distance name="bottom_height" value="4"/>
21
<distance name="left_titlebar_edge" value="2"/>
22
<distance name="right_titlebar_edge" value="1"/>
23
<distance name="button_width" value="28"/>
24
<distance name="button_height" value="20"/>
25
<distance name="title_vertical_pad" value="1"/>
26
<border name="title_border" left="2" right="2" top="3" bottom="0"/>
27
<border name="button_border" left="0" right="0" top="2" bottom="1"/>
30
<frame_geometry name="frame_geometry_abnormal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
31
<distance name="left_width" value="0"/>
32
<distance name="right_width" value="0"/>
33
<distance name="bottom_height" value="0"/>
34
<distance name="left_titlebar_edge" value="1"/>
35
<distance name="right_titlebar_edge" value="2"/>
36
<distance name="button_width" value="28"/>
37
<distance name="button_height" value="20"/>
38
<distance name="title_vertical_pad" value="0"/>
39
<border name="title_border" left="0" right="0" top="3" bottom="0"/>
40
<border name="button_border" left="0" right="0" top="2" bottom="1"/>
49
<draw_ops name="draw_title_text_normal">
50
<title x="1" y="(height - title_height) / 2 + 1" color="#2F2E2B"/>
51
<title x="0" y="(height - title_height) / 2" color="#FFFFFF"/>
54
<draw_ops name="draw_title_text_inactive">
55
<title x="0" y="(height - title_height) / 2" color="#727262"/>
59
Construct titlebar from rectangles instead so we can pick up the GTK theme
62
<draw_ops name="draw_title">
63
<!-- Background gradient -->
64
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
65
<!--<color value="#80594D"/>-->
66
<color value="shade/gtk:bg[SELECTED]/0.6"/>
67
<color value="shade/gtk:bg[NORMAL]/0.29" />
68
<color value="shade/gtk:bg[NORMAL]/0.27" />
69
<color value="shade/gtk:bg[NORMAL]/0.25" />
70
<color value="shade/gtk:bg[NORMAL]/0.24" />
73
<!-- Topmost dark line -->
74
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="width" y1="0" y2="0"/>
76
<!-- Darkening of the left arch -->
77
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="4" y1="1" y2="1"/>
78
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="2" y1="2" y2="2"/>
79
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="1" y1="3" y2="3"/>
80
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="1" y1="4" y2="4"/>
81
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="0" y1="5" y2="20"/>
83
<!-- Top highlight -->
84
<!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
85
<tint color="#ffffff" alpha="0.35" x="5" y="1" width="width - 10" height="1"/>
87
<!-- Upper-left highlight -->
88
<!-- Draw each pixel one by one. Again, using <tint> for alpha support. -->
89
<tint color="#ffffff" alpha="0.30" x="3" y="2" width="2" height="1"/>
90
<tint color="#ffffff" alpha="0.27" x="2" y="3" width="1" height="1"/>
91
<tint color="#ffffff" alpha="0.24" x="2" y="4" width="1" height="1"/>
92
<tint color="#ffffff" alpha="0.21" x="1" y="5" width="1" height="1"/>
93
<tint color="#ffffff" alpha="0.18" x="1" y="6" width="1" height="1"/>
94
<tint color="#ffffff" alpha="0.15" x="1" y="7" width="1" height="1"/>
95
<tint color="#ffffff" alpha="0.12" x="1" y="8" width="1" height="1"/>
96
<tint color="#ffffff" alpha="0.09" x="1" y="9" width="1" height="1"/>
97
<tint color="#ffffff" alpha="0.06" x="1" y="10" width="1" height="1"/>
98
<tint color="#ffffff" alpha="0.03" x="1" y="11" width="1" height="1"/>
100
<!-- Upper-right highlight -->
101
<!-- Same as above. -->
102
<tint color="#ffffff" alpha="0.30" x="width-5" y="2" width="2" height="1"/>
103
<tint color="#ffffff" alpha="0.27" x="width-3" y="3" width="1" height="1"/>
104
<tint color="#ffffff" alpha="0.24" x="width-3" y="4" width="1" height="1"/>
105
<tint color="#ffffff" alpha="0.21" x="width-2" y="5" width="1" height="1"/>
106
<tint color="#ffffff" alpha="0.18" x="width-2" y="6" width="1" height="1"/>
107
<tint color="#ffffff" alpha="0.15" x="width-2" y="7" width="1" height="1"/>
108
<tint color="#ffffff" alpha="0.12" x="width-2" y="8" width="1" height="1"/>
109
<tint color="#ffffff" alpha="0.09" x="width-2" y="9" width="1" height="1"/>
110
<tint color="#ffffff" alpha="0.06" x="width-2" y="10" width="1" height="1"/>
111
<tint color="#ffffff" alpha="0.03" x="width-2" y="11" width="1" height="1"/>
115
<draw_ops name="draw_title_inactive">
116
<!-- Background gradient -->
117
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
118
<color value="shade/gtk:bg[NORMAL]/0.27" />
119
<color value="shade/gtk:bg[NORMAL]/0.24" />
122
<!-- Topmost dark line -->
123
<line color="shade/gtk:bg[NORMAL]/0.25" x1="1" x2="width-2" y1="0" y2="0"/>
124
<!-- Top highlight -->
125
<tint color="#ffffff" alpha="0.2" x="5" y="1" width="width - 10" height="1"/>
127
<!-- Lower-left highlight -->
128
<line color="shade/gtk:bg[NORMAL]/0.33" x1="3" x2 ="4" y1="2" y2="2" />
129
<line color="shade/gtk:bg[NORMAL]/0.32" x1="2" x2 ="2" y1="3" y2="4" />
131
<!-- Lower-left higlight fade -->
132
<gradient type="vertical" x="1" y="5" width="1" height="title_height - 4">
133
<color value="shade/gtk:bg[NORMAL]/0.30"/>
134
<color value="shade/gtk:bg[NORMAL]/0.25"/>
137
<!-- Upper right highlight -->
138
<line color="shade/gtk:bg[NORMAL]/0.30" x1="width-5" x2 ="width-4" y1="2" y2="2" />
139
<line color="shade/gtk:bg[NORMAL]/0.30" x1="width-3" x2 ="width-3" y1="3" y2="4" />
141
<!-- Lower-left higlight fade -->
142
<gradient type="vertical" x="width-2" y="5" width="1" height="title_height - 4">
143
<color value="shade/gtk:bg[NORMAL]/0.30"/>
144
<color value="shade/gtk:bg[NORMAL]/0.25"/>
148
<draw_ops name="draw_title_maximized">
149
<!-- Background gradient -->
150
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
151
<!--<color value="#80594D"/>-->
152
<color value="shade/gtk:bg[SELECTED]/0.6"/>
153
<color value="shade/gtk:bg[NORMAL]/0.29" />
154
<color value="shade/gtk:bg[NORMAL]/0.27" />
155
<color value="shade/gtk:bg[NORMAL]/0.25" />
156
<color value="shade/gtk:bg[NORMAL]/0.24" />
159
<!-- Topmost dark line -->
160
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="width" y1="0" y2="0"/>
162
<!-- Top highlight -->
163
<!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
164
<tint color="#ffffff" alpha="0.35" x="1" y="1" width="width - 2" height="1"/>
168
<draw_ops name="draw_title_maximized_inactive">
169
<!-- Background gradient -->
170
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
171
<!--<color value="#80594D"/>-->
172
<color value="shade/gtk:bg[NORMAL]/0.27" />
173
<color value="shade/gtk:bg[NORMAL]/0.24" />
176
<!-- Topmost dark line -->
177
<line color="shade/gtk:bg[NORMAL]/0.30" x1="0" x2="width" y1="0" y2="0"/>
179
<!-- Top highlight -->
180
<!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
181
<tint color="#ffffff" alpha="0.35" x="1" y="1" width="width - 2" height="1"/>
186
The frame around windows
189
<draw_ops name="draw_frame">
190
<rectangle color="shade/gtk:bg[NORMAL]/0.25" x="0" y="0" width="width" height="height" filled="true"/>
191
<!-- RSC: Subtle gradient on left/right edges to match the menubar -->
192
<gradient type="vertical" x="0" y="0" width="width" height="100">
193
<color value="shade/gtk:bg[NORMAL]/0.25"/>
194
<color value="shade/gtk:bg[NORMAL]/0.15"/>
195
<color value="shade/gtk:bg[NORMAL]/0.25"/>
199
<!--Borderless only: make bottom border less apparent. We can do this now since our statusbars are light.-->
200
<draw_ops name="bottom_edge">
201
<rectangle color="shade/gtk:bg[NORMAL]/0.25" x="0" y="0" width="width" height="height" filled="true"/>
202
<gradient type="vertical" x="1" y="height-6" width="width-2" height="5">
203
<color value="shade/gtk:bg[NORMAL]/0.85"/>
204
<color value="shade/gtk:bg[NORMAL]/0.5"/>
213
<draw_ops name="button_close_normal">
214
<image filename="button_close_normal.png" x="0" y="1" width="object_width" height="object_height"/>
216
<draw_ops name="button_close_prelight">
217
<image filename="button_close_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
219
<draw_ops name="button_close_inactive_prelight">
220
<image filename="button_close_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
222
<draw_ops name="button_close_pressed">
223
<image filename="button_close_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
225
<draw_ops name="button_close_inactive">
226
<image filename="button_close_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
229
<!-- maximize button-->
230
<draw_ops name="button_max_normal">
231
<image filename="button_max_normal.png" x="0" y="1" width="object_width" height="object_height"/>
233
<draw_ops name="button_max_prelight">
234
<image filename="button_max_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
236
<draw_ops name="button_max_inactive_prelight">
237
<image filename="button_max_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
239
<draw_ops name="button_max_pressed">
240
<image filename="button_max_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
242
<draw_ops name="button_max_inactive">
243
<image filename="button_max_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
246
<!-- minimize button-->
247
<draw_ops name="button_min_normal">
248
<image filename="button_min_normal.png" x="0" y="1" width="object_width" height="object_height"/>
250
<draw_ops name="button_min_prelight">
251
<image filename="button_min_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
253
<draw_ops name="button_min_inactive_prelight">
254
<image filename="button_min_prelight.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
256
<draw_ops name="button_min_pressed">
257
<image filename="button_min_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
259
<draw_ops name="button_min_inactive">
260
<image filename="button_min_normal.png" x="0" y="1" width="object_width" height="object_height" alpha="0.3"/>
265
<draw_ops name="button_menu_normal">
266
<image filename="button_menu_normal.png" x="0" y="2" width="object_width" height="object_height"/>
268
<draw_ops name="button_menu_prelight">
269
<image filename="button_menu_prelight.png" x="0" y="2" width="object_width" height="object_height"/>
271
<draw_ops name="button_menu_inactive_prelight">
272
<image filename="button_menu_prelight.png" x="0" y="2" width="object_width" height="object_height" alpha="0.3"/>
274
<draw_ops name="button_menu_pressed">
275
<image filename="button_menu_pressed.png" x="0" y="2" width="object_width" height="object_height"/>
277
<draw_ops name="button_menu_inactive">
278
<image filename="button_menu_normal.png" x="0" y="2" width="object_width" height="object_height" alpha="0.3"/>
282
<draw_ops name="button_menu_normal">
283
<icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
285
<draw_ops name="button_menu_prelight">
286
<icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
288
<draw_ops name="button_menu_inactive_prelight">
289
<icon x="6" y="2" width="mini_icon_width" height="mini_icon_height" alpha="0.3"/>
291
<draw_ops name="button_menu_pressed">
292
<icon x="6" y="2" width="mini_icon_width" height="mini_icon_height"/>
294
<draw_ops name="button_menu_inactive">
295
<icon x="6" y="2" width="mini_icon_width" height="mini_icon_height" alpha="0.3"/>
305
<frame_style name="frame_style_normal_focused" geometry="frame_geometry_normal">
306
<piece position="title" draw_ops="draw_title_text_normal"/>
307
<piece position="titlebar" draw_ops="draw_title"/>
308
<piece position="left_edge" draw_ops="draw_frame"/>
309
<piece position="right_edge" draw_ops="draw_frame"/>
310
<piece position="bottom_edge" draw_ops="bottom_edge"/>
311
<button function="close" state="normal" draw_ops="button_close_normal"/>
312
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
313
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
314
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
315
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
316
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
317
<button function="maximize" state="normal" draw_ops="button_max_normal"/>
318
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
319
<button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
320
<button function="menu" state="normal" draw_ops="button_menu_normal"/>
321
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
322
<button function="menu" state="pressed" draw_ops="button_menu_pressed"/>
325
<frame_style name="frame_style_normal_unfocused" geometry="frame_geometry_normal">
326
<piece position="title" draw_ops="draw_title_text_inactive"/>
327
<piece position="titlebar" draw_ops="draw_title_inactive"/>
328
<piece position="left_edge" draw_ops="draw_frame"/>
329
<piece position="right_edge" draw_ops="draw_frame"/>
330
<piece position="bottom_edge" draw_ops="bottom_edge"/>
331
<button function="close" state="normal" draw_ops="button_close_inactive"/>
332
<button function="close" state="prelight" draw_ops="button_close_inactive_prelight"/>
333
<button function="close" state="pressed" draw_ops="button_close_inactive"/>
334
<button function="minimize" state="normal" draw_ops="button_min_inactive"/>
335
<button function="minimize" state="prelight" draw_ops="button_min_inactive_prelight"/>
336
<button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
337
<button function="maximize" state="normal" draw_ops="button_max_inactive"/>
338
<button function="maximize" state="prelight" draw_ops="button_max_inactive_prelight"/>
339
<button function="maximize" state="pressed" draw_ops="button_max_inactive"/>
340
<button function="menu" state="normal" draw_ops="button_menu_inactive"/>
341
<button function="menu" state="prelight" draw_ops="button_menu_inactive_prelight"/>
342
<button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
345
<frame_style name="frame_style_maximized_focused" geometry="frame_geometry_abnormal">
346
<piece position="title" draw_ops="draw_title_text_normal"/>
347
<piece position="titlebar" draw_ops="draw_title_maximized"/>
348
<piece position="left_edge" draw_ops="draw_frame"/>
349
<piece position="right_edge" draw_ops="draw_frame"/>
350
<piece position="bottom_edge" draw_ops="bottom_edge"/>
351
<button function="close" state="normal" draw_ops="button_close_normal"/>
352
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
353
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
354
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
355
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
356
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
357
<button function="maximize" state="normal" draw_ops="button_max_normal"/>
358
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
359
<button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
360
<button function="menu" state="normal" draw_ops="button_menu_normal"/>
361
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
362
<button function="menu" state="pressed" draw_ops="button_menu_normal"/>
365
<frame_style name="frame_style_maximized_unfocused" geometry="frame_geometry_abnormal">
366
<piece position="title" draw_ops="draw_title_text_inactive"/>
367
<piece position="titlebar" draw_ops="draw_title_maximized_inactive"/>
368
<piece position="left_edge" draw_ops="draw_frame"/>
369
<piece position="right_edge" draw_ops="draw_frame"/>
370
<piece position="bottom_edge" draw_ops="bottom_edge"/>
371
<button function="close" state="normal" draw_ops="button_close_inactive"/>
372
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
373
<button function="close" state="pressed" draw_ops="button_close_inactive"/>
374
<button function="minimize" state="normal" draw_ops="button_min_inactive"/>
375
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
376
<button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
377
<button function="maximize" state="normal" draw_ops="button_max_inactive"/>
378
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
379
<button function="maximize" state="pressed" draw_ops="button_max_inactive"/>
380
<button function="menu" state="normal" draw_ops="button_menu_inactive"/>
381
<button function="menu" state="prelight" draw_ops="button_menu_inactive"/>
382
<button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
385
<frame_style_set name="frame_style_set_normal">
386
<frame focus="yes" state="normal" resize="both" style="frame_style_normal_focused"/>
387
<frame focus="no" state="normal" resize="both" style="frame_style_normal_unfocused"/>
388
<frame focus="yes" state="maximized" style="frame_style_maximized_focused"/>
389
<frame focus="no" state="maximized" style="frame_style_maximized_unfocused"/>
390
<frame focus="yes" state="shaded" style="frame_style_normal_focused"/>
391
<frame focus="no" state="shaded" style="frame_style_normal_unfocused"/>
392
<frame focus="yes" state="maximized_and_shaded" style="frame_style_maximized_focused"/>
393
<frame focus="no" state="maximized_and_shaded" style="frame_style_maximized_unfocused"/>
396
<window type="normal" style_set="frame_style_set_normal"/>
397
<window type="dialog" style_set="frame_style_set_normal"/>
398
<window type="modal_dialog" style_set="frame_style_set_normal"/>
399
<window type="menu" style_set="frame_style_set_normal"/>
400
<window type="utility" style_set="frame_style_set_normal"/>
401
<window type="border" style_set="frame_style_set_normal"/>
403
<menu_icon function="close" state="normal" draw_ops="button_close_normal"/>
404
<menu_icon function="maximize" state="normal" draw_ops="button_max_normal"/>
405
<menu_icon function="unmaximize" state="normal" draw_ops="button_max_normal"/>
406
<menu_icon function="minimize" state="normal" draw_ops="button_min_normal"/>