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

« back to all changes in this revision

Viewing changes to Nuvola/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-ng</name>
 
5
    <author>Lapo Calamandrei &lt;lapo@it.gnome.org&gt;</author>
 
6
    <copyright>2003 &#194; Lapo Calamandrei, &lt;lapo@it.gnome.org&gt;</copyright>
 
7
    <date>Nov, 2003</date>
 
8
    <description>Goes well with the Nuvola. Tig's World Domination derivate.</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="3" bottom="3"/>
 
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="3"/>
 
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
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="1" y1="3" x2="1" y2="4"/>
 
84
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="3" x2="2" y2="4"/>
 
85
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="2" x2="2" y2="2"/>
 
86
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="3" y1="1" x2="4" y2="1"/>
 
87
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="3" y1="2" x2="4" y2="2"/>
 
88
        
 
89
        <!-- bottom left -->
 
90
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="1" y1="height-4" x2="1" y2="height-5"/>
 
91
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
92
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="height-3" x2="2" y2="height-3"/>
 
93
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="height-2" x2="4" y2="height-2"/>
 
94
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="2" y1="height-3" x2="4" y2="height-3"/>
 
95
        
 
96
        <!-- top right -->
 
97
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-2" y1="3" x2="width-2" y2="4"/>
 
98
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
99
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-3" y1="2" x2="width-3" y2="2"/>
 
100
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-4" y1="1" x2="width-5" y2="1"/>
 
101
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-4" y1="2" x2="width-5" y2="2"/>
 
102
        
 
103
        <!-- bottom right -->
 
104
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
 
105
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
106
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
107
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
 
108
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
109
 
 
110
  </draw_ops>
 
111
 
 
112
  <draw_ops name="corners_outline_unfocused">
 
113
        <!-- top left -->
 
114
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="1" y1="3" x2="1" y2="4"/>
 
115
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="3" x2="2" y2="4"/>
 
116
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="2" x2="2" y2="2"/>
 
117
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="3" y1="1" x2="4" y2="1"/>
 
118
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="3" y1="2" x2="4" y2="2"/>
 
119
    
 
120
        <!-- bottom left -->
 
121
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="1" y1="height-4" x2="1" y2="height-5"/>
 
122
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
123
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="height-3" x2="2" y2="height-3"/>
 
124
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="height-2" x2="4" y2="height-2"/>
 
125
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="2" y1="height-3" x2="4" y2="height-3"/>
 
126
    
 
127
        <!-- top right -->
 
128
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-2" y1="3" x2="width-2" y2="4"/>
 
129
    <line color="shade/gtk:bg[NORMAL]/0.95" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
130
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-3" y1="2" x2="width-3" y2="2"/>
 
131
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-4" y1="1" x2="width-5" y2="1"/>
 
132
    <line color="shade/gtk:bg[NORMAL]/0.95" x1="width-4" y1="2" x2="width-5" y2="2"/>
 
133
 
 
134
        <!-- bottom right -->
 
135
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
 
136
    <line color="shade/gtk:bg[NORMAL]/0.95" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
137
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
 
138
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
 
139
    <line color="shade/gtk:bg[NORMAL]/0.95" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
140
  </draw_ops>
 
141
 
 
142
  <draw_ops name="corners_hilight_unfocused">
 
143
 
 
144
  <!-- ** corner hilight for left top ** -->
 
145
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="2" y1="3" x2="2" y2="4"/>
 
146
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="3" y1="2" x2="4" y2="2"/>
 
147
 
 
148
  <!-- ** corner hilight for left bottom ** -->
 
149
    <line color="shade/gtk:bg[NORMAL]/1.4" x1="2" y1="height-4" x2="2" y2="height-5"/>
 
150
    <line color="shade/gtk:bg[NORMAL]/0.9" x1="3" y1="height-3" x2="4" y2="height-3"/>
 
151
 
 
152
  <!-- ** corner hilight for right top **
 
153
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-3" y1="3" x2="width-3" y2="4"/>
 
