~ubuntu-branches/ubuntu/lucid/gnome-themes-extras/lucid

« back to all changes in this revision

Viewing changes to Nuvola-old/metacity-1/metacity-theme-1.xml

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2004-06-23 20:28:52 UTC
  • Revision ID: james.westby@ubuntu.com-20040623202852-j7hu6zargn5hnban
Tags: upstream-0.7.debian.1
ImportĀ upstreamĀ versionĀ 0.7.debian.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<metacity_theme>
 
3
  <info>
 
4
    <name>Nuvola-old</name>
 
5
    <author>Christian Schaller based on work by Jakub Steiner</author>
 
6
    <copyright>Christian Schaller and Ximian Inc.</copyright>
 
7
    <date>Jul, 2002</date>
 
8
    <description>Nuvola theme based on Gorilla theme</description>
 
9
  </info>
 
10
 
 
11
<!-- Theme constants 
 
12
   
 
13
   ButtonIPad  : Padding of buttons
 
14
 
 
15
-->
 
16
 
 
17
  <constant name="UnButtAlpha" value="0.2"/>
 
18
  <constant name="ButtonIPad" value="1"/>
 
19
 
 
20
 
 
21
 
 
22
  <frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
 
23
    <distance name="left_width" value="6"/>
 
24
    <distance name="right_width" value="6"/>
 
25
    <distance name="bottom_height" value="6"/>
 
26
    <distance name="left_titlebar_edge" value="4"/>
 
27
    <distance name="right_titlebar_edge" value="4"/>
 
28
    <aspect_ratio name="button" value="1"/>
 
29
    <distance name="title_vertical_pad" value="2"/>
 
30
    <border name="title_border" left="2" right="2" top="2" bottom="2"/>
 
31
    <border name="button_border" left="1" right="1" top="2" bottom="1"/>
 
32
  </frame_geometry>
 
33
        
 
34
        <!-- strip borders off the normal geometry -->
 
35
  <frame_geometry name="normal_maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
 
36
    <distance name="left_width" value="1"/>
 
37
    <distance name="right_width" value="1"/>
 
38
    <distance name="bottom_height" value="1"/>
 
39
    <distance name="left_titlebar_edge" value="2"/>
 
40
    <distance name="right_titlebar_edge" value="2"/>
 
41
  </frame_geometry>
 
42
 
 
43
  <frame_geometry name="normal_small_borders" parent="normal">
 
44
    <distance name="left_width" value="0"/>
 
45
    <distance name="right_width" value="0"/>
 
46
    <distance name="bottom_height" value="0"/>
 
47
    <distance name="left_titlebar_edge" value="0"/>
 
48
    <distance name="right_titlebar_edge" value="0"/>
 
49
  </frame_geometry>
 
50
 
 
51
  <frame_geometry name="border" has_title="false">
 
52
    <distance name="left_width" value="4"/>
 
53
    <distance name="right_width" value="4"/>
 
54
    <distance name="bottom_height" value="4"/>
 
55
    <distance name="left_titlebar_edge" value="0"/>
 
56
    <distance name="right_titlebar_edge" value="0"/>
 
57
    <distance name="button_width" value="0"/>
 
58
    <distance name="button_height" value="0"/>
 
59
    <distance name="title_vertical_pad" value="4"/>
 
60
    <border name="title_border" left="0" right="0" top="0" bottom="0"/>
 
61
    <border name="button_border" left="0" right="0" top="0" bottom="0"/>
 
62
  </frame_geometry>
 
63
 
 
64
 
 
65
  <draw_ops name="focus_outline">
 
66
    <rectangle color="#FFFFFF" x="left_width-1" y="top_height-1" width="width-left_width-right_width+1" height="height-top_height-bottom_height+1"/>
 
67
    <line color="shade/gtk:bg[SELECTED]/0.45" x1="left_width-1" y1="top_height-1" x2="left_width-1" y2="top_height-1"/>
 
