~murrine-themes-team/murrine-themes/trunk

« back to all changes in this revision

Viewing changes to Edge/metacity-1/metacity-theme-1.xml

  • Committer: Luca Forina
  • Date: 2008-12-20 21:45:52 UTC
  • Revision ID: rocksolid@fastwebnet.it-20081220214552-0gqkqd5m26l2giy9
updated Edge and Tech themes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--    $Id: metacity-theme-1.xml 1398 2008-01-23 00:52:03Z acimitan $   -->
 
3
<metacity_theme>
 
4
<info>
 
5
        <name>Unity</name>
 
6
        <author>Andrea Cimitan &lt;andrea.cimitan@gmail.com&gt;</author>
 
7
        <copyright>&#194; 2008 Andrea Cimitan</copyright>
 
8
        <date>Mar, 2008</date>
 
9
        <description>Unity Metacity Theme for Clearlooks</description>
 
10
</info>
 
11
 
 
12
<!-- ::: GEOMETRY ::: -->
 
13
<frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
 
14
        <distance name="left_width" value="2"/>
 
15
        <distance name="right_width" value="2"/>
 
16
        <distance name="bottom_height" value="2"/>
 
17
        <distance name="left_titlebar_edge" value="3"/>
 
18
        <distance name="right_titlebar_edge" value="3"/>
 
19
        <aspect_ratio name="button" value="0.8"/>
 
20
        <distance name="title_vertical_pad" value="0"/>
 
21
        <border name="title_border" left="2" right="2" top="4" bottom="3"/>
 
22
        <border name="button_border" left="1" right="1" top="2" bottom="2"/>
 
23
</frame_geometry>
 
24
 
 
25
<frame_geometry name="shaded" parent="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true"/>
 
26
 
 
27
<frame_geometry name="normal_maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
 
28
        <!-- strip frame spacing off the normal geometry when maximised -->
 
29
        <distance name="left_width" value="0"/>
 
30
        <distance name="right_width" value="0"/>
 
31
        <distance name="bottom_height" value="0"/>
 
32
        <distance name="left_titlebar_edge" value="1"/>
 
33
        <distance name="right_titlebar_edge" value="1"/>
 
34
</frame_geometry>
 
35
 
 
36
<frame_geometry name="utility" title_scale="small" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
 
37
        <distance name="left_width" value="2"/>
 
38
        <distance name="right_width" value="2"/>
 
39
        <distance name="bottom_height" value="2"/>
 
40
        <distance name="left_titlebar_edge" value="3"/>
 
41
        <distance name="right_titlebar_edge" value="3"/>
 
42
        <distance name="title_vertical_pad" value="0"/>
 
43
        <border name="title_border" left="2" right="2" top="4" bottom="3"/>
 
44
        <border name="button_border" left="0" right="0" top="2" bottom="2"/>
 
45
        <aspect_ratio name="button" value="1"/>
 
46
</frame_geometry>
 
47
 
 
48
<frame_geometry name="border" has_title="false">
 
49
        <distance name="left_width" value="2"/>
 
50
        <distance name="right_width" value="2"/>
 
51
        <distance name="bottom_height" value="2"/>
 
52
        <distance name="left_titlebar_edge" value="0"/>
 
53
        <distance name="right_titlebar_edge" value="0"/>
 
54
        <distance name="button_width" value="0"/>
 
55
        <distance name="button_height" value="0"/>
 
56
        <distance name="title_vertical_pad" value="4"/>
 
57
        <border name="title_border" left="0" right="0" top="0" bottom="0"/>
 
58
        <border name="button_border" left="0" right="0" top="0" bottom="0"/>
 
59
</frame_geometry>
 
60
 
 
61
<!-- button minimum size -->
 
62
<constant name="Bmin" value="7"/>
 
63
<!-- button inside padding -->
 
64
<constant name="Bpad" value="6"/>
 
65
 
 
66
<!-- ::: CORNERS ::: -->
 
67
<draw_ops name="corners_outline_selected_top">
 
68
        <!-- top left -->
 
69
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="1" y1="3" x2="1" y2="3"/>
 
70
        <line color="shade/gtk:bg[NORMAL]/0.73" x1="1" y1="4" x2="1" y2="4"/>
 
71
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="2" y1="2" x2="2" y2="2"/>
 
72
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="3" y1="1" x2="3" y2="1"/>
 
73
        <line color="shade/gtk:bg[NORMAL]/0.73" x1="4" y1="1" x2="4" y2="1"/>
 
74
 
 
75
        <!-- top right -->
 
76
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="width-2" y1="3" x2="width-2" y2="3"/>
 
77
        <line color="shade/gtk:bg[NORMAL]/0.73" x1="width-2" y1="4" x2="width-2" y2="4"/>
 
78
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="width-3" y1="2" x2="width-3" y2="2"/>
 
79
        <line color="shade/gtk:bg[NORMAL]/0.6" x1="width-4" y1="1" x2="width-4" y2="1"/>
 
80
        <line color="shade/gtk:bg[NORMAL]/0.73" x1="width-5" y1="1" x2="width-5" y2="1"/>
 
81
</draw_ops>
 
82
 
 
83
<draw_ops name="corners_outline_top">
 
84
        <!-- top left -->
 
85
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="3" x2="1" y2="3"/>
 
86
        <line color="shade/gtk:bg[NORMAL]/0.68" x1="1" y1="4" x2="1" y2="4"/>
 
87
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="2" x2="2" y2="2"/>
 
88
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="1" x2="3" y2="1"/>
 
89
        <line color="shade/gtk:bg[NORMAL]/0.68" x1="4" y1="1" x2="4" y2="1"/>
 
90
 
 
91
        <!-- top right -->
 
92
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="3" x2="width-2" y2="3"/>
 
93
        <line color="shade/gtk:bg[NORMAL]/0.68" x1="width-2" y1="4" x2="width-2" y2="4"/>
 
94
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-3" y1="2" x2="width-3" y2="2"/>
 
95
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-4" y1="1" x2="width-4" y2="1"/>
 
96
        <line color="shade/gtk:bg[NORMAL]/0.68" x1="width-5" y1="1" x2="width-5" y2="1"/>
 
97
</draw_ops>
 
98
 
 
99
<draw_ops name="corners_outline_selected_bottom">
 
100
        <!-- bottom left -->
 
101
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="1" y1="height-4" x2="1" y2="height-5"/>
 