154
    <line color="shade/gtk:bg[NORMAL]/0.8" x1="width-4" y1="2" x2="width-4" y2="2"/>
 
155
    <line color="shade/gtk:bg[NORMAL]/1.9" x1="width-5" y1="2" x2="width-5" y2="2"/>
 
156
   -->
 
157
  <!-- ** corner hilight for right bottom ** -->
 
158
  <!--  <line color="shade/gtk:bg[NORMAL]/0.7" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
 
159
    <line color="shade/gtk:bg[NORMAL]/0.7" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
 
160
  -->
 
161
 
 
162
  </draw_ops>
 
163
 
 
164
  <draw_ops name="corners_hilight">
 
165
<!-- do some serious ani-aliasing ;) -->
 
166
 
 
167
  <!-- ** corner hilight for left top ** -->
 
168
    <line color="shade/gtk:bg[SELECTED]/1.1" x1="3" y1="4" x2="3" y2="4"/>
 
169
    <line color="shade/gtk:bg[SELECTED]/1.1" x1="4" y1="3" x2="4" y2="2"/>
 
170
 
 
171
  <!-- ** corner hilight for left bottom ** -->
 
172
    <line color="shade/gtk:bg[SELECTED]/0.8" x1="3" y1="height-5" x2="3" y2="height-5"/>
 
173
    <!-- <line color="shade/gtk:bg[SELECTED]/1.0" x1="2" y1="height-4" x2="2" y2="height-5"/> -->
 
174
    <line color="shade/gtk:bg[SELECTED]/0.7" x1="3" y1="height-4" x2="3" y2="height-4"/>
 
175
    <line color="shade/gtk:bg[SELECTED]/0.8" x1="4" y1="height-4" x2="4" y2="height-4"/>
 
176
 
 
177
  <!-- ** corner hilight for right top ** -->
 
178
    <line color="gtk:bg[SELECTED]" x1="width-5" y1="3" x2="width-5" y2="3"/>
 
179
    <line color="shade/gtk:bg[SELECTED]/0.7" x1="width-4" y1="3" x2="width-4" y2="3"/>
 
180
    <line color="shade/gtk:bg[SELECTED]/0.9" x1="width-4" y1="4" x2="width-4" y2="4"/>
 
181
 
 
182
  <!-- ** corner hilight for right bottom ** -->
 
183
  <!--  <line color="shade/gtk:bg[NORMAL]/0.5" x1="width-4" y1="height-6" x2="width-4" y2="height-6"/><
 
184
    <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-4" y1="height-5" x2="width-4" y2="height-5"/>
 
185
    <line color="shade/gtk:bg[SELECTED]/0.4" x1="width-4" y1="height-4" x2="width-4" y2="height-4"/>
 
186
    <line color="shade/gtk:bg[SELECTED]/0.6" x1="width-5" y1="height-4" x2="width-5" y2="height-4"/>
 
187
    <line color="shade/gtk:bg[NORMAL]/0.5" x1="width-6" y1="height-4" x2="width-6" y2="height-4"/>
 
188
  -->
 
189
  </draw_ops>
 
190
 
 
191
  <draw_ops name="bevel_unfocused">
 
192
 
 
193
  <!-- ** 3d beveled frame ** -->
 
194
    <rectangle color="shade/gtk:light[NORMAL]/1.6" filled="false" x="1" y="1" width="width - 3" height="height - 4"/>
 
195
 
 
196
    <rectangle color="shade/gtk:light[NORMAL]/1.3" filled="false" x="2" y="2" width="width - 2" height="height - 4"/>
 
197
 
 
198
    <rectangle color="gtk:dark[NORMAL]" filled="false" x="2" y="2" width="width - 3" height="height - 3"/>
 
199
 
 
200
    <rectangle color="gtk:bg[NORMAL]" filled="true" x="2" y="2" width="width - 3" height="height - 3"/>
 