68
    <line color="shade/gtk:bg[SELECTED]/0.45" x1="width-right_width" y1="top_height-1" x2="width-right_width" y2="top_height-1"/>
 
69
    <line color="shade/gtk:bg[SELECTED]/0.45" x1="left_width-1" y1="height-bottom_height" x2="left_width-1" y2="height-bottom_height"/>
 
70
    <line color="shade/gtk:bg[SELECTED]/0.45" x1="width-right_width" y1="height-bottom_height" x2="width-right_width" y2="height-bottom_height"/>
 
71
 
 
72
  </draw_ops>
 
73
 
 
74
  <draw_ops name="corners_outline">
 
75
        <!-- ** BLACK outlines around the round corners ** -->
 
76
        <!-- top left -->
 
77
    <line color="#000000" x1="1" y1="3" x2="1" y2="4"/>
 
78
    <line color="#000000" x1="2" y1="3" x2="2" y2="4"/>
 
79
    <line color="#000000" x1="2" y1="2" x2="2" y2="2"/>
 
80
    <line color="#000000" x1="3" y1="1" x2="4" y2="1"/>
 
81
    <line color="#000000" x1="3" y1="2" x2="4" y2="2"/>
 
82
        
 
83
        <!-- bottom left -->
 
84
    <line color="#000000" x1="1" y1="height-4" x2="1" y2="height-5"/>
 
85
    <line color="#000000" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
86
    <line color="#000000" x1="2" y1="height-3" x2="2" y2="height-3"/>
 
87
    <line color="#000000" x1="2" y1="height-2" x2="4" y2="height-2"/>
 
88
    <line color="#000000" x1="2" y1="height-3" x2="4" y2="height-3"/>
 
89
        
 
90
        <!-- top right -->
 
91
    <line color="#000000" x1="width-2" y1="3" x2="width-2" y2="4"/>
 
92
    <line color="#000000" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
93
    <line color="#000000" x1="width-3" y1="2" x2="width-3" y2="2"/>
 
94
    <line color="#000000" x1="width-4" y1="1" x2="width-5" y2="1"/>
 
95
    <line color="#000000" x1="width-4" y1="2" x2="width-5" y2="2"/>
 
96
        
 
97
        <!-- bottom right -->
 
98
    <line color="#000000" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
 
99
    <line color="#000000" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
100
    <line color="#000000" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
101
    <line color="#000000" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
 
102
    <line color="#000000" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
103
 
 
104
  </draw_ops>
 
105
 
 
106
  <draw_ops name="corners_hilight_unfocused">
 
107
 
 
108
  <!-- ** corner hilight for left top ** -->
 
109
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="2" y1="3" x2="2" y2="4"/>
 
110
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="3" y1="2" x2="4" y2="2"/>
 
111
 
 
112
  <!-- ** corner hilight for left bottom ** -->
 
113
    <line color="shade/gtk:bg[NORMAL]/1.4" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
114
    <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="height-3" x2="4" y2="height-3"/>
 
115
 
 
116
  <!-- ** corner hilight for right top ** -->
 
117
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
118
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-4" y1="2" x2="width-4" y2="2"/>
 
119
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="width-5" y1="2" x2="width-5" y2="2"/>
 
120
 
 
121
  <!-- ** corner hilight for right bottom ** -->
 
122
    <line color="shade/gtk:bg[NORMAL]/0.7" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
123
    <line color="shade/gtk:bg[NORMAL]/0.7" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
124
 
 
125
  </draw_ops>
 
126
 
 
127
  <draw_ops name="corners_hilight">
 
128
<!-- do some serious ani-aliasing ;) -->
 
129
 
 
130
  <!-- ** corner hilight for left top ** -->
 
131
    <line color="shade/gtk:bg[SELECTED]/1.9" x1="3" y1="4" x2="3" y2="4"/>
 