102
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="2" y1="height-3" x2="2" y2="height-3"/>
 
103
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="2" y1="height-2" x2="4" y2="height-2"/>
 
104
 
 
105
        <!-- bottom right -->
 
106
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
 
107
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
108
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
 
109
</draw_ops>
 
110
 
 
111
<draw_ops name="corners_outline_bottom">
 
112
        <!-- bottom left -->
 
113
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="height-4" x2="1" y2="height-5"/>
 
114
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-3" x2="2" y2="height-3"/>
 
115
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-2" x2="4" y2="height-2"/>
 
116
 
 
117
        <!-- bottom right -->
 
118
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
 
119
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
120
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
 
121
</draw_ops>
 
122
 
 
123
<draw_ops name="corners_highlight">
 
124
        <!-- ** corner highlight for left top ** -->
 
125
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="3" x2="2" y2="4"/>
 
126
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="3" y1="2" x2="4" y2="2"/>
 
127
 
 
128
        <!-- ** corner highlight for right top ** -->
 
129
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
130
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="width-5" y1="2" x2="width-4" y2="2"/>
 
131
 
 
132
        <!-- ** corner highlight for left bottom ** -->
 
133
        <!--<line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
134
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="height-3" x2="4" y2="height-3"/>-->
 
135
 
 
136
        <!-- ** corner highlight for right bottom ** -->
 
137
        <!--<line color="shade/gtk:bg[NORMAL]/0.9" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
138
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
 
139
</draw_ops>
 
140
 
 
141
<draw_ops name="corners_highlight_unfocused">
 
142
        <!-- ** corner highlight for left top ** -->
 
143
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="3" x2="2" y2="4"/>
 
144
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="3" y1="2" x2="4" y2="2"/>
 
145
 
 
146
        <!-- ** corner highlight for right top ** -->
 
147
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
148
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="width-5" y1="2" x2="width-4" y2="2"/>
 
149
 
 
150
        <!-- ** corner highlight for left bottom ** -->
 
151
        <!--<line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
152
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="height-3" x2="4" y2="height-3"/>-->
 
153
 
 
154
        <!-- ** corner highlight for right bottom ** -->
 
155
        <!--<line color="shade/gtk:bg[NORMAL]/0.9" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
156
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
 
157
</draw_ops>
 
158
 
 
159
<draw_ops name="corners_highlight_shaded">
 
160
        <!-- ** corner highlight for left top ** -->
 
161
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="3" x2="2" y2="4"/>
 
162
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="3" y1="2" x2="4" y2="2"/>
 
163
 
 
164
        <!-- ** corner highlight for right top ** -->
 
165
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
166
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="width-5" y1="2" x2="width-4" y2="2"/>
 
167
 
 
168
        <!-- ** corner highlight for left bottom ** -->
 
169
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
170
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="3" y1="height-3" x2="4" y2="height-3"/>
 
171
 
 
172
        <!-- ** corner highlight for right bottom ** -->
 
173
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
174
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
175
</draw_ops>
 
176
 
 
177
<draw_ops name="corners_highlight_shaded_unfocused">
 
178
        <!-- ** corner highlight for left top ** -->
 
179
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="2" y1="3" x2="2" y2="4"/>
 
180
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="3" y1="2" x2="4" y2="2"/>
 
181
 
 
182
        <!-- ** corner highlight for right top ** -->
 
183
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
184
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="width-5" y1="2" x2="width-4" y2="2"/>
 
185
 
 
186
        <!-- ** corner highlight for left bottom ** -->
 
187
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
188
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="3" y1="height-3" x2="4" y2="height-3"/>
 
189
 
 
190
        <!-- ** corner highlight for right bottom ** -->
 
191
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
192
        <line color="shade/gtk:bg[NORMAL]/0.92" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
193
</draw_ops>
 
194
 
 
195
<draw_ops name="window_bg">
 
196
        <rectangle color="gtk:bg[NORMAL]" filled="true" x="0" y="0" width="width" height="height"/>
 
197
</draw_ops>
 
198
 
 
199
<!-- ::: BEVEL FOCUSED ::: -->
 
200
<draw_ops name="bevel">
 
201
        <include name="window_bg"/>
 
202
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
 
203
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="width - 2" y1="2" x2="width - 2" y2="height - 2"/>
 
204
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="1" y1="1" x2="width - 2" y2="1"/>
 
205
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="1" y1="2" x2="1" y2="height - 2"/>
 
206
 
 
207
        <!-- ** fancy gradient ** -->
 
208
        <gradient type="vertical" x="2" y="top_height/2" width="width-4" height="top_height/2-1">
 
209
                <color value="shade/gtk:bg[NORMAL]/1.025"/>
 
210
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
211
        </gradient>
 
212
        <gradient type="vertical" x="2" y="2" width="width-4" height="top_height/2-2">
 
213
                <color value="shade/gtk:bg[NORMAL]/1.07"/>
 
214
                <color value="shade/gtk:bg[NORMAL]/1.045"/>
 
215
        </gradient>
 
216
 
 
217
        <!-- ** border outline ** -->
 
218
        <rectangle color="shade/gtk:bg[NORMAL]/0.55" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
 
219
</draw_ops>
 
220
 
 
221
<draw_ops name="bevel_maximized">
 
222
        <include name="window_bg"/>
 
223
 
 
224
        <!-- ** 3d beveled frame ** -->
 
225
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="0" y1="0" x2="width" y2="0"/>
 
226
 
 
227
        <!-- ** fancy gradient ** -->
 
228
        <gradient type="vertical" x="0" y="top_height/2" width="width" height="top_height/2-1">
 
229
                <color value="shade/gtk:bg[NORMAL]/1.025"/>
 
230
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
231
        </gradient>
 
232
        <gradient type="vertical" x="0" y="1" width="width" height="top_height/2-1">
 
233
                <color value="shade/gtk:bg[NORMAL]/1.07"/>
 
234
                <color value="shade/gtk:bg[NORMAL]/1.045"/>
 
235
        </gradient>
 
236
 
 
237
        <line color="gtk:bg[NORMAL]" x1="0" y1="title_height + 6" x2="width" y2="title_height + 6"/>
 
238
</draw_ops>
 
239
 
 
240
<draw_ops name="round_bevel">
 
241
        <include name="bevel"/>
 
242
        <include name="corners_outline_selected_top"/>
 
243
        <!--<include name="corners_outline_bottom"/>-->
 