201
 
 
202
    <rectangle color="shade/gtk:bg[NORMAL]/0.8" filled="false" x="0" y="0" width="width - 1" height="height - 1"/>
 
203
  
 
204
  </draw_ops>
 
205
 
 
206
  <draw_ops name="round_bevel_unfocused">
 
207
    <include name="bevel_unfocused"/>
 
208
    <include name="corners_outline_unfocused"/>
 
209
    <include name="corners_hilight_unfocused"/>
 
210
 
 
211
  </draw_ops>
 
212
 
 
213
  <draw_ops name="bevel">
 
214
 
 
215
  <!-- outermost black border -->
 
216
  <!-- left -->
 
217
    <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="true" x="0" y="0" width="2" height="height"/>
 
218
  <!-- right -->
 
219
    <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="true" x="width - 2" y="0" width="2" height="height"/>
 
220
  <!-- top -->
 
221
    <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="true" x="0" y="0" width="width" height="2"/>
 
222
 
 
223
    <!--tl-->
 
224
    <!-- the bcg is actually lighter -->
 
225
  <rectangle color="shade/gtk:bg[SELECTED]/0.9" filled="false"
 
226
             x="2" y="2"
 
227
             width="width"
 
228
             height="height"/>
 
229
    <!--br-->
 
230
    <rectangle color="shade/gtk:bg[SELECTED]/0.5" filled="false" x="3" y="3" width="width - 6" height="height - 6"/>
 
231
 
 
232
             
 
233
 
 
234
<!--
 
235
   below the title up till bottom ; FIXME -slow
 
236
   -->
 
237
    <rectangle color="shade/gtk:bg[SELECTED]/0.6" filled="true" x="3" y="3" width="width - 6" height="height - 6"/>
 
238
 
 
239
  <!-- ** fancy gradient ** -->
 
240
  <!-- too bad metacity is misbehaving when I wanna do the interlace effect here
 
241
   -->
 
242
    <gradient type="vertical" x="3" y="3" width="width - 6" height="top_height - 3">
 
243
      <color value="gtk:bg[SELECTED]"/>
 
244
      <color value="shade/gtk:bg[SELECTED]/0.6"/>
 
245
    </gradient>
 
246
    
 
247
<!-- inner dark stroke -->
 
248
 
 
249
  <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="false"
 
250
       x="5" y="title_height + 5"
 
251
       width="width - 11"
 
252
       height="height - title_height - 11"/>
 
253
 
 
254
  <!-- now the bottom dark border -->
 
255
    <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="true" x="0" y="height - 2" width="width" height="2"/>
 
256
 
 
257
  </draw_ops>
 
258
  <draw_ops name="bottom_corners">
 
259
 
 
260
<!-- bottom corners
 
261
     * I cannot yet figure out how to do one from topright to bottomleft
 
262
 
 
263
  <gradient type="vertical" x="width - 24" y="height - 48" width="22" height="46">
 
264
        <color value="gtk:bg[NORMAL]"/>
 
265
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
266
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
267
  </gradient>
 
268
 
 
269
  <gradient type="horizontal" x="width - 48" y="height - 48" width="24" height="46">
 
270
        <color value="gtk:bg[NORMAL]"/>
 
271
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
272
  </gradient>
 
273
 
 
274
 
 
275
  <gradient type="vertical" x="2" y="height - 48" width="22" height="46">
 
276
        <color value="gtk:bg[NORMAL]"/>
 
277
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
278
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
279
  </gradient>
 
280
 
 
281
  <gradient type="horizontal" x="24" y="height - 48" width="24" height="46">
 
282
   <color value="shade/gtk:bg[SELECTED]/0.7"/>
 
283
        <color value="gtk:bg[NORMAL]"/>
 
284
  </gradient>
 
285
   -->
 
286
 
 
287
  </draw_ops>
 
288
 <draw_ops name="normal_maximized">
 
289
   <rectangle color="gtk:bg[NORMAL]" filled="true"
 
290
        x="0" y="1"
 
291
        width="width - 1"
 