132
    <line color="shade/gtk:bg[SELECTED]/1.9" x1="4" y1="3" x2="4" y2="2"/>
 
133
 
 
134
  <!-- ** corner hilight for left bottom ** -->
 
135
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="3" y1="height-5" x2="3" y2="height-5"/>
 
136
    <line color="shade/gtk:bg[SELECTED]/1.4" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
137
    <line color="shade/gtk:bg[SELECTED]/0.8" x1="3" y1="height-4" x2="3" y2="height-4"/>
 
138
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="4" y1="height-4" x2="4" y2="height-4"/>
 
139
 
 
140
  <!-- ** corner hilight for right top ** -->
 
141
    <line color="gtk:bg[SELECTED]" x1="width-5" y1="3" x2="width-5" y2="3"/>
 
142
    <line color="shade/gtk:bg[SELECTED]/0.7" x1="width-4" y1="3" x2="width-4" y2="3"/>
 
143
    <line color="shade/gtk:bg[SELECTED]/0.9" x1="width-4" y1="4" x2="width-4" y2="4"/>
 
144
 
 
145
  <!-- ** corner hilight for right bottom ** -->
 
146
    <line color="shade/gtk:bg[NORMAL]/0.9" x1="width-4" y1="height-6" x2="width-4" y2="height-6"/>
 
147
    <line color="gtk:bg[SELECTED]" x1="width-4" y1="height-5" x2="width-4" y2="height-5"/>
 
148
    <line color="shade/gtk:bg[SELECTED]/0.7" x1="width-4" y1="height-4" x2="width-4" y2="height-4"/>
 
149
    <line color="gtk:bg[SELECTED]" x1="width-5" y1="height-4" x2="width-5" y2="height-4"/>
 
150
    <line color="shade/gtk:bg[NORMAL]/0.9" x1="width-6" y1="height-4" x2="width-6" y2="height-4"/>
 
151
 
 
152
  </draw_ops>
 
153
 
 
154
  <draw_ops name="bevel_unfocused">
 
155
 
 
156
  <!-- ** 3d beveled frame ** -->
 
157
    <rectangle color="shade/gtk:light[NORMAL]/1.6" filled="false" x="1" y="1" width="width - 3" height="height - 4"/>
 
158
 
 
159
    <rectangle color="shade/gtk:light[NORMAL]/1.3" filled="false" x="2" y="2" width="width - 2" height="height - 4"/>
 
160
 
 
161
    <rectangle color="gtk:dark[NORMAL]" filled="false" x="2" y="2" width="width - 4" height="height - 4"/>
 
162
 
 
163
    <rectangle color="gtk:bg[NORMAL]" filled="true" x="2" y="2" width="width - 4" height="height - 4"/>
 
164
 
 
165
  <!-- ** fancy gradient ** 
 
166
  <gradient type="vertical" x="2" y="2" width="width - 4" height="title_height + 4">
 
167
        <color value="shade/gtk:bg[NORMAL]/1.1"/>
 
168
        <color value="shade/gtk:bg[NORMAL]/0.9"/>
 
169
  </gradient>
 
170
  <gradient type="vertical" x="2" y="title_height+4" width="width - 4" height="32">
 
171
        <color value="shade/gtk:bg[NORMAL]/0.9"/>
 
172
        <color value="shade/gtk:bg[NORMAL]/1.0"/>
 
173
  </gradient>
 
174
-->
 
175
 
 
176
    <rectangle color="#000000" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
 
177
 
 
178
  </draw_ops>
 
179
 
 
180
  <draw_ops name="round_bevel_unfocused">
 
181
    <include name="bevel_unfocused"/>
 
182
    <include name="corners_outline"/>
 
183
    <include name="corners_hilight_unfocused"/>
 
184
 
 
185
  </draw_ops>
 
186
 
 
187
  <draw_ops name="bevel">
 