244
        <include name="corners_highlight"/>
 
245
</draw_ops>
 
246
 
 
247
<draw_ops name="bevel_shaded">
 
248
        <include name="bevel"/>
 
249
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="0" y1="height-1" x2="width" y2="height-1"/>
 
250
</draw_ops>
 
251
 
 
252
<draw_ops name="round_bevel_shaded">
 
253
        <include name="bevel"/>
 
254
        <include name="corners_outline_selected_top"/>
 
255
        <include name="corners_outline_selected_bottom"/>
 
256
        <include name="corners_highlight_shaded"/>
 
257
        <line color="shade/gtk:bg[NORMAL]/0.64" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
 
258
</draw_ops>
 
259
 
 
260
<!-- ::: BEVEL UNFOCUSED ::: -->
 
261
<draw_ops name="bevel_unfocused">
 
262
        <include name="window_bg"/>
 
263
 
 
264
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
 
265
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="width - 2" y1="2" x2="width - 2" y2="height - 2"/>
 
266
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="1" y1="1" x2="width - 2" y2="1"/>
 
267
        <line color="shade/gtk:bg[NORMAL]/1.12" x1="1" y1="2" x2="1" y2="height - 2"/>
 
268
 
 
269
        <!-- ** fancy gradient ** -->
 
270
        <gradient type="vertical" x="2" y="top_height/2" width="width-4" height="top_height/2-1">
 
271
                <color value="shade/gtk:bg[NORMAL]/1.025"/>
 
272
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
273
        </gradient>
 
274
        <gradient type="vertical" x="2" y="2" width="width-4" height="top_height/2-2">
 
275
                <color value="shade/gtk:bg[NORMAL]/1.07"/>
 
276
                <color value="shade/gtk:bg[NORMAL]/1.045"/>
 
277
        </gradient>
 
278
 
 
279
        <!-- ** border outline ** -->
 
280
        <rectangle color="shade/gtk:bg[NORMAL]/0.55" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
 
281
</draw_ops>
 
282
 
 
283
<draw_ops name="bevel_maximized_unfocused">
 
284
        <include name="window_bg"/>
 
285
 
 
286
        <!-- ** 3d beveled frame ** -->
 
287
        <line color="shade/gtk:bg[NORMAL]/1.14" x1="0" y1="0" x2="width" y2="0"/>
 
288
 
 
289
        <!-- ** fancy gradient ** -->
 
290
        <gradient type="vertical" x="0" y="top_height/2" width="width" height="top_height/2-1">
 
291
                <color value="shade/gtk:bg[NORMAL]/1.025"/>
 
292
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
293
        </gradient>
 
294
        <gradient type="vertical" x="0" y="1" width="width" height="top_height/2-1">
 
295
                <color value="shade/gtk:bg[NORMAL]/1.07"/>
 
296
                <color value="shade/gtk:bg[NORMAL]/1.045"/>
 
297
        </gradient>
 
298
</draw_ops>
 
299
 
 
300
<draw_ops name="round_bevel_unfocused">
 
301
        <include name="bevel_unfocused"/>
 
302
        <include name="corners_outline_top"/>
 
303
        <!--<include name="corners_outline_bottom"/>-->
 
304
        <include name="corners_highlight_unfocused"/>
 
305
</draw_ops>
 
306
 
 
307
<draw_ops name="round_bevel_unfocused_shaded">
 
308
        <include name="bevel_unfocused"/>
 
309
        <include name="corners_outline_top"/>
 
310
        <include name="corners_outline_bottom"/>
 
311
        <include name="corners_highlight_shaded_unfocused"/>
 
312
</draw_ops>
 
313
 
 
314
<!-- ::: BORDER ::: -->
 
315
<draw_ops name="border">
 
316
        <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
 
317
        <line color="shade/gtk:bg[NORMAL]/0.88" x1="width - 2" y1="1" x2="width - 2" y2="height - 2"/>
 
318
        <line color="shade/gtk:bg[NORMAL]/1.2" x1="1" y1="1" x2="width - 2" y2="1"/>
 
319
        <line color="shade/gtk:bg[NORMAL]/1.2" x1="1" y1="1" x2="1" y2="height - 2"/>
 
320
 
 
321
        <rectangle color="shade/gtk:bg[NORMAL]/0.55" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
 
322
</draw_ops>
 
323
 
 
324
<!-- ::: TITLES ::: -->
 
325
<draw_ops name="title_text">
 
326
        <title color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.26" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/>
 
327
</draw_ops>
 
328
 
 
329
<draw_ops name="title_text_unfocused">
 
330
        <title color="shade/gtk:bg[NORMAL]/1.11" x="5 `max` (width-title_width)/2+1" y="1 `max` ((height-title_height)/2)+1"/>
 
331
        <title color="gtk:fg[INSENSITIVE]" x="4 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
 
332
</draw_ops>
 
333
 
 
334
<draw_ops name="title">
 
335
        <include name="title_text"/>
 
336
</draw_ops>
 
337
 
 
338
<draw_ops name="title_unfocused">
 
339
        <include name="title_text_unfocused"/>
 
340
</draw_ops>
 
341
 
 
342
<!-- ::: BUTTONS ::: -->
 
343
<draw_ops name="button_bg">
 
344
        <!-- inset -->
 
345
        <gradient type="vertical" x="0" y="3" width="width" height="height-6">
 
346
                <color value="shade/gtk:bg[NORMAL]/0.94"/>
 
347
                <color value="shade/gtk:bg[NORMAL]/1.08"/>
 
348
        </gradient>
 
349
 
 
350
        <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="0" x2="width-3" y2="0"/>
 
351
        <line color="shade/gtk:bg[NORMAL]/0.97" x1="1" y1="1" x2="width-2" y2="1"/>
 
352
        <line color="shade/gtk:bg[NORMAL]/0.97" x1="0" y1="2" x2="width-1" y2="2"/>
 
353
        <line color="shade/gtk:bg[NORMAL]/0.96" x1="3" y1="0" x2="width-4" y2="0"/>
 
354
 
 
355
        <line color="shade/gtk:bg[NORMAL]/0.89" x1="2" y1="1" x2="width-3" y2="1"/>
 
356
        <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="2" x2="width-2" y2="2"/>
 
357
 
 
358
        <line color="shade/gtk:bg[NORMAL]/1.06" x1="2" y1="height-1" x2="width-3" y2="height-1"/>
 
