~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/themes/Atlanta/metacity-theme-1.xml

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-03 22:44:28 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051003224428-ft31gkmz12qpzohj
Tags: 1:2.12.1-0ubuntu1
* New upstream release:
  - Thanks to Ray Strode, Havoc Pennington, and Elijah Newren for
    improvements in this release.
  - Truncate ridiculously long titles to avoid crashing or letting the
    pager crash (Ray, Havoc, Elijah) [#315070] (Ubuntu: #15995)
  - Get the tabbing window outline to work with gtk+ 2.8.4 again
    (Elijah) [#317528] (Ubuntu: #16589)
  - Translations: Mahay Alam Khan (bn), Francisco Javier F. Serrador (es), 
    Ivar Smolin (et), I\uffffaki Larra\uffffaga Murgoitio (eu), Luca 
    Ferretti (it), Christian Rose (sv), Clytie Siddall (vi), Funda 
    Wang (zh_CN)
* debian/control.in:
  - Bumped Standards-Version.
* debian/patches/003_bordersdrawingfix.patch:
  - dropped, fixed upstream.

Show diffs side-by-side

added added

removed removed

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