188
 
 
189
  <!-- outermost black border -->
 
190
  <!-- left -->
 
191
    <rectangle color="#000000" filled="true" x="0" y="0" width="2" height="height"/>
 
192
  <!-- right -->
 
193
    <rectangle color="#000000" filled="true" x="width - 2" y="0" width="2" height="height"/>
 
194
  <!-- bottom after the title gradient (for shaded mode) -->
 
195
 
 
196
  <!-- top -->
 
197
    <rectangle color="#000000" filled="true" x="0" y="0" width="width" height="2"/>
 
198
 
 
199
    <!--tl-->
 
200
    <!-- the bcg is actually lighter
 
201
  <rectangle color="gtk:light[SELECTED]" filled="false"
 
202
             x="2" y="2"
 
203
             width="width"
 
204
             height="height"/>
 
205
    -->
 
206
    <!--br-->
 
207
    <rectangle color="shade/gtk:bg[SELECTED]/0.8" filled="false" x="3" y="3" width="width - 6" height="height - 6"/>
 
208
 
 
209
             
 
210
 
 
211
<!--
 
212
   below the title up till bottom ; FIXME -slow
 
213
   -->
 
214
    <rectangle color="gtk:bg[NORMAL]" filled="true" x="3" y="3" width="width - 6" height="height - 6"/>
 
215
 
 
216
<!-- colored corners 
 
217
 
 
218
  <rectangle color="gtk:bg[SELECTED]" filled="true"
 
219
             x="width - 24" y="height - 24"
 
220
             width="22"
 
221
             height="22"/>
 
222
 
 
223
  <rectangle color="gtk:bg[SELECTED]" filled="true"
 
224
             x="2" y="height - 24"
 
225
             width="22"
 
226
             height="22"/>
 
227
-->
 
228
 
 
229
  <!-- ** fancy gradient ** -->
 
230
  <!-- too bad metacity is misbehaving when I wanna do the interlace effect here
 
231
   -->
 
232
    <gradient type="vertical" x="3" y="3" width="width - 6" height="4">
 
233
        <color value="shade/gtk:bg[SELECTED]/0.95"/>
 
234
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
235
    </gradient>
 
236
 
 
237
    <gradient type="vertical" x="3" y="7" width="width - 6" height="title_height - 4">
 
238
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
239
      <color value="gtk:bg[SELECTED]"/>
 
240
    </gradient>
 
241
 
 
242
    <gradient type="vertical" x="3" y="title_height + 3" width="width - 6" height="4">
 
243
      <color value="gtk:bg[SELECTED]"/>
 
244
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
245
    </gradient>
 
246
 
 
247
 <!-- side gradients  -->
 
248
    <gradient type="vertical" x="3" y="title_height + 6" width="3" height="48">
 
249
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
250
      <color value="gtk:bg[NORMAL]"/>
 
251
    </gradient>
 
252
 
 
253
    <gradient type="vertical" x="width - 6" y="title_height + 6" width="3" height="48">
 
254
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
255
      <color value="gtk:bg[NORMAL]"/>
 
256
    </gradient>
 
257
 
 
258
<!--
 
259
<tile name="title_tile" tile_width="width" tile_height="2" x="3" y="3" width="width - 6" height="title_height + 1"/>
 
260
-->
 
261
<!-- inner black stroke -->
 
262
 
 
263
  <!--
 
264
  <rectangle color="shade/gtk:bg[SELECTED]/0.6" filled="false"
 
265
       x="5" y="title_height + 6"
 
266
       width="width - 11"
 
267
       height="height - title_height - 11"/>
 
268
-->
 
269
 
 
270
  <!-- now the bottom black border -->
 
271
    <rectangle color="#000000" filled="true" x="0" y="height - 2" width="width" height="2"/>
 
272
 
 
273
  </draw_ops>
 
274
 
 
275
  <draw_ops name="bevel_maximized">
 
