~cimi/light-themes/gtk+3

« back to all changes in this revision

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

  • Committer: Kenneth Wimer
  • Date: 2010-03-04 11:26:34 UTC
  • Revision ID: kwwii@clive-20100304112634-5tyriyshzcjcmimv
First commit

Show diffs side-by-side

added added

removed removed

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