5
<author>Havoc Pennington <hp@redhat.com></author>
6
<copyright>Â Havoc Pennington, 2002</copyright>
7
<date>February 3, 2002</date>
8
<description>Simple low-overhead default theme that comes with Metacity.</description>
11
<frame_geometry name="normal">
12
<distance name="left_width" value="6"/>
13
<distance name="right_width" value="6"/>
14
<distance name="bottom_height" value="7"/>
15
<distance name="left_titlebar_edge" value="6"/>
16
<distance name="right_titlebar_edge" value="6"/>
17
<aspect_ratio name="button" value="1.0"/>
18
<distance name="title_vertical_pad" value="3"/>
19
<border name="title_border" left="3" right="4" top="4" bottom="3"/>
20
<border name="button_border" left="0" right="0" top="1" bottom="1"/>
23
<!-- strip borders off the normal geometry -->
24
<frame_geometry name="normal_small_borders" parent="normal">
25
<distance name="left_width" value="0"/>
26
<distance name="right_width" value="0"/>
27
<distance name="bottom_height" value="0"/>
28
<distance name="left_titlebar_edge" value="0"/>
29
<distance name="right_titlebar_edge" value="0"/>
32
<frame_geometry name="utility" title_scale="xx-small">
33
<distance name="left_width" value="3"/>
34
<distance name="right_width" value="3"/>
35
<distance name="bottom_height" value="4"/>
36
<distance name="left_titlebar_edge" value="3"/>
37
<distance name="right_titlebar_edge" value="3"/>
38
<distance name="button_width" value="11"/>
39
<distance name="button_height" value="11"/>
40
<distance name="title_vertical_pad" value="1"/>
41
<border name="title_border" left="3" right="4" top="3" bottom="3"/>
42
<border name="button_border" left="0" right="0" top="1" bottom="1"/>
45
<frame_geometry name="border" has_title="false">
46
<distance name="left_width" value="4"/>
47
<distance name="right_width" value="4"/>
48
<distance name="bottom_height" value="4"/>
49
<distance name="left_titlebar_edge" value="0"/>
50
<distance name="right_titlebar_edge" value="0"/>
51
<distance name="button_width" value="0"/>
52
<distance name="button_height" value="0"/>
53
<distance name="title_vertical_pad" value="4"/>
54
<border name="title_border" left="0" right="0" top="0" bottom="0"/>
55
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
58
<!-- define constants -->
59
<constant name="ArrowSpacer" value="8"/>
60
<constant name="MinArrowSize" value="7"/>
61
<constant name="ButtonIPad" value="6"/>
62
<constant name="ThickLineWidth" value="3"/>
63
<constant name="IconTitleSpacing" value="2"/>
64
<constant name="SpacerWidth" value="6"/>
65
<constant name="SpacerHeight" value="9"/>
66
<constant name="SpacerOffset" value="4"/>
70
<draw_ops name="button_pressed_bg">
71
<gtk_box state="active" shadow="in" x="0" y="0" width="width" height="height"/>
74
<draw_ops name="menu_button">
75
<gtk_arrow state="normal" shadow="out" arrow="down"
76
x="ArrowSpacer `min` (width-MinArrowSize)/2"
77
y="ArrowSpacer `min` (height-MinArrowSize)/2"
78
width="(width-(ArrowSpacer*2)) `max` MinArrowSize"
79
height="(height-(ArrowSpacer*2)) `max` MinArrowSize"/>
82
<draw_ops name="menu_button_pressed">
83
<include name="menu_button"/>
86
<draw_ops name="minimize_button">
87
<line color="gtk:fg[NORMAL]"
89
y1="height - ButtonIPad - ThickLineWidth + 1"
90
x2="width - ButtonIPad"
91
y2="height - ButtonIPad - ThickLineWidth + 1"
92
width="3"/> <!-- FIXME allow a constant here -->
95
<draw_ops name="minimize_button_pressed">
96
<include name="minimize_button"/>
99
<draw_ops name="maximize_button">
100
<rectangle color="gtk:fg[NORMAL]" filled="false"
101
x="ButtonIPad" y="ButtonIPad" width="width-ButtonIPad*2-1" height="height-ButtonIPad*2-1"/>
102
<line color="gtk:fg[NORMAL]" width="3"
103
x1="ButtonIPad" y1="ButtonIPad+1" x2="width-ButtonIPad" y2="ButtonIPad+1"/>
106
<draw_ops name="maximize_button_pressed">
107
<include name="maximize_button"/>
110
<draw_ops name="mini_window_icon">
111
<rectangle color="gtk:bg[NORMAL]" filled="true"
112
x="0" y="0" width="width-1" height="height-1"/>
113
<rectangle color="gtk:fg[NORMAL]" filled="false"
114
x="0" y="0" width="width-1" height="height-1"/>
115
<line color="gtk:fg[NORMAL]" width="2"
116
x1="0" y1="1" x2="width" y2="1"/>
119
<draw_ops name="restore_button">
120
<include name="mini_window_icon"
121
x="ButtonIPad" y="ButtonIPad"
122
width="width - 5 - ButtonIPad"
123
height="height - 5 - ButtonIPad"/>
124
<include name="mini_window_icon"
125
x="3 + ButtonIPad" y="3 + ButtonIPad"
126
width="width - 5 - ButtonIPad"
127
height="height - 5 - ButtonIPad"/>
130
<draw_ops name="restore_button_pressed">
131
<include name="restore_button"/>
134
<draw_ops name="close_button">
135
<line color="gtk:fg[NORMAL]"
136
x1="ButtonIPad" y1="ButtonIPad"
137
x2="width - ButtonIPad - 1" y2="height - ButtonIPad - 1"
139
<line color="gtk:fg[NORMAL]"
140
x1="ButtonIPad" y1="height - ButtonIPad - 1"
141
x2="width - ButtonIPad - 1" y2="ButtonIPad"
145
<draw_ops name="close_button_pressed">
146
<include name="close_button"/>
149
<draw_ops name="outer_bevel">
150
<rectangle color="gtk:fg[NORMAL]"
151
x="0" y="0" width="width-1" height="height-1"/>
152
<line color="gtk:light[NORMAL]"
153
x1="1" y1="1" x2="1" y2="height-2"/>
154
<line color="gtk:light[NORMAL]"
155
x1="1" y1="1" x2="width-2" y2="1"/>
156
<line color="gtk:dark[NORMAL]"
157
x1="width-2" y1="1" x2="width-2" y2="height-2"/>
158
<line color="gtk:dark[NORMAL]"
159
x1="1" y1="height-2" x2="width-2" y2="height-2"/>
162
<draw_ops name="blank">
166
<draw_ops name="focus_outline">
167
<rectangle color="gtk:fg[NORMAL]"
168
x="left_width-1" y="top_height-1"
169
width="width-left_width-right_width+1"
170
height="height-top_height-bottom_height+1"/>
173
<draw_ops name="focus_background">
174
<include name="outer_bevel"/>
175
<include name="focus_outline"/>
178
<draw_ops name="background_unfocused">
179
<include name="outer_bevel"/>
180
<include name="focus_outline"/>
183
<draw_ops name="title_gradient">
184
<gradient type="diagonal" x="0" y="0" width="width-SpacerWidth" height="height">
185
<color value="blend/gtk:bg[NORMAL]/gtk:bg[SELECTED]/0.6"/>
186
<color value="gtk:bg[SELECTED]"/>
190
<draw_ops name="title_spacer">
191
<gtk_vline state="normal" x="width+1-SpacerWidth/2"
193
y2="height - SpacerOffset"/>
196
<draw_ops name="title_text_focused_with_icon">
197
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
198
<title color="gtk:fg[SELECTED]"
199
x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
200
y="((height - title_height) / 2) `max` 0"/>
201
<icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
202
y="(height-mini_icon_height) / 2"
203
width="mini_icon_width" height="mini_icon_height"/>
206
<draw_ops name="title_text_focused_no_icon">
207
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
208
<title color="gtk:fg[SELECTED]"
209
x="(0 `max` (width-title_width)) / 2"
210
y="((height - title_height) / 2) `max` 0"/>
213
<draw_ops name="title_text_with_icon">
214
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
215
<title color="gtk:fg[NORMAL]"
216
x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
217
y="((height - title_height) / 2) `max` 0"/>
218
<icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
219
y="(height-mini_icon_height) / 2"
220
width="mini_icon_width" height="mini_icon_height"/>
223
<draw_ops name="title_text_no_icon">
224
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
225
<title color="gtk:fg[NORMAL]"
226
x="(0 `max` (width-title_width)) / 2"
227
y="((height - title_height) / 2) `max` 0"/>
230
<draw_ops name="title_normal">
231
<include name="title_spacer"/>
232
<include name="title_text_with_icon"/>
235
<draw_ops name="title_focused">
236
<include name="title_gradient"/>
237
<include name="title_spacer"/>
238
<include name="title_text_focused_with_icon"/>
241
<draw_ops name="title_utility">
242
<include name="title_spacer"/>
243
<include name="title_text_no_icon"/>
246
<draw_ops name="title_utility_focused">
247
<include name="title_gradient"/>
248
<include name="title_spacer"/>
249
<include name="title_text_focused_no_icon"/>
252
<frame_style name="normal_unfocused" geometry="normal">
253
<piece position="entire_background" draw_ops="background_unfocused"/>
254
<piece position="title" draw_ops="title_normal"/>
256
<!-- we don't specify for prelight, so normal is used -->
257
<button function="left_left_background" state="pressed" draw_ops="button_pressed_bg"/>
258
<button function="left_middle_background" state="pressed" draw_ops="button_pressed_bg"/>
259
<button function="left_right_background" state="pressed" draw_ops="button_pressed_bg"/>
260
<button function="right_left_background" state="pressed" draw_ops="button_pressed_bg"/>
261
<button function="right_middle_background" state="pressed" draw_ops="button_pressed_bg"/>
262
<button function="right_right_background" state="pressed" draw_ops="button_pressed_bg"/>
264
<button function="close" state="normal" draw_ops="close_button"/>
265
<button function="close" state="pressed" draw_ops="close_button_pressed"/>
266
<button function="minimize" state="normal" draw_ops="minimize_button"/>
267
<button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
268
<button function="maximize" state="normal" draw_ops="maximize_button"/>
269
<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
270
<button function="menu" state="normal" draw_ops="menu_button"/>
271
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
274
<frame_style name="normal_focused" geometry="normal" parent="normal_unfocused">
275
<piece position="entire_background" draw_ops="focus_background"/>
276
<piece position="title" draw_ops="title_focused"/>
279
<frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
280
<piece position="entire_background" draw_ops="blank"/>
281
<button function="maximize" state="normal" draw_ops="restore_button"/>
282
<button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
285
<frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
286
<piece position="entire_background" draw_ops="focus_outline"/>
287
<button function="maximize" state="normal" draw_ops="restore_button"/>
288
<button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
291
<frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
292
<piece position="title" draw_ops="title_utility"/>
295
<frame_style name="utility_focused" geometry="utility" parent="normal_focused">
296
<piece position="title" draw_ops="title_utility_focused"/>
299
<frame_style name="border" geometry="border" parent="normal_unfocused">
300
<piece position="entire_background" draw_ops="outer_bevel"/>
301
<piece position="title" draw_ops="blank"/>
304
<frame_style_set name="normal">
305
<frame focus="yes" state="normal" resize="both" style="normal_focused"/>
306
<frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
307
<frame focus="yes" state="maximized" style="maximized_focused"/>
308
<frame focus="no" state="maximized" style="maximized_unfocused"/>
309
<frame focus="yes" state="shaded" style="normal_focused"/>
310
<frame focus="no" state="shaded" style="normal_unfocused"/>
311
<frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
312
<frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
315
<frame_style_set name="utility" parent="normal">
316
<frame focus="yes" state="normal" resize="both" style="utility_focused"/>
317
<frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
318
<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
319
<frame focus="yes" state="maximized" style="utility_focused"/>
320
<frame focus="no" state="maximized" style="utility_unfocused"/>
321
<frame focus="yes" state="shaded" style="utility_focused"/>
322
<frame focus="no" state="shaded" style="utility_unfocused"/>
323
<frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
324
<frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
327
<frame_style_set name="border">
328
<frame focus="yes" state="normal" resize="both" style="border"/>
329
<frame focus="no" state="normal" resize="both" style="border"/>
330
<frame focus="yes" state="maximized" style="border"/>
331
<frame focus="no" state="maximized" style="border"/>
332
<frame focus="yes" state="shaded" style="border"/>
333
<frame focus="no" state="shaded" style="border"/>
334
<frame focus="yes" state="maximized_and_shaded" style="border"/>
335
<frame focus="no" state="maximized_and_shaded" style="border"/>
338
<window type="normal" style_set="normal"/>
339
<window type="dialog" style_set="normal"/>
340
<window type="modal_dialog" style_set="normal"/>
341
<window type="menu" style_set="normal"/>
342
<window type="utility" style_set="utility"/>
343
<window type="border" style_set="border"/>
345
<menu_icon function="close" state="normal" draw_ops="close_button"/>
346
<menu_icon function="maximize" state="normal" draw_ops="maximize_button"/>
347
<menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/>
348
<menu_icon function="minimize" state="normal" draw_ops="minimize_button"/>