276
 
 
277
  <!-- this one is like bevel but without the outermost black border -->
 
278
  
 
279
    <!-- the bcg is actually lighter
 
280
  <rectangle color="gtk:light[SELECTED]" filled="false"
 
281
             x="2" y="2"
 
282
             width="width"
 
283
             height="height"/>
 
284
    -->
 
285
    <!--br-->
 
286
    <rectangle color="shade/gtk:bg[SELECTED]/0.8" filled="false" x="3" y="3" width="width - 6" height="height - 6"/>
 
287
 
 
288
             
 
289
 
 
290
<!--
 
291
   below the title up till bottom ; FIXME -slow
 
292
   -->
 
293
    <rectangle color="gtk:bg[NORMAL]" filled="true" x="3" y="3" width="width - 6" height="height - 6"/>
 
294
 
 
295
<!-- colored corners 
 
296
 
 
297
  <rectangle color="gtk:bg[SELECTED]" filled="true"
 
298
             x="width - 24" y="height - 24"
 
299
             width="22"
 
300
             height="22"/>
 
301
 
 
302
  <rectangle color="gtk:bg[SELECTED]" filled="true"
 
303
             x="2" y="height - 24"
 
304
             width="22"
 
305
             height="22"/>
 
306
-->
 
307
 
 
308
  <!-- ** fancy gradient ** -->
 
309
  <!-- too bad metacity is misbehaving when I wanna do the interlace effect here
 
310
   -->
 
311
    <gradient type="vertical" x="3" y="3" width="width - 6" height="4">
 
312
        <color value="shade/gtk:bg[SELECTED]/0.95"/>
 
313
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
314
    </gradient>
 
315
 
 
316
    <gradient type="vertical" x="3" y="7" width="width - 6" height="title_height - 4">
 
317
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
318
      <color value="gtk:bg[SELECTED]"/>
 
319
    </gradient>
 
320
 
 
321
    <gradient type="vertical" x="3" y="title_height + 3" width="width - 6" height="4">
 
322
      <color value="gtk:bg[SELECTED]"/>
 
323
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
324
    </gradient>
 
325
 
 
326
 <!-- side gradients  -->
 
327
    <gradient type="vertical" x="3" y="title_height + 6" width="3" height="48">
 
328
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
329
      <color value="gtk:bg[NORMAL]"/>
 
330
    </gradient>
 
331
 
 
332
    <gradient type="vertical" x="width - 6" y="title_height + 6" width="3" height="48">
 
333
      <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
334
      <color value="gtk:bg[NORMAL]"/>
 
335
    </gradient>
 
336
 
 
337
<!--
 
338
<tile name="title_tile" tile_width="width" tile_height="2" x="3" y="3" width="width - 6" height="title_height + 1"/>
 
339
-->
 
340
<!-- inner black stroke -->
 
341
 
 
342
  <!--
 
343
  <rectangle color="shade/gtk:bg[SELECTED]/0.6" filled="false"
 
344
       x="5" y="title_height + 6"
 
345
       width="width - 11"
 
346
       height="height - title_height - 11"/>
 
347
-->
 
348
 
 
349
  <!-- now the bottom black border -->
 
350
    <rectangle color="#000000" filled="true" x="0" y="height - 2" width="width" height="2"/>
 
351
 
 
352
  </draw_ops>
 
353
 
 
354
 
 
355
  <draw_ops name="bottom_corners">
 
356
 
 
357
<!-- bottom corners
 
358
     * I cannot yet figure out how to do one from topright to bottomleft
 
359
 
 
360
  <gradient type="vertical" x="width - 24" y="height - 48" width="22" height="46">
 
361
        <color value="gtk:bg[NORMAL]"/>
 
362
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
363
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
364
  </gradient>
 
365
 
 
366
  <gradient type="horizontal" x="width - 48" y="height - 48" width="24" height="46">
 
367
        <color value="gtk:bg[NORMAL]"/>
 