359
        <line color="shade/gtk:bg[NORMAL]/1.03" x1="1" y1="height-2" x2="width-2" y2="height-2"/>
 
360
        <line color="shade/gtk:bg[NORMAL]/1.04" x1="0" y1="height-3" x2="width-1" y2="height-3"/>
 
361
        <line color="shade/gtk:bg[NORMAL]/1.09" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
 
362
 
 
363
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
 
364
        <line color="shade/gtk:bg[NORMAL]/1.06" x1="1" y1="height-3" x2="width-2" y2="height-3"/>
 
365
 
 
366
        <!-- border outline -->
 
367
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="3" y1="1" x2="width-4" y2="1"/>
 
368
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
 
369
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="1" y1="3" x2="1" y2="height-4"/>
 
370
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
 
371
 
 
372
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="2" y1="2" x2="width-3" y2="2"/>
 
373
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
 
374
 
 
375
        <!-- border smooth effect -->
 
376
        <line color="shade/gtk:bg[NORMAL]/1.01" x1="3" y1="2" x2="width-4" y2="2"/>
 
377
        <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="3" x2="2" y2="height-4"/>
 
378
        <line color="shade/gtk:bg[NORMAL]/0.94" x1="width-3" y1="3" x2="width-3" y2="height-4"/>
 
379
 
 
380
        <!-- inside highlight -->
 
381
        <line color="shade/gtk:bg[NORMAL]/1.125" x1="4" y1="2" x2="width-5" y2="2"/>
 
382
        <line color="shade/gtk:bg[NORMAL]/1.11" x1="2" y1="4" x2="2" y2="height-5"/>
 
383
        <!-- inside shadow -->
 
384
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="width-3" y1="4" x2="width-3" y2="height-5"/>
 
385
 
 
386
        <!-- fill gradient -->
 
387
        <gradient type="vertical" x="3" y="3" width="width-6" height="(height)/2-1">
 
388
                <color value="shade/gtk:bg[NORMAL]/1.04"/>
 
389
                <color value="shade/gtk:bg[NORMAL]/1.10"/>
 
390
        </gradient>
 
391
        <gradient type="vertical" x="3" y="(height)/2" width="width-6" height="(height)/2-2">
 
392
                <color value="shade/gtk:bg[NORMAL]/1.02"/>
 
393
                <color value="shade/gtk:bg[NORMAL]/1.08"/>
 
394
        </gradient>
 
395
 
 
396
        <!-- bottom border smooth effect -->
 
397
        <line color="shade/gtk:bg[NORMAL]/0.85" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
 
398
        <line color="shade/gtk:bg[NORMAL]/1.08" x1="4" y1="height-3" x2="width-5" y2="height-3"/>
 
399
</draw_ops>
 
400
 
 
401
<draw_ops name="button_bg_unfocused">
 
402
        <!-- inset -->
 
403
        <gradient type="vertical" x="0" y="3" width="width" height="height-6">
 
404
                <color value="shade/gtk:bg[NORMAL]/0.94"/>
 
405
                <color value="shade/gtk:bg[NORMAL]/1.08"/>
 
406
        </gradient>
 
407
 
 
408
        <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="0" x2="width-3" y2="0"/>
 
409
        <line color="shade/gtk:bg[NORMAL]/0.97" x1="1" y1="1" x2="width-2" y2="1"/>
 
410
        <line color="shade/gtk:bg[NORMAL]/0.97" x1="0" y1="2" x2="width-1" y2="2"/>
 
411
        <line color="shade/gtk:bg[NORMAL]/0.96" x1="3" y1="0" x2="width-4" y2="0"/>
 
412
 
 
413
        <line color="shade/gtk:bg[NORMAL]/0.89" x1="2" y1="1" x2="width-3" y2="1"/>
 
414
        <line color="shade/gtk:bg[NORMAL]/0.88" x1="1" y1="2" x2="width-2" y2="2"/>
 
415
 
 
416
        <line color="shade/gtk:bg[NORMAL]/1.06" x1="2" y1="height-1" x2="width-3" y2="height-1"/>
 
417
        <line color="shade/gtk:bg[NORMAL]/1.03" x1="1" y1="height-2" x2="width-2" y2="height-2"/>
 
418
        <line color="shade/gtk:bg[NORMAL]/1.04" x1="0" y1="height-3" x2="width-1" y2="height-3"/>
 
419
        <line color="shade/gtk:bg[NORMAL]/1.09" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
 
420
 
 
421
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
 
422
        <line color="shade/gtk:bg[NORMAL]/1.06" x1="1" y1="height-3" x2="width-2" y2="height-3"/>
 
423
 
 
424
        <!-- border outline -->
 
425
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="3" y1="1" x2="width-4" y2="1"/>
 
426
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
 
427
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="1" y1="3" x2="1" y2="height-4"/>
 
428
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
 
429
 
 
430
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="2" y1="2" x2="width-3" y2="2"/>
 
431
        <line color="shade/gtk:bg[NORMAL]/0.62" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
 
432
 
 
433
        <!-- border smooth effect -->
 
434
        <line color="shade/gtk:bg[NORMAL]/1.01" x1="3" y1="2" x2="width-4" y2="2"/>
 
435
        <line color="shade/gtk:bg[NORMAL]/0.98" x1="2" y1="3" x2="2" y2="height-4"/>
 
436
        <line color="shade/gtk:bg[NORMAL]/0.94" x1="width-3" y1="3" x2="width-3" y2="height-4"/>
 
437
 
 
438
        <!-- inside highlight -->
 
439
        <line color="shade/gtk:bg[NORMAL]/1.125" x1="4" y1="2" x2="width-5" y2="2"/>
 
440
        <line color="shade/gtk:bg[NORMAL]/1.11" x1="2" y1="4" x2="2" y2="height-5"/>
 
441
        <!-- inside shadow -->
 
442
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="width-3" y1="4" x2="width-3" y2="height-5"/>
 
443
 
 
444
        <!-- fill gradient -->
 
445
        <gradient type="vertical" x="3" y="3" width="width-6" height="(height)/2-1">
 
446
                <color value="shade/gtk:bg[NORMAL]/1.04"/>
 
447
                <color value="shade/gtk:bg[NORMAL]/1.10"/>
 
448
        </gradient>
 
449
        <gradient type="vertical" x="3" y="(height)/2" width="width-6" height="(height)/2-2">
 