292
        height="height"/>
 
293
 </draw_ops>
 
294
 <draw_ops name="bevel_maximized">
 
295
 
 
296
  <!-- this one is like bevel but without the outermost black border cause it gave the impression that the maximized window wasn't fully maximized. -->
 
297
  <gradient type="vertical" x="0" y="2" width="width" height="top_height - 2">
 
298
      <color value="shade/gtk:bg[SELECTED]/1.05"/>
 
299
      <color value="shade/gtk:bg[SELECTED]/0.6"/>
 
300
   </gradient>
 
301
 
 
302
 <rectangle color="shade/gtk:bg[SELECTED]/0.4" filled="false"
 
303
       x="0" y="title_height + 5"
 
304
       width="width - 1"
 
305
       height="height - title_height - 5"/>
 
306
 
 
307
 <line color="shade/gtk:bg[SELECTED]/0.9" x1="0" y1="1" x2="width" y2="1" />
 
308
 
 
309
  <!-- now the top dark border -->
 
310
 <line color="shade/gtk:bg[SELECTED]/0.4" x1="0" y1="0" x2="width" y2="0" />
 
311
<!-- now the bottom dark border -->
 
312
 <line color="shade/gtk:bg[SELECTED]/0.4" x1="0" y1="height -  1" x2="width" y2="height - 1" />
 
313
  </draw_ops>
 
314
 
 
315
  <draw_ops name="round_bevel_shaded">
 
316
    <include name="bevel"/>
 
317
    <include name="corners_hilight"/>
 
318
    <include name="corners_outline"/>
 
319
  </draw_ops>
 
320
 
 
321
  <draw_ops name="round_bevel">
 
322
    <include name="bevel"/>
 
323
    <include name="corners_hilight"/>
 
324
    <include name="bottom_corners"/>
 
325
    <include name="corners_outline"/>
 
326
  </draw_ops>
 
327
 
 
328
<!-- ::: TITLES ::: -->
 
329
 
 
330
<!-- trucchetto interessante -->
 
331
  <draw_ops name="title_text">
 
332
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2) `max` 0)"/>
 
333
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2 + 1) `max` 0)"/>
 
334
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 + 1" y="(((height - title_height) / 2 - 1) `max` 0)"/>
 
335
 
 
336
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 - 1" y="(((height - title_height) / 2) `max` 0)"/>
 
337
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 - 1" y="(((height - title_height) / 2 - 1) `max` 0)"/>
 
338
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2 - 1" y="(((height - title_height) / 2 + 1) `max` 0)"/>
 
339
 
 
340
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2 + 1) `max` 0)"/>
 
341
    <title color="shade/gtk:bg[SELECTED]/0.6" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2 - 1) `max` 0)"/> 
 
342
 
 
343
    <title color="#FFFFFF" x="(3 `max` (width-title_width)) / 2" y="(((height - title_height) / 2) `max` 0)"/>
 
344
  </draw_ops>
 
345
 
 
346
  <draw_ops name="title_text_unfocused">
 
347
    <title color="gtk:text[NORMAL]" x="(3 `max` (width-title_width)) / 2" y="((height - title_height) / 2) `max` 0"/>
 
348
  </draw_ops>
 
349
 
 
350
  <draw_ops name="title">
 
351
    <include name="title_text"/>
 
352
  </draw_ops>
 
353
 
 
354
  <draw_ops name="title_unfocused">
 
355
    <include name="title_text_unfocused"/>
 
356
  </draw_ops>
 
357
 
 
358
<!-- ::: BUTTONS ::: -->
 
359
 
 
360
 <draw_ops name="menu_button_icon"> 
 
361
  <icon  x="0"
 
362
         y="0"
 
363
         width="width" height="height"/>
 
364
</draw_ops>
 
365
 
 
366
<draw_ops name="menu_button_icon_unfocused"> 
 
367
  <icon  x="0"
 
368
         y="0"
 
369
         width="width" height="height" alpha="0.5"/>
 