368
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
369
  </gradient>
 
370
 
 
371
 
 
372
  <gradient type="vertical" x="2" y="height - 48" width="22" height="46">
 
373
        <color value="gtk:bg[NORMAL]"/>
 
374
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
375
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
376
  </gradient>
 
377
 
 
378
  <gradient type="horizontal" x="24" y="height - 48" width="24" height="46">
 
379
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
380
        <color value="gtk:bg[NORMAL]"/>
 
381
  </gradient>
 
382
   -->
 
383
 
 
384
  </draw_ops>
 
385
 
 
386
 
 
387
  <draw_ops name="round_bevel_shaded">
 
388
    <include name="bevel"/>
 
389
    <include name="corners_hilight"/>
 
390
    <include name="corners_outline"/>
 
391
  </draw_ops>
 
392
 
 
393
  <draw_ops name="round_bevel">
 
394
    <include name="bevel"/>
 
395
    <include name="corners_hilight"/>
 
396
    <include name="bottom_corners"/>
 
397
    <include name="corners_outline"/>
 
398
  </draw_ops>
 
399
 
 
400
<!-- ::: TITLES ::: -->
 
401
 
 
402
<!-- l33t t1g3rtcr4ck hack -->
 
403
  <draw_ops name="title_text">
 
404
    <title color="shade/gtk:bg[SELECTED]/0.75" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2) `max` 0) + 2"/>
 
405
    <title color="shade/gtk:bg[SELECTED]/0.7" x="(3 `max` (width-title_width)) / 2 + 2" y="(((height - title_height) / 2) `max` 0) + 2"/>
 
406
    <title color="shade/gtk:bg[SELECTED]/0.4" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2) `max` 0) + 1"/>
 
407
    <title color="gtk:fg[SELECTED]" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/>
 
408
  </draw_ops>
 
409
 
 
410
  <draw_ops name="title_text_unfocused">
 
411
    <title color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/0.6" x="(3 `max` (width-title_width)) / 2" y="((height - title_height) / 2) `max` 0"/>
 
412
  </draw_ops>
 
413
 
 
414
  <draw_ops name="title">
 
415
    <include name="title_text"/>
 
416
  </draw_ops>
 
417
 
 
418
  <draw_ops name="title_unfocused">
 
419
    <include name="title_text_unfocused"/>
 
420
  </draw_ops>
 
421
 
 
422
<!-- ::: BUTTONS ::: -->
 
423
 
 
424
  <draw_ops name="menu_button_icon">
 
425
    <image filename="wm-menu.png" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
426
  </draw_ops>
 
427
 
 
428
  <draw_ops name="menu_button_icon_pressed">
 
429
    <image filename="wm-menu.png" colorize="#ffffff" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
430
  </draw_ops>
 
431
 
 
432
  <draw_ops name="menu_button_icon_unfocused">
 
433
    <image filename="wm-menu.png" colorize="#ffffff" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
434
  </draw_ops>
 
435
 
 
436
  <draw_ops name="menu_button_normal">
 
437
    <include name="menu_button_icon"/>
 
438
  </draw_ops>
 
439
  <draw_ops name="menu_button_pressed">
 
440
    <include name="menu_button_icon"/>
 
441
  </draw_ops>
 
442
  <draw_ops name="menu_button_unfocused">
 
443
    <include name="menu_button_icon_unfocused"/>
 
444
  </draw_ops>
 
445
 
 
446
  <draw_ops name="button_icon_unfocused">
 
447
    <image filename="wm-inac.png" colorize="#FFFFFF" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
448
  </draw_ops>
 
449
 
 
450
  <draw_ops name="close_button_icon">
 
451
    <image filename="wm-close.png" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
452
  </draw_ops>
 
453
 
 
454
  <draw_ops name="close_button_icon_pressed">
 
455
    <image filename="wm-close.png" colorize="#ffffff" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