450
                <color value="shade/gtk:bg[NORMAL]/1.02"/>
 
451
                <color value="shade/gtk:bg[NORMAL]/1.08"/>
 
452
        </gradient>
 
453
 
 
454
        <!-- bottom border smooth effect -->
 
455
        <line color="shade/gtk:bg[NORMAL]/0.85" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
 
456
        <line color="shade/gtk:bg[NORMAL]/1.08" x1="4" y1="height-3" x2="width-5" y2="height-3"/>
 
457
</draw_ops>
 
458
 
 
459
<draw_ops name="button_bg_prelight">
 
460
        <include name="button_bg"/>
 
461
        <tint color="shade/gtk:bg[NORMAL]/1.5" alpha="0.3" x="3" y="3" width="width-5" height="height-5"/>
 
462
        <line color="shade/gtk:bg[NORMAL]/0.60" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
463
</draw_ops>
 
464
 
 
465
<draw_ops name="button_bg_pressed">
 
466
        <!-- outside highlight -->
 
467
        <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
 
468
                <color value="shade/gtk:bg[NORMAL]/1.2"/>
 
469
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
470
        </gradient>
 
471
        <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
 
472
                <color value="shade/gtk:bg[NORMAL]/1.2"/>
 
473
                <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
474
        </gradient>
 
475
        <line color="shade/gtk:bg[NORMAL]/1.0" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
 
476
        <line color="shade/gtk:bg[NORMAL]/1.0" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
 
477
 
 
478
        <!-- border outline -->
 
479
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="1" x2="width-4" y2="1"/>
 
480
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
 
481
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="3" x2="1" y2="height-4"/>
 
482
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
 
483
 
 
484
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="2" x2="width-3" y2="2"/>
 
485
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
 
486
 
 
487
        <!-- inside shadow -->
 
488
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="2" x2="width-4" y2="2"/>
 
489
        <line color="shade/gtk:bg[NORMAL]/0.85" x1="2" y1="3" x2="2" y2="height-4"/>
 
490
 
 
491
        <!-- fill gradient -->
 
492
        <gradient type="vertical" x="3" y="3" width="width-5" height="height-6">
 
493
                <color value="shade/gtk:bg[NORMAL]/0.95"/>
 
494
                <color value="shade/gtk:bg[NORMAL]/0.9"/>
 
495
        </gradient>
 
496
 
 
497
        <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
 
498
</draw_ops>
 
499
 
 
500
<draw_ops name="button_bg_unfocused_prelight">
 
501
        <include name="button_bg_unfocused"/>
 
502
        <tint color="shade/gtk:bg[NORMAL]/1.5" alpha="0.3" x="3" y="3" width="width-5" height="height-5"/>
 
503
        <line color="shade/gtk:bg[NORMAL]/0.60" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
504
</draw_ops>
 
505
 
 
506
<draw_ops name="button_bg_unfocused_pressed">
 
507
        <!-- outside highlight -->
 
508
        <gradient type="vertical" x="width-2" y="2" width="1" height="height-4">
 
509
                <color value="shade/gtk:bg[NORMAL]/1.25"/>
 
510
                <color value="shade/gtk:bg[NORMAL]/1.05"/>
 
511
        </gradient>
 
512
        <gradient type="vertical" x="width-1" y="3" width="1" height="height-6">
 
513
                <color value="shade/gtk:bg[NORMAL]/1.25"/>
 
514
                <color value="shade/gtk:bg[NORMAL]/1.05"/>
 
515
        </gradient>
 
516
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="2" y1="height-2" x2="width-3" y2="height-2"/>
 
517
        <line color="shade/gtk:bg[NORMAL]/1.05" x1="3" y1="height-1" x2="width-4" y2="height-1"/>
 
518
 
 
519
        <!-- border outline -->
 
520
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="1" x2="width-4" y2="1"/>
 
521
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="3" y1="height-2" x2="width-4" y2="height-2"/>
 
522
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="1" y1="3" x2="1" y2="height-4"/>
 
523
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="width-2" y1="3" x2="width-2" y2="height-4"/>
 
524
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="2" x2="width-3" y2="2"/>
 
525
        <line color="shade/gtk:bg[NORMAL]/0.55" x1="2" y1="height-3" x2="width-3" y2="height-3"/>
 
526
 
 
527
        <!-- inside shadow -->
 
528
        <line color="shade/gtk:bg[NORMAL]/0.8" x1="3" y1="2" x2="width-4" y2="2"/>
 
529
        <line color="shade/gtk:bg[NORMAL]/0.75" x1="2" y1="3" x2="2" y2="height-4"/>
 
530
 
 
531
        <!-- fill gradient -->
 
532
        <gradient type="vertical" x="3" y="3" width="width-5" height="height-6">
 
533
                <color value="shade/gtk:bg[NORMAL]/0.9"/>
 
534
                <color value="shade/gtk:bg[NORMAL]/0.85"/>
 
535
        </gradient>
 
536
 
 
537
        <line color="shade/gtk:bg[NORMAL]/0.85" x1="3" y1="height-3" x2="width-4" y2="height-3"/>
 
538
</draw_ops>
 
539
 
 
540
<!-- ::: ICONS ::: -->
 
541
<!--
 
542
        using a minimum icon size until there is a proper way to specify relative sizes
 
543
        unfortunately it's logically impossible to always center the icons on non-square
 
544
        buttons (utility windows) without distortion.
 
545
 
 
546
        icon_size = (Bmin`max`height-Bpad*2)
 
547
        hpadding = (width - icon_size) / 2 = ((width-(Bmin`max`height-Bpad*2))/2)
 
548
        vpadding = (height - icon_size) / 2 = ((height-(Bmin`max`height-Bpad*2))/2)
 
549
-->
 
550
 
 
551
<!-- menu icon -->
 
552
<draw_ops name="menu_button_icon">
 
553
        <!--<icon  x="0" y="0" width="width" height="height"/>-->
 
554
        <icon  x="(width-mini_icon_width)/2" y="(height-mini_icon_height)/2" width="mini_icon_width" height="mini_icon_height"/>
 
555
</draw_ops>
 
556
 
 
557
<draw_ops name="menu_button_icon_unfocused">
 
558
        <!--<icon  x="0" y="0" width="width" height="height" alpha="0.5"/>-->
 
559
        <icon  x="(width-mini_icon_width)/2" y="(height-mini_icon_height)/2" width="mini_icon_width" height="mini_icon_height"/>
 