370
</draw_ops>
 
371
 
 
372
  <draw_ops name="menu_button_normal">
 
373
    <include name="menu_button_icon"/>
 
374
  </draw_ops>
 
375
  <draw_ops name="menu_button_prelight">
 
376
    <include name="menu_button_icon"/>
 
377
  </draw_ops>
 
378
  <draw_ops name="menu_button_pressed">
 
379
    <include name="menu_button_icon"/>
 
380
  </draw_ops>
 
381
  <draw_ops name="menu_button_unfocused">
 
382
    <include name="menu_button_icon_unfocused"/>
 
383
  </draw_ops>
 
384
 
 
385
  <draw_ops name="close_button_icon">
 
386
    <image filename="wm-close.svg" colorize="shade/gtk:bg[SELECTED]/0.5" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
387
  </draw_ops>
 
388
 
 
389
  <draw_ops name="close_button_icon_prelight">
 
390
    <image filename="wm-close.svg" colorize="shade/gtk:bg[SELECTED]/0.8" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
391
  </draw_ops>
 
392
 
 
393
  <draw_ops name="close_button_icon_pressed">
 
394
    <image filename="wm-close-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.7" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
395
  </draw_ops>
 
396
 
 
397
  <draw_ops name="close_button_icon_unfocused">
 
398
    <image filename="wm-close-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
399
  </draw_ops>
 
400
 
 
401
  <draw_ops name="close_button_icon_unfocused_prelight">
 
402
    <image filename="wm-close-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
403
  </draw_ops>
 
404
 
 
405
<draw_ops name="close_button_icon_unfocused_pressed">
 
406
    <image filename="wm-close.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
407
  </draw_ops>
 
408
 
 
409
 
 
410
 
 
411
  <draw_ops name="close_button_prelight">
 
412
    <include name="close_button_icon_prelight"/>
 
413
  </draw_ops>
 
414
  <draw_ops name="close_button_normal">
 
415
    <include name="close_button_icon"/>
 
416
  </draw_ops>
 
417
  <draw_ops name="close_button_pressed">
 
418
    <include name="close_button_icon_pressed"/>
 
419
  </draw_ops>
 
420
  <draw_ops name="close_button_unfocused">
 
421
    <include name="close_button_icon_unfocused"/>
 
422
  </draw_ops>
 
423
  <draw_ops name="close_button_unfocused_prelight">
 
424
    <include name="close_button_icon_unfocused_prelight"/>
 
425
  </draw_ops>
 
426
  <draw_ops name="close_button_unfocused_pressed">
 
427
    <include name="close_button_icon_unfocused_pressed"/>
 
428
  </draw_ops>
 
429
 
 
430
 
 
431
  <draw_ops name="maximize_button_icon">
 
432
    <image filename="wm-max.svg" colorize="shade/gtk:bg[SELECTED]/0.5" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
433
  </draw_ops>
 
434
 
 
435
  <draw_ops name="maximize_button_icon_prelight">
 
436
    <image filename="wm-max.svg" colorize="shade/gtk:bg[SELECTED]/0.8" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
437
  </draw_ops>
 
438
 
 
439
  <draw_ops name="maximize_button_icon_pressed">
 
440
    <image filename="wm-max-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.7" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
441
  </draw_ops>
 
442
 
 
443
  <draw_ops name="maximize_button_icon_unfocused">
 
444
    <image filename="wm-max-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
445
  </draw_ops>
 
446
 
 
447
  <draw_ops name="maximize_button_icon_unfocused_prelight">
 
448
    <image filename="wm-max-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
449
  </draw_ops>
 
450
 
 
451
  <draw_ops name="maximize_button_icon_unfocused_pressed">
 
452
    <image filename="wm-max.svg" colorize="shade/gtk:bg[SELECTED]/0.1" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
453
  </draw_ops>
 
454
 
 
455
 
 
456
  <draw_ops name="maximize_button_normal">
 
457
    <include name="maximize_button_icon"/>
 