456
  </draw_ops>
 
457
 
 
458
 <draw_ops name="close_button_normal">
 
459
    <include name="close_button_icon"/>
 
460
  </draw_ops>
 
461
  <draw_ops name="close_button_pressed">
 
462
    <include name="close_button_icon_pressed"/>
 
463
  </draw_ops>
 
464
  <draw_ops name="close_button_unfocused">
 
465
    <include name="button_icon_unfocused"/>
 
466
  </draw_ops>
 
467
 
 
468
  <draw_ops name="maximize_button_icon">
 
469
    <image filename="wm-max.png" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
470
  </draw_ops>
 
471
 
 
472
  <draw_ops name="maximize_button_icon_pressed">
 
473
    <image filename="wm-max.png" colorize="#FFFFFF" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
474
  </draw_ops>
 
475
  
 
476
  <draw_ops name="maximize_button_normal">
 
477
    <include name="maximize_button_icon"/>
 
478
  </draw_ops>
 
479
  <draw_ops name="maximize_button_pressed">
 
480
    <include name="maximize_button_icon_pressed"/>
 
481
  </draw_ops>
 
482
  <draw_ops name="maximize_button_unfocused">
 
483
    <include name="button_icon_unfocused"/>
 
484
  </draw_ops>
 
485
 
 
486
  <draw_ops name="restore_button_icon">
 
487
    <image filename="wm-restore.png" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
488
  </draw_ops>
 
489
 
 
490
  <draw_ops name="restore_button_icon_pressed">
 
491
    <image filename="wm-restore.png" colorize="#FFFFFF" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
492
  </draw_ops>
 
493
 
 
494
  <draw_ops name="restore_button_normal">
 
495
    <include name="restore_button_icon"/>
 
496
  </draw_ops>
 
497
  <draw_ops name="restore_button_pressed">
 
498
    <include name="restore_button_icon_pressed"/>
 
499
  </draw_ops>
 
500
  <draw_ops name="restore_button_unfocused">
 
501
    <include name="button_icon_unfocused"/>
 
502
  </draw_ops>
 
503
 
 
504
  <draw_ops name="minimize_button_icon">
 
505
    <image filename="wm-min.png" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
506
  </draw_ops>
 
507
 
 
508
  <draw_ops name="minimize_button_icon_pressed">
 
509
    <image filename="wm-min.png" colorize="#ffffff" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
510
  </draw_ops>
 
511
 
 
512
  <draw_ops name="minimize_button_normal">
 
513
    <include name="minimize_button_icon"/>
 
514
  </draw_ops>
 
515
  <draw_ops name="minimize_button_pressed">
 
516
    <include name="minimize_button_icon_pressed"/>
 
517
  </draw_ops>
 
518
  <draw_ops name="minimize_button_unfocused">
 
519
    <include name="button_icon_unfocused"/>
 
520
  </draw_ops>
 
521
 
 
522
  <draw_ops name="blank">
 
523
<!-- nothing --></draw_ops>
 
524
 
 
525
  <frame_style name="normal" geometry="normal">
 
526
    <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
 
527
    <piece position="title" draw_ops="title_unfocused"/>
 
528
    <button function="close" state="normal" draw_ops="close_button_unfocused"/>
 
529
    <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
530
    <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
 
531
    <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
 
532
    <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
 
533
    <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
534
    <button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
 
535
    <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
 
536
  </frame_style>
 
537
 
 
538
  <frame_style name="focused" geometry="normal" parent="normal">
 
539
    <piece position="entire_background" draw_ops="round_bevel"/>
 
540
    <piece position="title" draw_ops="title"/>
 
541
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
542
    <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
 
543
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
544
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
545
  </frame_style>
 
546
 
 
547
  <frame_style name="focused_shaded" geometry="normal" parent="normal">
 
548
    <piece position="entire_background" draw_ops="round_bevel_shaded"/>
 
