OSDN Git Service

[add] : Added icon and theme
[alterlinux/alterlinux-channels.git] / growth.add / airootfs.any / usr / share / icons / Marwaita / metacity-1 / metacity-theme-1.xml
1 <?xml version="1.0"?>
2 <metacity_theme>
3 <info>
4   <name>Marwaita</name>
5   <author>Darkomarko42</author>
6   <copyright>&#194; Darkomarko42, 2019</copyright>
7   <date>Oct 24, 2019</date>
8   <description>Marwaita metacity theme v2.0</description>
9 </info>
10
11 <!-- meaningfull constants -->
12
13 <constant name="C_border_focused" value="gtk:custom(m_border,gtk:bg[NORMAL])" />
14 <constant name="C_border_unfocused" value="gtk:custom(m_border,gtk:bg[NORMAL])" />
15 <constant name="C_titlebar_focused_hilight" value="gtk:custom(metacity_theme,gtk:bg[NORMAL])" />
16 <constant name="C_titlebar_unfocused" value="gtk:custom(metacity_theme,gtk:bg[NORMAL])" />
17 <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
18 <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[NORMAL])" />
19
20 <constant name="C_icons_fg_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
21 <constant name="C_icons_bg_focused_prelight" value="gtk:custom(m_button,gtk:bg[NORMAL])" />
22 <constant name="C_icons_bg_focused_pressed" value="gtk:custom(m_button_active,gtk:bg[NORMAL])" />
23
24 <constant name="C_icons_fg_c_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
25 <constant name="C_icons_bg_c_focused_prelight" value="gtk:custom(m_button,gtk:bg[NORMAL])" />
26 <constant name="C_icons_bg_c_focused_pressed" value="gtk:custom(m_button_active,gtk:bg[NORMAL])" />
27
28 <constant name="C_icons_fg_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[NORMAL])" />
29
30
31 <!--<constant name="C_border_focused" value="blend/#000000/gtk:bg[NORMAL]/0.7" />
32 <constant name="C_border_unfocused" value="blend/#000000/gtk:bg[NORMAL]/0.8" />
33 <constant name="C_titlebar_focused_hilight" value="gtk:custom(wm_highlight,gtk:base[NORMAL])" />
34 <constant name="C_titlebar_unfocused" value="blend/gtk:base[NORMAL]/gtk:bg[NORMAL]/0.4" />
35 <constant name="C_title_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
36 <constant name="C_title_focused_hilight" value="gtk:custom(wm_borders_edge,gtk:base[NORMAL])" />
37 <constant name="C_title_focused_hilight_dark" value="gtk:custom(wm_borders_edge,gtk:bg[NORMAL])" />
38 <constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,gtk:fg[INSENSITIVE])" />
39 -->
40 <!-- color of the button icons -->
41 <!--<constant name="C_icons_focused" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />
42 <constant name="C_icons_pressed" value="gtk:custom(wm_title,gtk:fg[NORMAL])" />-->
43 <constant name="C_icons_unfocused" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
44 <constant name="C_icons_unfocused_prelight" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
45 <constant name="C_icons_unfocused_pressed" value="gtk:custom(theme_unfocused_fg_color,gtk:fg[NORMAL])" />
46 <constant name="C_icons_shadow" value="gtk:custom(wm_borders_edge,gtk:base[NORMAL])" />
47 <constant name="C_separator" value="blend/#000000/gtk:bg[NORMAL]/0.9" />
48 <constant name="D_icons_unfocused_offset" value="0" /> <!-- offset of the unfocused icons -->
49 <constant name="D_icons_shrink" value="0" /> <!-- increasing this value makes the icons in buttons smaller -->
50 <constant name="D_icons_grow" value="0" /> <!-- increasing this value makes the icons in buttons bigger -->
51
52 <constant name="ISquare" value="10"/>
53
54 <!-- define constants -->
55 <constant name="XPad" value="8"/>
56 <constant name="YPad" value="6"/>
57 <constant name="BtnPad" value="6"/>
58 <constant name="IconTitleSpacing" value="6"/>
59 <constant name="ButtonIPad" value="4"/>
60
61
62 <!-- geometries -->
63
64 <frame_geometry name="normal">
65   <distance name="left_width" value="1"/>
66   <distance name="right_width" value="1"/>
67   <distance name="bottom_height" value="1"/>
68   <distance name="left_titlebar_edge" value="1"/>
69   <distance name="right_titlebar_edge" value="1"/>
70   <distance name="button_width" value="32"/>
71   <distance name="button_height" value="32"/>
72   <distance name="title_vertical_pad" value="0"/>
73   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
74   <border name="button_border" left="1" right="0" top="1" bottom="1"/>
75 </frame_geometry>
76
77 <!-- strip borders off the normal geometry -->
78 <frame_geometry name="normal_small_borders" parent="normal">
79   <distance name="left_width" value="1"/>
80   <distance name="right_width" value="1"/>
81   <distance name="bottom_height" value="1"/>
82   <distance name="left_titlebar_edge" value="1"/>
83   <distance name="right_titlebar_edge" value="1"/>
84 </frame_geometry>
85
86 <!-- comment -->
87 <frame_geometry name="utility" title_scale="x-small">
88   <distance name="left_width" value="1"/>
89   <distance name="right_width" value="1"/>
90   <distance name="bottom_height" value="1"/>
91   <distance name="left_titlebar_edge" value="1"/>
92   <distance name="right_titlebar_edge" value="1"/>
93   <distance name="button_width" value="24"/>
94   <distance name="button_height" value="24"/>
95   <distance name="title_vertical_pad" value="0"/>
96   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
97   <border name="button_border" left="1" right="0" top="1" bottom="1"/>
98 </frame_geometry>
99
100 <frame_geometry name="border" has_title="false">
101   <distance name="left_width" value="1"/>
102   <distance name="right_width" value="1"/>
103   <distance name="bottom_height" value="1"/>
104   <distance name="left_titlebar_edge" value="0"/>
105   <distance name="right_titlebar_edge" value="0"/>
106   <distance name="button_width" value="0"/>
107   <distance name="button_height" value="0"/>
108   <distance name="title_vertical_pad" value="0"/>
109   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
110   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
111 </frame_geometry>
112
113
114
115 <!-- window focused -->
116 <draw_ops name="draw_titlebar1">
117   <rectangle color="C_titlebar_focused_hilight" x="0" y="0" width="width" height="height" filled="true"/>
118         <line color="C_border_focused" x1="0" y1="0" x2="0" y2="height"/>
119         <line color="C_border_focused" x1="0" y1="0" x2="width" y2="0"/>
120         <line color="C_border_focused" x1="width-1" y1="0" x2="width-1" y2="height"/>
121 </draw_ops>
122
123 <draw_ops name="draw_ledge1">
124         <line color="C_border_focused" x1="0" y1="0" x2="0" y2="height"/>
125 </draw_ops>
126
127 <draw_ops name="draw_redge1">
128         <line color="C_border_focused" x1="width-1" y1="0" x2="width-1" y2="height"/>
129 </draw_ops>
130
131 <draw_ops name="draw_bottomedge1">
132         <line color="C_border_focused" x1="0" y1="0" x2="width" y2="height-1"/>        
133 </draw_ops>
134
135
136 <!-- window unfocused -->
137 <draw_ops name="draw_titlebar0">
138   <rectangle color="C_titlebar_unfocused" x="0" y="0" width="width" height="height" filled="true"/>
139   <line color="C_border_unfocused" x1="0" y1="0" x2="0" y2="height"/>
140   <line color="C_border_unfocused" x1="0" y1="0" x2="width" y2="0"/>
141   <line color="C_border_unfocused" x1="width-1" y1="0" x2="width-1" y2="height-1"/>
142 </draw_ops>
143
144 <draw_ops name="draw_ledge0">
145         <line color="C_border_unfocused" x1="0" y1="0" x2="0" y2="height"/>
146 </draw_ops>
147
148 <draw_ops name="draw_redge0">
149         <line color="C_border_unfocused" x1="width-1" y1="0" x2="width-1" y2="height"/>
150 </draw_ops>
151
152 <draw_ops name="draw_bottomedge0">
153   <line color="C_border_unfocused" x1="0" y1="height-1" x2="width" y2="height-1"/>        
154 </draw_ops>
155
156 <draw_ops name="blank">
157 <!-- nothing -->
158 </draw_ops>
159
160
161 <draw_ops name="title_text">
162   <!--<clip x="0" y="0" width="width-SpacerWidth" height="height"/>-->
163   <title color="C_title_focused"
164          x="(0 `max` ((frame_x_center - title_width/2) `min` (width - title_width)))"
165                y="(0 `max` ((height - title_height) / 2)) + 1"/>
166 </draw_ops>
167
168 <draw_ops name="title_text0">
169   <!--<clip x="0" y="0" width="width-SpacerWidth" height="height"/>-->
170   <title color="C_title_unfocused"
171          x="(0 `max` ((frame_x_center - title_width/2) `min` (width - title_width)))"
172                y="(0 `max` ((height - title_height) / 2)) + 1"/>
173 </draw_ops>
174
175 <draw_ops name="title_normal">
176   <include name="title_text"/>
177         <!--<rectangle color="#00ff00" x="1" y="1" width="width-1" height="height-1" filled="true"/>-->
178 </draw_ops>
179
180 <draw_ops name="title_focused">
181   <include name="title_text"/>
182 </draw_ops>
183
184 <draw_ops name="title_utility">
185   <include name="title_text"/>
186 </draw_ops>
187
188 <draw_ops name="title_utility_focused">
189   <include name="title_text"/>
190 </draw_ops>
191
192
193
194 <!-- Buttons background -->
195 <draw_ops name="button_prelight_bg">
196   <rectangle color="C_icons_bg_focused_prelight" filled="true" x="0" y="0" width="width" height="height"/>
197 </draw_ops>
198
199 <draw_ops name="button_pressed_bg">
200   <rectangle color="C_icons_bg_focused_pressed" filled="true" x="0" y="0" width="width" height="height"/>
201 </draw_ops>
202
203 <draw_ops name="close_button">
204     <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
205 </draw_ops>
206
207 <draw_ops name="close_button1">
208     <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
209 </draw_ops>
210
211 <draw_ops name="close_button_unfocused">
212     <image filename="assets/close.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
213 </draw_ops>
214
215 <draw_ops name="close_button_normal">
216   <include name="close_button"/>
217 </draw_ops>
218
219 <draw_ops name="close_button_prelight">
220   <rectangle color="C_icons_bg_c_focused_prelight" filled="true" x="0" y="0" width="width" height="height"/>
221   <include name="close_button1"/>
222 </draw_ops>
223
224 <draw_ops name="close_button_pressed">
225   <rectangle color="C_icons_bg_c_focused_pressed" filled="true" x="0" y="0" width="width" height="height"/>
226   <include name="close_button1"/>
227 </draw_ops>
228
229 <!-- minimize -->
230 <draw_ops name="minimize_button">
231     <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
232 </draw_ops>
233 <draw_ops name="minimize_button_unfocused">
234     <image filename="assets/minimize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
235 </draw_ops>
236 <draw_ops name="minimize_button_pressed">
237   <include name="button_pressed_bg"/>
238   <include name="minimize_button"/>
239 </draw_ops>
240 <draw_ops name="minimize_button_prelight">
241   <include name="button_prelight_bg"/>
242   <include name="minimize_button"/>
243 </draw_ops>
244
245 <!-- maximize -->
246 <draw_ops name="maximize_button">
247     <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
248 </draw_ops>
249 <draw_ops name="maximize_button_unfocused">
250     <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
251 </draw_ops>
252
253 <draw_ops name="maximize_button_pressed">
254   <include name="button_pressed_bg"/>
255   <include name="maximize_button"/>
256 </draw_ops>
257
258 <draw_ops name="maximize_button_prelight">
259   <include name="button_prelight_bg"/>
260   <include name="maximize_button" />
261 </draw_ops>
262
263
264 <draw_ops name="restore_button_unfocused">
265     <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="0.5" colorize="C_icons_fg_focused"/>
266 </draw_ops>
267
268
269 <draw_ops name="restore_button">
270     <image filename="assets/maximize.svg" x="(width - object_width) / 2" y="(height - object_height) / 2" width="object_width" height="object_height" alpha="1.0" colorize="C_icons_fg_focused"/>
271 </draw_ops>
272
273
274 <draw_ops name="restore_button_pressed">
275   <include name="button_pressed_bg"/>
276   <include name="restore_button"/>
277 </draw_ops>
278 <draw_ops name="restore_button_prelight">
279   <include name="button_prelight_bg"/>
280   <include name="restore_button"/>
281 </draw_ops>
282
283
284
285
286 <draw_ops name="menu_button">
287   <icon  x="8"
288          y="6"
289          width="width-12" height="height-12"/>
290 </draw_ops>
291
292 <draw_ops name="menu_button_pressed">
293   <include name="menu_button"/>
294 </draw_ops>
295
296
297 <draw_ops name="focus_outline">
298 <!-- nothing -->
299 </draw_ops>
300
301
302
303
304
305 <!-- frame style -->
306 <frame_style name="normal_focused" geometry="normal">
307   <piece position="title" draw_ops="title_focused"/>
308   <piece position="titlebar" draw_ops="draw_titlebar1"/>
309   <piece position="left_edge" draw_ops="draw_ledge1"/>
310   <piece position="right_edge" draw_ops="draw_redge1"/>
311   <piece position="bottom_edge" draw_ops="draw_bottomedge1"/>
312  <!-- we don't specify for prelight, so normal is used -->
313   <button function="close" state="normal" draw_ops="close_button_normal"/>
314   <button function="close" state="prelight" draw_ops="close_button_prelight"/>
315   <button function="close" state="pressed" draw_ops="close_button_pressed"/>
316   <button function="minimize" state="normal" draw_ops="minimize_button"/>
317   <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
318   <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
319   <button function="maximize" state="normal" draw_ops="maximize_button"/>
320   <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
321   <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
322   <button function="menu" state="normal" draw_ops="menu_button"/>
323   <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
324 </frame_style>
325
326
327 <frame_style name="normal_unfocused" geometry="normal" parent="normal_focused">
328   <piece position="title" draw_ops="title_text0"/>
329   <piece position="titlebar" draw_ops="draw_titlebar0"/>
330   <piece position="left_edge" draw_ops="draw_ledge0"/>
331   <piece position="right_edge" draw_ops="draw_redge0"/>
332   <piece position="bottom_edge" draw_ops="draw_bottomedge0"/>
333   <button function="close" state="normal" draw_ops="close_button_unfocused"/>
334   <button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
335   <button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
336 </frame_style>
337
338 <frame_style name="shaded_focused" geometry="normal" parent="normal_unfocused">
339   <piece position="title" draw_ops="title_focused"/>
340 </frame_style>
341
342 <frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
343   <piece position="entire_background" draw_ops="blank"/>
344   <button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
345   <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
346   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
347 </frame_style>
348
349 <frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
350   <button function="maximize" state="normal" draw_ops="restore_button"/>
351   <button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
352   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
353 </frame_style>
354
355 <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
356   <piece position="title" draw_ops="title_utility"/>
357 </frame_style>
358
359 <frame_style name="utility_focused" geometry="utility" parent="normal_focused">
360   <piece position="title" draw_ops="title_utility_focused"/>
361 </frame_style>
362
363 <frame_style name="border" geometry="border" parent="normal_unfocused">
364   <piece position="title" draw_ops="blank"/>
365 </frame_style>
366
367 <frame_style_set name="normal">
368 <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
369 <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
370 <frame focus="yes" state="maximized" style="maximized_focused"/>
371 <frame focus="no" state="maximized" style="maximized_unfocused"/>
372 <frame focus="yes" state="shaded" style="shaded_focused"/>
373 <frame focus="no" state="shaded" style="normal_unfocused"/>
374 <frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
375 <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
376 </frame_style_set>
377
378 <frame_style_set name="utility" parent="normal">
379 <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
380 <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
381 <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
382 <frame focus="yes" state="maximized" style="utility_focused"/>
383 <frame focus="no" state="maximized" style="utility_unfocused"/>
384 <frame focus="yes" state="shaded" style="utility_focused"/>
385 <frame focus="no" state="shaded" style="utility_unfocused"/>
386 <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
387 <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
388 </frame_style_set>
389
390 <frame_style_set name="border" parent="normal">
391 <frame focus="yes" state="normal" resize="both" style="border"/>
392 <frame focus="no" state="normal" resize="both" style="border"/>
393 <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
394 <frame focus="yes" state="maximized" style="utility_focused"/>
395 <frame focus="no" state="maximized" style="utility_unfocused"/>
396 <frame focus="yes" state="shaded" style="utility_focused"/>
397 <frame focus="no" state="shaded" style="utility_unfocused"/>
398 <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
399 <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
400 </frame_style_set>
401
402 <window type="normal" style_set="normal"/>
403 <window type="dialog" style_set="normal"/>
404 <window type="modal_dialog" style_set="normal"/>
405 <window type="menu" style_set="normal"/>
406 <window type="utility" style_set="utility"/>
407 <window type="border" style_set="border"/>
408
409 <menu_icon function="close" state="normal" draw_ops="close_button"/>
410 <menu_icon function="maximize" state="normal" draw_ops="maximize_button"/>
411 <menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/>
412 <menu_icon function="minimize" state="normal" draw_ops="minimize_button"/>
413
414 </metacity_theme>