458
  </draw_ops>
 
459
  <draw_ops name="maximize_button_prelight">
 
460
    <include name="maximize_button_icon_prelight"/>
 
461
  </draw_ops>
 
462
  <draw_ops name="maximize_button_pressed">
 
463
    <include name="maximize_button_icon_pressed"/>
 
464
  </draw_ops>
 
465
  <draw_ops name="maximize_button_unfocused">
 
466
    <include name="maximize_button_icon_unfocused"/>
 
467
  </draw_ops>
 
468
  <draw_ops name="maximize_button_unfocused_prelight">
 
469
    <include name="maximize_button_icon_unfocused_prelight"/>
 
470
  </draw_ops>
 
471
  <draw_ops name="maximize_button_unfocused_pressed">
 
472
    <include name="maximize_button_icon_unfocused_pressed"/>
 
473
  </draw_ops>
 
474
 
 
475
 
 
476
 
 
477
  <draw_ops name="restore_button_icon">
 
478
    <image filename="wm-restore.svg" colorize="shade/gtk:bg[SELECTED]/0.5" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
479
  </draw_ops>
 
480
 
 
481
  <draw_ops name="restore_button_icon_prelight">
 
482
    <image filename="wm-restore.svg" colorize="shade/gtk:bg[SELECTED]/0.8" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
483
  </draw_ops>
 
484
 
 
485
  <draw_ops name="restore_button_icon_pressed">
 
486
    <image filename="wm-restore-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.7" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
487
  </draw_ops>
 
488
 
 
489
  <draw_ops name="restore_button_icon_unfocused">
 
490
    <image filename="wm-restore-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
491
  </draw_ops>
 
492
 
 
493
  <draw_ops name="restore_button_icon_unfocused_prelight">
 
494
    <image filename="wm-restore-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
495
  </draw_ops>
 
496
 
 
497
<draw_ops name="restore_button_icon_unfocused_pressed">
 
498
    <image filename="wm-restore.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
499
  </draw_ops>
 
500
 
 
501
  <draw_ops name="restore_button_normal">
 
502
    <include name="restore_button_icon"/>
 
503
  </draw_ops>
 
504
  <draw_ops name="restore_button_prelight">
 
505
    <include name="restore_button_icon_prelight"/>
 
506
  </draw_ops>
 
507
  <draw_ops name="restore_button_pressed">
 
508
    <include name="restore_button_icon_pressed"/>
 
509
  </draw_ops>
 
510
  <draw_ops name="restore_button_unfocused">
 
511
    <include name="restore_button_icon_unfocused"/>
 
512
  </draw_ops>
 
513
  <draw_ops name="restore_button_unfocused_prelight">
 
514
    <include name="restore_button_icon_unfocused_prelight"/>
 
515
  </draw_ops>
 
516
  <draw_ops name="restore_button_unfocused_pressed">
 
517
    <include name="restore_button_icon_unfocused_pressed"/>
 
518
  </draw_ops>
 
519
 
 
520
  <draw_ops name="minimize_button_icon">
 
521
    <image filename="wm-min.svg" colorize="shade/gtk:bg[SELECTED]/0.5" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
522
  </draw_ops>
 
523
 
 
524
  <draw_ops name="minimize_button_icon_prelight">
 
525
    <image filename="wm-min.svg" colorize="shade/gtk:bg[SELECTED]/0.8" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
526
  </draw_ops>
 
527
 
 
528
  <draw_ops name="minimize_button_icon_pressed">
 
529
    <image filename="wm-min-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.7" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
530
  </draw_ops>
 
531
 
 
532
  <draw_ops name="minimize_button_icon_unfocused">
 
533
    <image filename="wm-min-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.1" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
534
  </draw_ops>
 
535
 
 
536
  <draw_ops name="minimize_button_icon_unfocused_prelight">
 
537
    <image filename="wm-min-alt.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
538
  </draw_ops>
 
539
 
 
540
  <draw_ops name="minimize_button_icon_unfocused_pressed">
 