560
</draw_ops>
 
561
 
 
562
<draw_ops name="menu_button_normal">
 
563
        <include name="menu_button_icon"/>
 
564
</draw_ops>
 
565
<draw_ops name="menu_button_pressed">
 
566
        <include name="menu_button_icon"/>
 
567
</draw_ops>
 
568
<draw_ops name="menu_button_unfocused">
 
569
        <include name="menu_button_icon_unfocused"/>
 
570
</draw_ops>
 
571
 
 
572
<!-- close icon -->
 
573
<draw_ops name="close_button_icon">
 
574
        <!-- outside border -->
 
575
 
 
576
        <!-- main cross  -->
 
577
        <line color="shade/gtk:bg[NORMAL]/0.580" width="4"
 
578
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
 
579
                x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
 
580
        <line color="shade/gtk:bg[NORMAL]/0.580" width="4"
 
581
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
 
582
                x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
 
583
        <!-- top-left -->
 
584
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
585
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
 
586
                width="2" height="1"/>
 
587
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
588
                x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="((height-(Bmin`max`height-Bpad*2))/2)/1"
 
589
                width="1" height="2"/>
 
590
        <!-- top-right -->
 
591
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
592
                x="width - ((width-(Bmin`max`height-Bpad*2))/2) -2" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
 
593
                width="2" height="1"/>
 
594
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
595
                x="width - ((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
 
596
                width="1" height="2"/>
 
597
        <!-- bottom-left -->
 
598
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
599
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2)"
 
600
                width="2" height="1"/>
 
601
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
602
                x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="height - ((height-(Bmin`max`height-Bpad*2))/2)-2"
 
603
                width="1" height="2"/>
 
604
        <!-- bottom-right -->
 
605
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
606
                x="width - ((width-(Bmin`max`height-Bpad*2))/2) -2" y="height - ((height-(Bmin`max`height-Bpad*2))/2)"
 
607
                width="2" height="1"/>
 
608
        <tint color="shade/gtk:bg[NORMAL]/0.580" alpha="1.0"
 
609
                x="width - ((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2)-2"
 
610
                width="1" height="2"/>
 
611
 
 
612
        <!-- icon -->
 
613
        <line color="#FFFFFF" width="2"
 
614
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
 
615
                x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
 
616
        <line color="#FFFFFF" width="1"
 
617
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
 
618
                x2="width- ((width-(Bmin`max`height-Bpad*2))/2)" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)"/>
 
619
        <line color="#FFFFFF" width="2"
 
620
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
 
621
                x2="width - ((width-(Bmin`max`height-Bpad*2))/2) - 1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
 
622
        <line color="#FFFFFF" width="1"
 
623
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2) - 1"
 
624
                x2="width - ((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
 
625
</draw_ops>
 
626
 
 
627
<draw_ops name="close_button_icon_unfocused">
 
628
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="2"
 
629
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
 
630
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)-1" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"/>
 
631
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="1"
 
632
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="((height-(Bmin`max`height-Bpad*2))/2)"
 
633
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="height - ((height-(Bmin`max`height-Bpad*2))/2)"/>
 
634
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="2"
 
635
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"
 
636
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)-1" y2="((height-(Bmin`max`height-Bpad*2))/2)"/>
 
637
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="1"
 
638
                x1="((width-(Bmin`max`height-Bpad*2))/2)" y1="height - ((height-(Bmin`max`height-Bpad*2))/2)-1"
 
639
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) - 1"/>
 
640
</draw_ops>
 
641
 
 
642
<draw_ops name="close_button_normal">
 
643
        <include name="button_bg"/>
 
644
        <include name="close_button_icon"/>
 
645
</draw_ops>
 
646
<draw_ops name="close_button_prelight">
 
647
        <include name="button_bg_prelight"/>
 
648
        <include name="close_button_icon"/>
 
649
</draw_ops>
 
650
<draw_ops name="close_button_pressed">
 
651
        <include name="button_bg_pressed"/>
 
652
        <include name="close_button_icon"/>
 
653
</draw_ops>
 
654
<draw_ops name="close_button_unfocused">
 
655
        <include name="button_bg_unfocused"/>
 
656
<!--    <include name="close_button_icon_unfocused"/>-->
 
657
</draw_ops>
 
658
<draw_ops name="close_button_unfocused_prelight">
 
659
        <include name="button_bg_unfocused_prelight"/>
 
660
        <include name="close_button_icon_unfocused"/>
 
661
</draw_ops>
 
662
<draw_ops name="close_button_unfocused_pressed">
 
663
        <include name="button_bg_unfocused_pressed"/>
 
664
        <include name="close_button_icon_unfocused"/>
 
665
</draw_ops>
 
666
 
 
667
<!-- maximize icon -->
 
668
<draw_ops name="maximize_button_icon">
 
669
        <!-- outside border -->
 
670
        <rectangle color="shade/gtk:bg[NORMAL]/0.580" filled="false"
 
671
                x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="((height-(Bmin`max`height-Bpad*2))/2)-1"
 
672
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2+1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2+1"/>
 
673
        <rectangle color="shade/gtk:bg[NORMAL]/0.580" filled="false"
 
674
                x="((width-(Bmin`max`height-Bpad*2))/2)+1" y="((height-(Bmin`max`height-Bpad*2))/2)+2"
 
675
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-4"/>
 
676
 
 
677
        <!-- icon -->
 
678
        <rectangle color="#FFFFFF" filled="false"
 
679
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
 
680
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
 
681
        <line color="#FFFFFF" width="1"
 
682
                x1="((width-(Bmin`max`height-Bpad*2))/2) + 1" y1="((height-(Bmin`max`height-Bpad*2))/2) + 1"
 
683
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) + 1"/>
 
684
</draw_ops>
 
685
 
 
686
<draw_ops name="maximize_button_icon_unfocused">
 
687
        <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" filled="false"
 
688
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
 
689
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
 
690
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="1"
 
691
                x1="((width-(Bmin`max`height-Bpad*2))/2) + 1" y1="((height-(Bmin`max`height-Bpad*2))/2) + 1"
 
692
                x2="width-((width-(Bmin`max`height-Bpad*2))/2)" y2="((height-(Bmin`max`height-Bpad*2))/2) + 1"/>
 
693
</draw_ops>
 
694
 
 
695
<draw_ops name="maximize_button_normal">
 