549
    <piece position="title" draw_ops="title"/>
 
550
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
551
    <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
 
552
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
553
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
554
  </frame_style>
 
555
 
 
556
  <frame_style name="normal_maximized" geometry="normal_maximized">
 
557
    <piece position="entire_background" draw_ops="bevel_unfocused"/>
 
558
    <piece position="title" draw_ops="title_unfocused"/>
 
559
    <button function="close" state="normal" draw_ops="close_button_unfocused"/>
 
560
    <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
561
    <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
 
562
    <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
 
563
    <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
 
564
    <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
565
    <button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
 
566
    <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
 
567
  </frame_style>
 
568
 
 
569
  <frame_style name="focused_maximized" geometry="normal_maximized" parent="normal">
 
570
    <piece position="entire_background" draw_ops="bevel_maximized"/>
 
571
    <piece position="title" draw_ops="title"/>
 
572
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
573
    <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
 
574
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
575
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
576
  </frame_style>
 
577
 
 
578
  <frame_style name="border" geometry="border" parent="normal">
 
579
    <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
 
580
    <piece position="title" draw_ops="blank"/>
 
581
  </frame_style>
 
582
 
 
583
<!-- available styles -->
 
584
 
 
585
  <frame_style_set name="normal">
 
586
    <frame focus="yes" state="normal" resize="both" style="focused"/>
 
587
    <frame focus="no" state="normal" resize="both" style="normal"/>
 
588
    <frame focus="yes" state="maximized" style="focused_maximized"/>
 
589
    <frame focus="no" state="maximized" style="normal_maximized"/>
 
590
    <frame focus="yes" state="shaded" style="focused_shaded"/>
 
591
    <frame focus="no" state="shaded" style="normal"/>
 
592
    <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
 
593
    <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
 
594
  </frame_style_set>
 
595
 
 
596
  <frame_style_set name="utility" parent="normal">
 
597
    <frame focus="yes" state="normal" resize="both" style="focused"/>
 
598
    <frame focus="no" state="normal" resize="both" style="normal"/>
 
599
<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
 
600
    <frame focus="yes" state="maximized" style="focused"/>
 
601
    <frame focus="no" state="maximized" style="normal"/>
 
602
    <frame focus="yes" state="shaded" style="focused_shaded"/>
 
603
    <frame focus="no" state="shaded" style="normal"/>
 
604
    <frame focus="yes" state="maximized_and_shaded" style="focused"/>
 
605
    <frame focus="no" state="maximized_and_shaded" style="normal"/>
 
606
  </frame_style_set>
 
607
 
 
608
  <frame_style_set name="border">
 
609
    <frame focus="yes" state="normal" resize="both" style="border"/>
 
610
    <frame focus="no" state="normal" resize="both" style="border"/>
 
611
    <frame focus="yes" state="maximized" style="border"/>
 
612
    <frame focus="no" state="maximized" style="border"/>
 
613
    <frame focus="yes" state="shaded" style="border"/>
 
614
    <frame focus="no" state="shaded" style="border"/>
 
615
    <frame focus="yes" state="maximized_and_shaded" style="border"/>
 
616
    <frame focus="no" state="maximized_and_shaded" style="border"/>
 
617
  </frame_style_set>
 
618
 
 
619
  <window type="normal" style_set="normal"/>
 
620
  <window type="dialog" style_set="normal"/>
 
621
  <window type="modal_dialog" style_set="normal"/>
 
622
  <window type="menu" style_set="normal"/>
 
623
  <window type="utility" style_set="normal"/>
 
624
  <window type="border" style_set="border"/>
 
625
 
 
626
  <menu_icon function="close" state="normal" draw_ops="close_button_icon_pressed"/>
 
627
  <menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_pressed"/>
 
628
  <menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_pressed"/>
 
629
  <menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_pressed"/>
 
630
 
 
631
</metacity_theme>