541
    <image filename="wm-min.svg" colorize="shade/gtk:bg[SELECTED]/0.2" alpha="0.2" x="ButtonIPad" y="ButtonIPad" width="width - ButtonIPad" height="height - ButtonIPad"/>
 
542
  </draw_ops>
 
543
 
 
544
  <draw_ops name="minimize_button_normal">
 
545
    <include name="minimize_button_icon"/>
 
546
  </draw_ops>
 
547
  <draw_ops name="minimize_button_prelight">
 
548
    <include name="minimize_button_icon_prelight"/>
 
549
  </draw_ops>
 
550
  <draw_ops name="minimize_button_pressed">
 
551
    <include name="minimize_button_icon_pressed"/>
 
552
  </draw_ops>
 
553
  <draw_ops name="minimize_button_unfocused">
 
554
    <include name="minimize_button_icon_unfocused"/>
 
555
  </draw_ops>
 
556
  <draw_ops name="minimize_button_unfocused_prelight">
 
557
    <include name="minimize_button_icon_unfocused_prelight"/>
 
558
  </draw_ops>
 
559
  <draw_ops name="minimize_button_unfocused_pressed">
 
560
    <include name="minimize_button_icon_unfocused_pressed"/>
 
561
  </draw_ops>
 
562
 
 
563
  <draw_ops name="blank">
 
564
<!-- nothing --></draw_ops>
 
565
 
 
566
  <frame_style name="normal" geometry="normal">
 
567
    <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
 
568
    <piece position="title" draw_ops="title_unfocused"/>
 
569
    <button function="close" state="normal" draw_ops="close_button_unfocused"/>
 
570
    <button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
 
571
    <button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
 
572
    <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
 
573
    <button function="maximize" state="pressed" draw_ops="maximize_button_unfocused_pressed"/>
 
574
    <button function="maximize" state="prelight" draw_ops="maximize_button_unfocused_prelight"/>
 
575
    <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
 
576
    <button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
 
577
    <button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
 
578
    <button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
 
579
    <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
 
580
    <button function="menu" state="prelight" draw_ops="menu_button_prelight"/>
 
581
  </frame_style>
 
582
 
 
583
  <frame_style name="focused" geometry="normal" parent="normal">
 
584
    <piece position="entire_background" draw_ops="round_bevel"/>
 
585
    <piece position="title" draw_ops="title"/>
 
586
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
587
    <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
 
588
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
589
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
590
 
 
591
    <button function="close" state="prelight" draw_ops="close_button_prelight"/>
 
592
    <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
 
593
    <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
 
594
    <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
595
    <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
596
    <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
 
597
    
 
598
 </frame_style>
 
599
 
 
600
  <frame_style name="focused_shaded" geometry="normal" parent="normal">
 
601
    <piece position="entire_background" draw_ops="round_bevel_shaded"/>
 
602
    <piece position="title" draw_ops="title"/>
 
603
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
604
    <button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
 
605
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
606
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
607
    <button function="close" state="prelight" draw_ops="close_button_prelight"/>
 
608
    <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
 
609
    <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
 
610
    <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
611
    <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
612
    <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
 
613
  </frame_style>
 
614
 
 
615
  <frame_style name="normal_maximized" geometry="normal_maximized">
 
616
    <piece position="entire_background" draw_ops="normal_maximized"/>
 
617
    <piece position="title" draw_ops="title_unfocused"/>
 
618
    <button function="close" state="normal" draw_ops="close_button_unfocused"/>
 
619
    <button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
 
620
    <button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
 
621
    <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
 
622
    <button function="maximize" state="pressed" draw_ops="restore_button_unfocused_pressed"/>
 
623
    <button function="maximize" state="prelight" draw_ops="restore_button_unfocused_prelight"/>
 
624
    <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
 
625
    <button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
 
626
    <button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
 
627
    <button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
 
628
    <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
 
629
    <button function="menu" state="prelight" draw_ops="menu_button_prelight"/>
 
