6
<author>Kenneth Wimer</author>
7
<copyright>Canonical Ltd.</copyright>
8
<date>Nov 28, 2009</date>
9
<description>Metacity theme</description>
12
<!-- General window layout -->
13
<frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
14
<distance name="left_width" value="1"/>
15
<distance name="right_width" value="1"/>
16
<distance name="bottom_height" value="4"/>
17
<distance name="left_titlebar_edge" value="4"/>
18
<distance name="right_titlebar_edge" value="4"/>
19
<distance name="button_width" value="20"/>
20
<distance name="button_height" value="20"/>
21
<distance name="title_vertical_pad" value="4"/>
22
<border name="title_border" left="2" right="2" top="2" bottom="2"/>
23
<border name="button_border" left="0" right="0" top="2" bottom="1"/>
26
<frame_geometry name="frame_geometry_abnormal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
27
<distance name="left_width" value="0"/>
28
<distance name="right_width" value="0"/>
29
<distance name="bottom_height" value="4"/>
30
<distance name="left_titlebar_edge" value="3"/>
31
<distance name="right_titlebar_edge" value="2"/>
32
<distance name="button_width" value="20"/>
33
<distance name="button_height" value="20"/>
34
<distance name="title_vertical_pad" value="0"/>
35
<border name="title_border" left="2" right="0" top="2" bottom="2"/>
36
<border name="button_border" left="0" right="0" top="2" bottom="1"/>
41
<draw_ops name="draw_title_text_normal">
42
<title color="#e8e5dd"
44
y="(((height - title_height) / 2) `max` 0)+1"/>
45
<title color="#e8e5dd"
47
y="(((height - title_height) / 2) `max` 0)-1"/>
48
<title color="#e8e5dd"
50
y="(((height - title_height) / 2) `max` 0)"/>
51
<title color="#e8e5dd"
53
y="(((height - title_height) / 2) `max` 0)"/>
56
y="(((height - title_height) / 2) `max` 0)"/>
60
<draw_ops name="draw_title_text_inactive">
61
<title color="#e8e5dd"
63
y="(((height - title_height) / 2) `max` 0)+1"/>
64
<title color="#e8e5dd"
66
y="(((height - title_height) / 2) `max` 0)-1"/>
67
<title color="#e8e5dd"
69
y="(((height - title_height) / 2) `max` 0)"/>
70
<title color="#e8e5dd"
72
y="(((height - title_height) / 2) `max` 0)"/>
75
y="(((height - title_height) / 2) `max` 0)"/>
78
<draw_ops name="draw_title">
79
<!-- Background gradient -->
80
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
81
<color value="#faf7ee" />
82
<color value="#e0d6ba" />
83
<color value="#e0d6ba" />
86
<!-- Topmost dark line -->
87
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
89
<!-- Darkening of the left arch -->
90
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="4" y1="1" y2="1"/>
91
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="2" y1="2" y2="2"/>
92
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="3" y2="3"/>
93
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="4" y2="4"/>
94
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="0" y1="5" y2="40"/>
96
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-5" x2="width" y1="1" y2="1"/>
97
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-3" x2="width" y1="2" y2="2"/>
98
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="3" y2="3"/>
99
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="4" y2="4"/>
100
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-1" x2="width" y1="5" y2="90"/>
102
<!-- Top highlight -->
103
<!-- This uses <tint> (which supports alpha) instead of <line> (which doesn't) -->
104
<tint color="#ffffff" alpha="0.55" x="5" y="1" width="width - 10" height="1"/>
105
<tint color="#ffffff" alpha="0.15" x="5" y="2" width="width - 10" height="1"/>
109
<draw_ops name="draw_title_inactive">
110
<!-- Background gradient -->
111
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
112
<color value="#faf7ee" />
113
<color value="#e0d6ba" />
114
<color value="#e0d6ba" />
117
<!-- Topmost dark line -->
118
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
120
<!-- Darkening of the left arch -->
121
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="4" y1="1" y2="1"/>
122
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="2" y1="2" y2="2"/>
123
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="3" y2="3"/>
124
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="4" y2="4"/>
125
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="0" y1="5" y2="40"/>
127
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-5" x2="width" y1="1" y2="1"/>
128
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-3" x2="width" y1="2" y2="2"/>
129
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="3" y2="3"/>
130
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width" y1="4" y2="4"/>
131
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-1" x2="width" y1="5" y2="90"/>
133
<!-- Top highlight -->
134
<tint color="#ffffff" alpha="0.55" x="5" y="1" width="width - 10" height="1"/>
135
<tint color="#ffffff" alpha="0.15" x="5" y="2" width="width - 10" height="1"/>
139
<draw_ops name="draw_title_maximized">
140
<!-- Background gradient -->
141
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
142
<color value="#faf7ee" />
143
<color value="#e0d6ba" />
144
<color value="#e0d6ba" />
147
<!-- Topmost dark line -->
148
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
150
<!-- Top highlight -->
151
<tint color="#ffffff" alpha="0.55" x="0" y="1" width="width" height="1"/>
152
<tint color="#ffffff" alpha="0.15" x="0" y="2" width="width" height="1"/>
155
<draw_ops name="draw_title_maximized_inactive">
156
<!-- Background gradient -->
157
<gradient type="vertical" x="0" y="0" width="width+9" height="height">
158
<color value="#faf7ee" />
159
<color value="#e0d6ba" />
162
<!-- Topmost dark line -->
163
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="0" y2="0"/>
165
<!-- Top highlight -->
166
<tint color="#ffffff" alpha="0.55" x="0" y="1" width="width" height="1"/>
167
<tint color="#ffffff" alpha="0.15" x="0" y="2" width="width" height="1"/>
170
<!-- Window Frames -->
172
<draw_ops name="draw_frame">
173
<rectangle color="shade/gtk:bg[NORMAL]/0.74" x="0" y="0" width="width" height="height" filled="true"/>
177
<draw_ops name="bottom_edge">
178
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="width" y1="height-1" y2="height-1"/>
179
<!--bottom left rounding-->
180
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="0" y2="0"/>
181
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="1" y1="1" y2="1"/>
182
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="2" y1="2" y2="2"/>
183
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="4" y1="3" y2="3"/>
184
<line color="shade/gtk:bg[NORMAL]/0.74" x1="0" x2="10" y1="4" y2="4"/>
185
<!--bottom right rounding-->
186
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width-1" y1="0" y2="0"/>
187
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-2" x2="width-1" y1="1" y2="1"/>
188
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-3" x2="width-2" y1="2" y2="2"/>
189
<line color="shade/gtk:bg[NORMAL]/0.74" x1="width-5" x2="width-3" y1="3" y2="3"/>
195
<draw_ops name="button_close_normal">
196
<image filename="button_close_normal.png" x="0" y="1" width="object_width" height="object_height"/>
198
<draw_ops name="button_close_prelight">
199
<image filename="button_close_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
201
<draw_ops name="button_close_inactive_prelight">
202
<image filename="button_close_prelight_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
204
<draw_ops name="button_close_pressed">
205
<image filename="button_close_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
207
<draw_ops name="button_close_inactive">
208
<image filename="button_close_normal_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
211
<!-- maximize button-->
212
<draw_ops name="button_max_normal">
213
<image filename="button_max_normal.png" x="0" y="1" width="object_width" height="object_height"/>
215
<draw_ops name="button_max_prelight">
216
<image filename="button_max_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
218
<draw_ops name="button_max_inactive_prelight">
219
<image filename="button_max_prelight_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
221
<draw_ops name="button_max_inactive_prelight_restore_unfocused">
222
<image filename="button_max_restore_prelight_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
224
<draw_ops name="button_max_pressed">
225
<image filename="button_max_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
227
<draw_ops name="button_max_inactive">
228
<image filename="button_max_normal_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
230
<draw_ops name="button_max_inactive_restore_unfocused">
231
<image filename="button_max_restore_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
233
<draw_ops name="button_max_restore">
234
<image filename="button_max_restore.png" x="0" y="1" width="object_width" height="object_height"/>
237
<!-- minimize button-->
238
<draw_ops name="button_min_normal">
239
<image filename="button_min_normal.png" x="0" y="1" width="object_width" height="object_height"/>
241
<draw_ops name="button_min_prelight">
242
<image filename="button_min_prelight.png" x="0" y="1" width="object_width" height="object_height"/>
244
<draw_ops name="button_min_inactive_prelight">
245
<image filename="button_min_prelight_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
247
<draw_ops name="button_min_pressed">
248
<image filename="button_min_pressed.png" x="0" y="1" width="object_width" height="object_height"/>
250
<draw_ops name="button_min_inactive">
251
<image filename="button_min_normal_unfocused.png" x="0" y="1" width="object_width" height="object_height"/>
255
<draw_ops name="button_menu_normal">
256
<image filename="menu.png" x="0" y="0" width="20" height="18"/>
258
<draw_ops name="button_menu_prelight">
259
<image filename="menu.png" x="0" y="0" width="20" height="18"/>
261
<draw_ops name="button_menu_inactive_prelight">
262
<image filename="menu.png" x="0" y="0" width="20" height="18"/>
264
<draw_ops name="button_menu_pressed">
265
<image filename="menu_over.png" x="0" y="0" width="20" height="18"/>
267
<draw_ops name="button_menu_inactive">
268
<image filename="menu.png" x="0" y="0" width="20" height="18"/>
273
<!-- Frame styles -->
274
<frame_style name="frame_style_normal_focused" geometry="frame_geometry_normal">
275
<piece position="title" draw_ops="draw_title_text_normal"/>
276
<piece position="titlebar" draw_ops="draw_title"/>
277
<piece position="left_edge" draw_ops="draw_frame"/>
278
<piece position="right_edge" draw_ops="draw_frame"/>
279
<piece position="bottom_edge" draw_ops="bottom_edge"/>
280
<button function="close" state="normal" draw_ops="button_close_normal"/>
281
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
282
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
283
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
284
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
285
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
286
<button function="maximize" state="normal" draw_ops="button_max_normal"/>
287
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
288
<button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
289
<button function="menu" state="normal" draw_ops="button_menu_normal"/>
290
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
291
<button function="menu" state="pressed" draw_ops="button_menu_pressed"/>
294
<frame_style name="frame_style_normal_unfocused" geometry="frame_geometry_normal">
295
<piece position="title" draw_ops="draw_title_text_inactive"/>
296
<piece position="titlebar" draw_ops="draw_title_inactive"/>
297
<piece position="left_edge" draw_ops="draw_frame"/>
298
<piece position="right_edge" draw_ops="draw_frame"/>
299
<piece position="bottom_edge" draw_ops="bottom_edge"/>
300
<button function="close" state="normal" draw_ops="button_close_inactive"/>
301
<button function="close" state="prelight" draw_ops="button_close_inactive_prelight"/>
302
<button function="close" state="pressed" draw_ops="button_close_inactive"/>
303
<button function="minimize" state="normal" draw_ops="button_min_inactive"/>
304
<button function="minimize" state="prelight" draw_ops="button_min_inactive_prelight"/>
305
<button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
306
<button function="maximize" state="normal" draw_ops="button_max_inactive"/>
307
<button function="maximize" state="prelight" draw_ops="button_max_inactive_prelight"/>
308
<button function="maximize" state="pressed" draw_ops="button_max_inactive"/>
309
<button function="menu" state="normal" draw_ops="button_menu_inactive"/>
310
<button function="menu" state="prelight" draw_ops="button_menu_inactive_prelight"/>
311
<button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
314
<frame_style name="frame_style_maximized_focused" geometry="frame_geometry_abnormal">
315
<piece position="title" draw_ops="draw_title_text_normal"/>
316
<piece position="titlebar" draw_ops="draw_title_maximized"/>
317
<piece position="left_edge" draw_ops="draw_frame"/>
318
<piece position="right_edge" draw_ops="draw_frame"/>
319
<piece position="bottom_edge" draw_ops="bottom_edge"/>
320
<button function="close" state="normal" draw_ops="button_close_normal"/>
321
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
322
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
323
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
324
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
325
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
326
<button function="maximize" state="normal" draw_ops="button_max_restore"/>
327
<button function="maximize" state="prelight" draw_ops="button_max_restore"/>
328
<button function="maximize" state="pressed" draw_ops="button_max_restore"/>
329
<button function="menu" state="normal" draw_ops="button_menu_normal"/>
330
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
331
<button function="menu" state="pressed" draw_ops="button_menu_normal"/>
334
<frame_style name="frame_style_maximized_unfocused" geometry="frame_geometry_abnormal">
335
<piece position="title" draw_ops="draw_title_text_inactive"/>
336
<piece position="titlebar" draw_ops="draw_title_maximized_inactive"/>
337
<piece position="left_edge" draw_ops="draw_frame"/>
338
<piece position="right_edge" draw_ops="draw_frame"/>
339
<piece position="bottom_edge" draw_ops="bottom_edge"/>
340
<button function="close" state="normal" draw_ops="button_close_inactive"/>
341
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
342
<button function="close" state="pressed" draw_ops="button_close_inactive"/>
343
<button function="minimize" state="normal" draw_ops="button_min_inactive"/>
344
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
345
<button function="minimize" state="pressed" draw_ops="button_min_inactive"/>
346
<button function="maximize" state="normal" draw_ops="button_max_inactive_restore_unfocused"/>
347
<button function="maximize" state="prelight" draw_ops="button_max_inactive_prelight_restore_unfocused"/>
348
<button function="maximize" state="pressed" draw_ops="button_max_inactive_restore_unfocused"/>
349
<button function="menu" state="normal" draw_ops="button_menu_inactive"/>
350
<button function="menu" state="prelight" draw_ops="button_menu_inactive"/>
351
<button function="menu" state="pressed" draw_ops="button_menu_inactive"/>
354
<frame_style_set name="frame_style_set_normal">
355
<frame focus="yes" state="normal" resize="both" style="frame_style_normal_focused"/>
356
<frame focus="no" state="normal" resize="both" style="frame_style_normal_unfocused"/>
357
<frame focus="yes" state="maximized" style="frame_style_maximized_focused"/>
358
<frame focus="no" state="maximized" style="frame_style_maximized_unfocused"/>
359
<frame focus="yes" state="shaded" style="frame_style_normal_focused"/>
360
<frame focus="no" state="shaded" style="frame_style_normal_unfocused"/>
361
<frame focus="yes" state="maximized_and_shaded" style="frame_style_maximized_focused"/>
362
<frame focus="no" state="maximized_and_shaded" style="frame_style_maximized_unfocused"/>
365
<window type="normal" style_set="frame_style_set_normal"/>
366
<window type="dialog" style_set="frame_style_set_normal"/>
367
<window type="modal_dialog" style_set="frame_style_set_normal"/>
368
<window type="menu" style_set="frame_style_set_normal"/>
369
<window type="utility" style_set="frame_style_set_normal"/>
370
<window type="border" style_set="frame_style_set_normal"/>
372
<menu_icon function="close" state="normal" draw_ops="button_close_normal"/>
373
<menu_icon function="maximize" state="normal" draw_ops="button_max_normal"/>
374
<menu_icon function="unmaximize" state="normal" draw_ops="button_max_normal"/>
375
<menu_icon function="minimize" state="normal" draw_ops="button_min_normal"/>