696
        <include name="button_bg"/>
 
697
        <include name="maximize_button_icon"/>
 
698
</draw_ops>
 
699
<draw_ops name="maximize_button_prelight">
 
700
        <include name="button_bg_prelight"/>
 
701
        <include name="maximize_button_icon"/>
 
702
</draw_ops>
 
703
<draw_ops name="maximize_button_pressed">
 
704
        <include name="button_bg_pressed"/>
 
705
        <include name="maximize_button_icon"/>
 
706
</draw_ops>
 
707
<draw_ops name="maximize_button_unfocused">
 
708
        <include name="button_bg_unfocused"/>
 
709
<!--    <include name="maximize_button_icon_unfocused"/>-->
 
710
</draw_ops>
 
711
<draw_ops name="maximize_button_unfocused_prelight">
 
712
        <include name="button_bg_unfocused_prelight"/>
 
713
        <include name="maximize_button_icon_unfocused"/>
 
714
</draw_ops>
 
715
<draw_ops name="maximize_button_unfocused_pressed">
 
716
        <include name="button_bg_unfocused_pressed"/>
 
717
        <include name="maximize_button_icon_unfocused"/>
 
718
</draw_ops>
 
719
 
 
720
<!-- restore icon -->
 
721
<draw_ops name="restore_button_icon">
 
722
        <!-- outside border -->
 
723
        <rectangle color="shade/gtk:bg[NORMAL]/0.580" filled="false"
 
724
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="((height-(Bmin`max`height-Bpad*2))/2)"
 
725
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-1" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-1"/>
 
726
        <rectangle color="shade/gtk:bg[NORMAL]/0.580" filled="false"
 
727
                x="((width-(Bmin`max`height-Bpad*2))/2)+2" y="((height-(Bmin`max`height-Bpad*2))/2)+3"
 
728
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-5" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-6"/>
 
729
 
 
730
        <!-- icon -->
 
731
        <rectangle color="#FFFFFF" filled="false"
 
732
                x="((width-(Bmin`max`height-Bpad*2))/2) + 1" y="((height-(Bmin`max`height-Bpad*2))/2) + 1"
 
733
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-3"/>
 
734
        <line color="#FFFFFF" width="1"
 
735
                x1="((width-(Bmin`max`height-Bpad*2))/2) + 2" y1="((height-(Bmin`max`height-Bpad*2))/2) + 2"
 
736
                x2="width-((width-(Bmin`max`height-Bpad*2))/2) - 2" y2="((height-(Bmin`max`height-Bpad*2))/2) + 2"/>
 
737
</draw_ops>
 
738
 
 
739
<draw_ops name="restore_button_icon_unfocused">
 
740
        <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" filled="false"
 
741
                x="((width-(Bmin`max`height-Bpad*2))/2) + 1" y="((height-(Bmin`max`height-Bpad*2))/2) + 1"
 
742
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2-3" height="height-((height-(Bmin`max`height-Bpad*2))/2)*2-3"/>
 
743
        <line color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" width="1"
 
744
                x1="((width-(Bmin`max`height-Bpad*2))/2) + 2" y1="((height-(Bmin`max`height-Bpad*2))/2) + 2"
 
745
                x2="width-((width-(Bmin`max`height-Bpad*2))/2) - 2" y2="((height-(Bmin`max`height-Bpad*2))/2) + 2"/>
 
746
</draw_ops>
 
747
 
 
748
<draw_ops name="restore_button_normal">
 
749
        <include name="button_bg"/>
 
750
        <include name="restore_button_icon"/>
 
751
</draw_ops>
 
752
<draw_ops name="restore_button_prelight">
 
753
        <include name="button_bg_prelight"/>
 
754
        <include name="restore_button_icon"/>
 
755
</draw_ops>
 
756
<draw_ops name="restore_button_pressed">
 
757
        <include name="button_bg_pressed"/>
 
758
        <include name="restore_button_icon"/>
 
759
</draw_ops>
 
760
<draw_ops name="restore_button_unfocused">
 
761
        <include name="button_bg_unfocused"/>
 
762
<!--    <include name="restore_button_icon_unfocused"/>-->
 
763
</draw_ops>
 
764
<draw_ops name="restore_button_unfocused_prelight">
 
765
        <include name="button_bg_unfocused_prelight"/>
 
766
        <include name="restore_button_icon_unfocused"/>
 
767
</draw_ops>
 
768
<draw_ops name="restore_button_unfocused_pressed">
 
769
        <include name="button_bg_unfocused_pressed"/>
 
770
        <include name="restore_button_icon_unfocused"/>
 
771
</draw_ops>
 
772
 
 
773
<!-- minimize icon -->
 
774
<draw_ops name="minimize_button_icon">
 
775
        <!-- outside border -->
 
776
        <rectangle color="shade/gtk:bg[NORMAL]/0.580" filled="false"
 
777
                x="((width-(Bmin`max`height-Bpad*2))/2)-1" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 3"
 
778
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2+1" height="3"/>
 
779
        <!-- icon -->
 
780
        <rectangle color="#FFFFFF" filled="true"
 
781
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 2"
 
782
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2" height="2"/>
 
783
</draw_ops>
 
784
 
 
785
<draw_ops name="minimize_button_icon_unfocused">
 
786
        <rectangle color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.5" filled="true"
 
787
                x="((width-(Bmin`max`height-Bpad*2))/2)" y="height - ((height-(Bmin`max`height-Bpad*2))/2) - 2"
 
788
                width="width-((width-(Bmin`max`height-Bpad*2))/2)*2" height="2"/>
 
789
</draw_ops>
 
790
 
 
791
<draw_ops name="minimize_button_normal">
 
792
        <include name="button_bg"/>
 
793
        <include name="minimize_button_icon"/>
 
794
</draw_ops>
 
795
<draw_ops name="minimize_button_prelight">
 
796
        <include name="button_bg_prelight"/>
 
797
        <include name="minimize_button_icon"/>
 
798
</draw_ops>
 
799
<draw_ops name="minimize_button_pressed">
 
800
        <include name="button_bg_pressed"/>
 
801
        <include name="minimize_button_icon"/>
 
802
</draw_ops>
 
803
<draw_ops name="minimize_button_unfocused">
 
804
        <include name="button_bg_unfocused"/>
 
805
<!--    <include name="minimize_button_icon_unfocused"/>-->
 
806
</draw_ops>
 