630
  </frame_style>
 
631
 
 
632
  <frame_style name="focused_maximized" geometry="normal_maximized" parent="normal">
 
633
    <piece position="entire_background" draw_ops="bevel_maximized"/>
 
634
    <piece position="title" draw_ops="title"/>
 
635
    <button function="close" state="normal" draw_ops="close_button_normal"/>
 
636
    <button function="maximize" state="normal" draw_ops="restore_button_normal"/>
 
637
    <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
 
638
    <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
 
639
    <button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
 
640
    <button function="menu" state="normal" draw_ops="menu_button_normal"/>
 
641
    <button function="close" state="prelight" draw_ops="close_button_prelight"/>
 
642
    <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
 
643
    <button function="close" state="pressed" draw_ops="close_button_pressed"/>
 
644
    <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
 
645
  </frame_style>
 
646
 
 
647
  <frame_style name="border" geometry="border" parent="normal">
 
648
    <piece position="entire_background" draw_ops="round_bevel_unfocused"/>
 
649
    <piece position="title" draw_ops="blank"/>
 
650
  </frame_style>
 
651
 
 
652
<!-- available styles -->
 
653
 
 
654
  <frame_style_set name="normal">
 
655
    <frame focus="yes" state="normal" resize="both" style="focused"/>
 
656
    <frame focus="no" state="normal" resize="both" style="normal"/>
 
657
    <frame focus="yes" state="maximized" style="focused_maximized"/>
 
658
    <frame focus="no" state="maximized" style="normal_maximized"/>
 
659
    <frame focus="yes" state="shaded" style="focused_shaded"/>
 
660
    <frame focus="no" state="shaded" style="normal"/>
 
661
    <frame focus="yes" state="maximized_and_shaded" style="focused_maximized"/>
 
662
    <frame focus="no" state="maximized_and_shaded" style="normal_maximized"/>
 
663
  </frame_style_set>
 
664
 
 
665
  <frame_style_set name="utility" parent="normal">
 
666
    <frame focus="yes" state="normal" resize="both" style="focused"/>
 
667
    <frame focus="no" state="normal" resize="both" style="normal"/>
 
668
<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
 
669
    <frame focus="yes" state="maximized" style="focused"/>
 
670
    <frame focus="no" state="maximized" style="normal"/>
 
671
    <frame focus="yes" state="shaded" style="focused_shaded"/>
 
672
    <frame focus="no" state="shaded" style="normal"/>
 
673
    <frame focus="yes" state="maximized_and_shaded" style="focused"/>
 
674
    <frame focus="no" state="maximized_and_shaded" style="normal"/>
 
675
  </frame_style_set>
 
676
 
 
677
  <frame_style_set name="border">
 
678
    <frame focus="yes" state="normal" resize="both" style="border"/>
 
679
    <frame focus="no" state="normal" resize="both" style="border"/>
 
680
    <frame focus="yes" state="maximized" style="border"/>
 
681
    <frame focus="no" state="maximized" style="border"/>
 
682
    <frame focus="yes" state="shaded" style="border"/>
 
683
    <frame focus="no" state="shaded" style="border"/>
 
684
    <frame focus="yes" state="maximized_and_shaded" style="border"/>
 
685
    <frame focus="no" state="maximized_and_shaded" style="border"/>
 
686
  </frame_style_set>
 
687
 
 
688
  <window type="normal" style_set="normal"/>
 
689
  <window type="dialog" style_set="normal"/>
 
690
  <window type="modal_dialog" style_set="normal"/>
 
691
  <window type="menu" style_set="normal"/>
 
692
  <window type="utility" style_set="normal"/>
 
693
  <window type="border" style_set="border"/>
 
694
 
 
695
  <menu_icon function="close" state="normal" draw_ops="close_button_icon_pressed"/>
 
696
  <menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_pressed"/>
 
697
  <menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_pressed"/>
 
698
  <menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_pressed"/>
 
699
 
 
700
</metacity_theme>