807
<draw_ops name="minimize_button_unfocused_prelight">
 
808
        <include name="button_bg_unfocused_prelight"/>
 
809
        <include name="minimize_button_icon_unfocused"/>
 
810
</draw_ops>
 
811
<draw_ops name="minimize_button_unfocused_pressed">
 
812
        <include name="button_bg_unfocused_pressed"/>
 
813
        <include name="minimize_button_icon_unfocused"/>
 
814
</draw_ops>
 
815
 
 
816
<draw_ops name="blank">
 
817
<!-- nothing -->
 
818
</draw_ops>
 
819
 
 
820
<!-- ::: FRAME STYLES ::: -->
 
821
<frame_style name="normal" geometry="normal">
 
822
        <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
 
823
        <piece position="title" draw_ops="title_unfocused"/>
 
824
        <button function="close" state="normal" draw_ops="close_button_unfocused"/>
 
825
        <button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
 
826
        <button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
 
827
        <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
 
828
        <button function="maximize" state="pressed" draw_ops="maximize_button_unfocused_pressed"/>
 
829
        <button function="maximize" state="prelight" draw_ops="maximize_button_unfocused_prelight"/>
 
830
        <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
 
831
        <button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
 
832
        <button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
 
833
        <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
834
        <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
 
835
</frame_style>
 
836
 
 
837
<frame_style name="normal_shaded" geometry="shaded" parent="normal">
 
838
        <piece position="entire_background" draw_ops="round_bevel_unfocused_shaded"/>
 
839
</frame_style>
 
840
 
 
841
<frame_style name="focused" geometry="normal" parent="normal">
 
842
        <piece position="entire_background" draw_ops="round_bevel"/>
 
843
        <piece position="title" draw_ops="title"/>
 
844
        <button function="close" state="normal" draw_ops="close_button_normal"/>
 
845
        <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
846
        <button function="close" state="prelight" draw_ops="close_button_prelight"/>
 
847
        <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
 
848
        <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
 
849
        <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
 
850
        <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
851
        <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
852
        <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
 
853
</frame_style>
 
854
 
 
855
<frame_style name="focused_shaded" geometry="shaded" parent="focused">
 
856
        <piece position="entire_background" draw_ops="round_bevel_shaded"/>
 
857
</frame_style>
 
858
 
 
859
<frame_style name="normal_maximized" geometry="normal_maximized" parent="normal">
 
860
        <piece position="entire_background" draw_ops="bevel_maximized_unfocused"/>
 
861
        <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
 
862
        <button function="maximize" state="pressed" draw_ops="restore_button_unfocused_pressed"/>
 
863
        <button function="maximize" state="prelight" draw_ops="restore_button_unfocused_prelight"/>
 
864
</frame_style>
 
865
 
 
866
<frame_style name="focused_maximized" geometry="normal_maximized" parent="focused">
 
867
        <piece position="entire_background" draw_ops="bevel_maximized"/>
 
868
        <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
 
869
        <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
 
870
        <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
 
871
</frame_style>
 
872
 
 
873
<frame_style name="border" geometry="border" parent="normal">
 
874
        <piece position="entire_background" draw_ops="border"/>
 
875
        <piece position="title" draw_ops="blank"/>
 
876
</frame_style>
 
877
 
 
878
<frame_style name="utility_normal" geometry="utility" parent="normal">
 
879
        <piece position="entire_background" draw_ops="bevel_unfocused"/>
 
880
</frame_style>
 
881
<frame_style name="utility_focused" geometry="utility" parent="focused">
 
882
        <piece position="entire_background" draw_ops="bevel"/>
 
883
</frame_style>
 
884
<frame_style name="utility_focused_shaded" geometry="utility" parent="focused_shaded">
 
885
        <piece position="entire_background" draw_ops="bevel_shaded"/>
 
886
</frame_style>
 
887
 
 
888
<frame_style_set name="normal">
 
889
        <frame focus="yes" state="normal" resize="both" style="focused"/>
 
890
        <frame focus="no" state="normal" resize="both" style="normal"/>
 
891
        <frame focus="yes" state="maximized" style="focused_maximized"/>
 
892
        <frame focus="no" state="maximized" style="normal_maximized"/>
 
893
        <frame focus="yes" state="shaded" style="focused_shaded"/>
 
894
        <frame focus="no" state="shaded" style="normal_shaded"/>
 
895
        <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
 
896
        <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
 
897
</frame_style_set>
 
898
 
 
899
<frame_style_set name="utility" parent="normal">
 
900
        <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
 
901
        <frame focus="no" state="normal" resize="both" style="utility_normal"/>
 
902
        <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
 
903
        <frame focus="yes" state="maximized" style="focused"/>
 
904
        <frame focus="no" state="maximized" style="normal"/>
 
905
        <frame focus="yes" state="shaded" style="utility_focused_shaded"/>
 
906
        <frame focus="no" state="shaded" style="utility_normal"/>
 
907
        <frame focus="yes" state="maximized_and_shaded" style="focused_shaded"/>
 
908
        <frame focus="no" state="maximized_and_shaded" style="normal"/>
 
909
</frame_style_set>
 
910
 
 
911
<frame_style_set name="border">
 
912
        <frame focus="yes" state="normal" resize="both" style="border"/>
 
913
        <frame focus="no" state="normal" resize="both" style="border"/>
 
914
        <frame focus="yes" state="maximized" style="border"/>
 
915
        <frame focus="no" state="maximized" style="border"/>
 
916
        <frame focus="yes" state="shaded" style="border"/>
 
917
        <frame focus="no" state="shaded" style="border"/>
 
918
        <frame focus="yes" state="maximized_and_shaded" style="border"/>
 
919
        <frame focus="no" state="maximized_and_shaded" style="border"/>
 
920
</frame_style_set>
 
921
 
 
922
<window type="normal" style_set="normal"/>
 
923
<window type="dialog" style_set="normal"/>
 
924
<window type="modal_dialog" style_set="normal"/>
 
925
<window type="menu" style_set="normal"/>
 
926
<window type="utility" style_set="utility"/>
 
927
<window type="border" style_set="border"/>
 
928
 
 
929
<menu_icon function="close" state="normal" draw_ops="close_button_icon_unfocused"/>
 
930
<menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_unfocused"/>
 
931
<menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_unfocused"/>
 
932
<menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_unfocused"/>
 
933
 
 
934
</metacity_theme>