Skip to content

Commit 41f999d

Browse files
authored
Adapt to Cinnamon 3.8
1 parent f78cd04 commit 41f999d

1 file changed

Lines changed: 391 additions & 0 deletions

File tree

metacity-1/metacity-theme-3.xml

Lines changed: 391 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,391 @@
1+
<?xml version="1.0"?>
2+
<metacity_theme>
3+
<info>
4+
<name>Mac OS X Cheetah</name>
5+
<author>Elbullazul</author>
6+
<copyright>2017-2018, B00merang Project</copyright>
7+
<date>2017-2018, B00merang Project</date>
8+
<description>Metacity theme for Mac OS X Cheetah</description>
9+
</info>
10+
11+
<constant name="IconTitleSpacing" value="0"/>
12+
13+
<frame_geometry name="normal" rounded_top_left="3" rounded_top_right="3" rounded_bottom_left="false" rounded_bottom_right="false" title_scale="medium">
14+
<distance name="left_width" value="0"/>
15+
<distance name="right_width" value="0"/>
16+
<distance name="bottom_height" value="0"/>
17+
<distance name="left_titlebar_edge" value="6"/>
18+
<distance name="right_titlebar_edge" value="6"/>
19+
<distance name="button_width" value="20"/>
20+
<distance name="button_height" value="18"/>
21+
<distance name="title_vertical_pad" value="0"/>
22+
<border name="title_border" left="0" right="0" top="5" bottom="0"/>
23+
<border name="button_border" left="5" right="0" top="5" bottom="5"/>
24+
</frame_geometry>
25+
26+
<frame_geometry name="maximized" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false" title_scale="medium">
27+
<distance name="left_width" value="0"/>
28+
<distance name="right_width" value="0"/>
29+
<distance name="bottom_height" value="0"/>
30+
<distance name="left_titlebar_edge" value="6"/>
31+
<distance name="right_titlebar_edge" value="3"/>
32+
<distance name="button_width" value="20"/>
33+
<distance name="button_height" value="18"/>
34+
<distance name="title_vertical_pad" value="0"/>
35+
<border name="title_border" left="0" right="0" top="5" bottom="0"/>
36+
<border name="button_border" left="5" right="1" top="5" bottom="5"/>
37+
</frame_geometry>
38+
39+
<frame_geometry name="border" parent="normal" has_title="false">
40+
<distance name="button_width" value="0"/>
41+
<distance name="button_height" value="25"/>
42+
<border name="title_border" left="0" right="0" top="0" bottom="0"/>
43+
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
44+
</frame_geometry>
45+
46+
<draw_ops name="title-text-focused">
47+
<title color="#4c4c4c" x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing -72" y="(height - title_height) / 2 - 3"/>
48+
</draw_ops>
49+
50+
<draw_ops name="title-text-unfocused">
51+
<title color="#9f9f9f" x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing -72" y="(height - title_height) / 2 - 3"/>
52+
</draw_ops>
53+
54+
<draw_ops name="blank">
55+
</draw_ops>
56+
57+
<draw_ops name="title">
58+
<image filename="titlebar.png" x="0" y="0" width="width" height="height"/>
59+
</draw_ops>
60+
61+
<draw_ops name="title-shaded">
62+
<image filename="titlebar.png" x="0" y="0" width="width" height="height" alpha="0.9"/>
63+
</draw_ops>
64+
65+
<draw_ops name="title-unfocused">
66+
<image filename="titlebar.png" x="0" y="0" width="width" height="height" alpha="0.9"/>
67+
</draw_ops>
68+
69+
<draw_ops name="title-max">
70+
<image filename="titlebar.png" x="0" y="0" width="width" height="height"/>
71+
</draw_ops>
72+
73+
<draw_ops name="title-max-unfocused">
74+
<image filename="titlebar.png" x="0" y="0" width="width" height="height" alpha="0.9"/>
75+
</draw_ops>
76+
77+
<draw_ops name="frame-left-focused">
78+
<rectangle color="#d7d7d7" x="0" y="0" width="width"
79+
height="height" filled="true"/>
80+
</draw_ops>
81+
82+
<draw_ops name="frame-left-unfocused">
83+
<rectangle color="#e4e4e4" x="0" y="0" width="width"
84+
height="height" filled="true"/>
85+
</draw_ops>
86+
87+
<draw_ops name="frame-right-focused">
88+
<rectangle color="#d7d7d7" x="0" y="0" width="width"
89+
height="height" filled="true"/>
90+
</draw_ops>
91+
92+
<draw_ops name="frame-right-unfocused">
93+
<rectangle color="#e4e4e4" x="0" y="0" width="width"
94+
height="height" filled="true"/>
95+
</draw_ops>
96+
97+
<draw_ops name="frame-bottom-focused">
98+
<rectangle color="#d7d7d7" x="0" y="0" width="width"
99+
height="height" filled="true"/>
100+
</draw_ops>
101+
102+
<draw_ops name="frame-bottom-unfocused">
103+
<rectangle color="#e4e4e4" x="0" y="0" width="width"
104+
height="height" filled="true"/>
105+
</draw_ops>
106+
107+
<draw_ops name="button-close-focused">
108+
<image filename="close-focused-active.png" x="0" y="0" width="width" height="height"/>
109+
</draw_ops>
110+
111+
<draw_ops name="button-close-unfocused">
112+
<image filename="close-focused-normal.png" x="0" y="0" width="width" height="height"/>
113+
</draw_ops>
114+
115+
<draw_ops name="button-close-blurred">
116+
<image filename="close-unfocused-normal.png" x="0" y="0" width="width" height="height"/>
117+
</draw_ops>
118+
119+
<draw_ops name="button-close-pressed">
120+
<image filename="close-focused-pressed.png" x="0" y="0" width="width" height="height"/>
121+
</draw_ops>
122+
123+
<draw_ops name="button-maximize-focused">
124+
<image filename="maximize-focused-active.png" x="0" y="0" width="width" height="height"/>
125+
</draw_ops>
126+
127+
<draw_ops name="button-maximize-unfocused">
128+
<image filename="maximize-focused-normal.png" x="0" y="0" width="width" height="height"/>
129+
</draw_ops>
130+
131+
<draw_ops name="button-maximize-blurred">
132+
<image filename="maximize-unfocused-normal.png" x="0" y="0" width="width" height="height"/>
133+
</draw_ops>
134+
135+
<draw_ops name="button-maximize-pressed">
136+
<image filename="maximize-focused-pressed.png" x="0" y="0" width="width" height="height"/>
137+
</draw_ops>
138+
139+
<draw_ops name="button-restore-focused">
140+
<image filename="restore-focused-active.png" x="0" y="0" width="width" height="height"/>
141+
</draw_ops>
142+
143+
<draw_ops name="button-restore-unfocused">
144+
<image filename="restore-focused-normal.png" x="0" y="0" width="width" height="height"/>
145+
</draw_ops>
146+
147+
<draw_ops name="button-restore-blurred">
148+
<image filename="restore-unfocused-normal.png" x="0" y="0" width="width" height="height"/>
149+
</draw_ops>
150+
151+
<draw_ops name="button-restore-pressed">
152+
<image filename="restore-focused-pressed.png" x="0" y="0" width="width" height="height"/>
153+
</draw_ops>
154+
155+
<draw_ops name="button-minimize-focused">
156+
<image filename="minimize-focused-active.png" x="0" y="0" width="width" height="height"/>
157+
</draw_ops>
158+
159+
<draw_ops name="button-minimize-unfocused">
160+
<image filename="minimize-focused-normal.png" x="0" y="0" width="width" height="height"/>
161+
</draw_ops>
162+
163+
<draw_ops name="button-minimize-blurred">
164+
<image filename="minimize-unfocused-normal.png" x="0" y="0" width="width" height="height"/>
165+
</draw_ops>
166+
167+
<draw_ops name="button-minimize-pressed">
168+
<image filename="minimize-focused-pressed.png" x="0" y="0" width="width" height="height"/>
169+
</draw_ops>
170+
171+
<!-- Menu drawing operations -->
172+
<draw_ops name="menu_button_icon">
173+
</draw_ops>
174+
175+
<draw_ops name="menu_button_icon_unfocused">
176+
</draw_ops>
177+
178+
<draw_ops name="menu_button_normal">
179+
</draw_ops>
180+
181+
<draw_ops name="menu_button_pressed">
182+
</draw_ops>
183+
184+
<draw_ops name="menu_button_unfocused">
185+
</draw_ops>
186+
187+
<frame_style name="normal-focused" geometry="normal">
188+
<piece position="titlebar" draw_ops="title"/>
189+
<piece position="left_edge" draw_ops="frame-left-focused"/>
190+
<piece position="right_edge" draw_ops="frame-right-focused"/>
191+
<piece position="bottom_edge" draw_ops="frame-bottom-focused"/>
192+
<piece position="title" draw_ops="title-text-focused"/>
193+
<button function="close" state="normal" draw_ops="button-close-unfocused"/>
194+
<button function="close" state="prelight" draw_ops="button-close-focused"/>
195+
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
196+
197+
<button function="minimize" state="normal" draw_ops="button-minimize-unfocused"/>
198+
<button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
199+
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
200+
201+
<button function="maximize" state="normal" draw_ops="button-maximize-unfocused"/>
202+
<button function="maximize" state="prelight" draw_ops="button-maximize-focused"/>
203+
<button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
204+
205+
<button function="menu" state="normal" draw_ops="menu_button_normal"/>
206+
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
207+
208+
<!-- Extra stuff Linux Mint wants for theme to work -->
209+
<button function="shade" state="normal"><draw_ops></draw_ops></button>
210+
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
211+
<button function="shade" state="pressed"><draw_ops></draw_ops></button>
212+
213+
<button function="unshade" state="normal"><draw_ops></draw_ops></button>
214+
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
215+
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>
216+
217+
<button function="above" state="normal"><draw_ops></draw_ops></button>
218+
<button function="above" state="pressed"><draw_ops></draw_ops></button>
219+
220+
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
221+
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
222+
223+
<button function="stick" state="normal"><draw_ops></draw_ops></button>
224+
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
225+
226+
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
227+
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
228+
</frame_style>
229+
230+
<frame_style name="normal-unfocused" geometry="normal">
231+
<piece position="titlebar" draw_ops="title-unfocused"/>
232+
<piece position="left_edge" draw_ops="frame-left-unfocused"/>
233+
<piece position="right_edge" draw_ops="frame-right-unfocused"/>
234+
<piece position="bottom_edge" draw_ops="frame-bottom-unfocused"/>
235+
<piece position="title" draw_ops="title-text-unfocused"/>
236+
237+
<button function="close" state="normal" draw_ops="button-close-blurred"/>
238+
<button function="close" state="prelight" draw_ops="button-close-focused"/>
239+
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
240+
241+
<button function="minimize" state="normal" draw_ops="button-minimize-blurred"/>
242+
<button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
243+
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
244+
245+
<button function="maximize" state="normal" draw_ops="button-maximize-blurred"/>
246+
<button function="maximize" state="prelight" draw_ops="button-maximize-focused"/>
247+
<button function="maximize" state="pressed" draw_ops="button-maximize-pressed"/>
248+
249+
<button function="menu" state="normal" draw_ops="menu_button_normal"/>
250+
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
251+
252+
<!-- Extra stuff Linux Mint wants for theme to work -->
253+
<button function="shade" state="normal"><draw_ops></draw_ops></button>
254+
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
255+
<button function="shade" state="pressed"><draw_ops></draw_ops></button>
256+
257+
<button function="unshade" state="normal"><draw_ops></draw_ops></button>
258+
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
259+
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>
260+
261+
<button function="above" state="normal"><draw_ops></draw_ops></button>
262+
<button function="above" state="pressed"><draw_ops></draw_ops></button>
263+
264+
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
265+
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
266+
267+
<button function="stick" state="normal"><draw_ops></draw_ops></button>
268+
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
269+
270+
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
271+
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
272+
</frame_style>
273+
274+
<frame_style name="normal-maximized-focused" geometry="maximized">
275+
<piece position="titlebar" draw_ops="title-max"/>
276+
<piece position="left_edge" draw_ops="frame-left-focused"/>
277+
<piece position="right_edge" draw_ops="frame-right-focused"/>
278+
<piece position="bottom_edge" draw_ops="frame-bottom-focused"/>
279+
<piece position="title" draw_ops="title-text-focused"/>
280+
<button function="close" state="normal" draw_ops="button-close-unfocused"/>
281+
<button function="close" state="prelight" draw_ops="button-close-focused"/>
282+
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
283+
284+
<button function="minimize" state="normal" draw_ops="button-minimize-unfocused"/>
285+
<button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
286+
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
287+
288+
<button function="maximize" state="normal" draw_ops="button-restore-unfocused"/>
289+
<button function="maximize" state="prelight" draw_ops="button-restore-focused"/>
290+
<button function="maximize" state="pressed" draw_ops="button-restore-pressed"/>
291+
292+
<button function="menu" state="normal" draw_ops="menu_button_normal"/>
293+
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
294+
295+
<!-- Extra stuff Linux Mint wants for theme to work -->
296+
<button function="shade" state="normal"><draw_ops></draw_ops></button>
297+
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
298+
<button function="shade" state="pressed"><draw_ops></draw_ops></button>
299+
300+
<button function="unshade" state="normal"><draw_ops></draw_ops></button>
301+
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
302+
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>
303+
304+
<button function="above" state="normal"><draw_ops></draw_ops></button>
305+
<button function="above" state="pressed"><draw_ops></draw_ops></button>
306+
307+
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
308+
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
309+
310+
<button function="stick" state="normal"><draw_ops></draw_ops></button>
311+
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
312+
313+
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
314+
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
315+
</frame_style>
316+
317+
<frame_style name="normal-maximized-unfocused" geometry="maximized">
318+
<piece position="titlebar" draw_ops="title-max-unfocused"/>
319+
<piece position="left_edge" draw_ops="frame-left-unfocused"/>
320+
<piece position="right_edge" draw_ops="frame-right-unfocused"/>
321+
<piece position="bottom_edge" draw_ops="frame-bottom-unfocused"/>
322+
<piece position="title" draw_ops="title-text-unfocused"/>
323+
324+
<button function="close" state="normal" draw_ops="button-close-blurred"/>
325+
<button function="close" state="prelight" draw_ops="button-close-focused"/>
326+
<button function="close" state="pressed" draw_ops="button-close-pressed"/>
327+
328+
<button function="minimize" state="normal" draw_ops="button-minimize-blurred"/>
329+
<button function="minimize" state="prelight" draw_ops="button-minimize-focused"/>
330+
<button function="minimize" state="pressed" draw_ops="button-minimize-pressed"/>
331+
332+
<button function="maximize" state="normal" draw_ops="button-restore-blurred"/>
333+
<button function="maximize" state="prelight" draw_ops="button-restore-focused"/>
334+
<button function="maximize" state="pressed" draw_ops="button-restore-pressed"/>
335+
336+
<button function="menu" state="normal" draw_ops="menu_button_normal"/>
337+
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
338+
339+
<!-- Extra stuff Linux Mint wants for theme to work -->
340+
<button function="shade" state="normal"><draw_ops></draw_ops></button>
341+
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
342+
<button function="shade" state="pressed"><draw_ops></draw_ops></button>
343+
344+
<button function="unshade" state="normal"><draw_ops></draw_ops></button>
345+
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
346+
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>
347+
348+
<button function="above" state="normal"><draw_ops></draw_ops></button>
349+
<button function="above" state="pressed"><draw_ops></draw_ops></button>
350+
351+
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
352+
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
353+
354+
<button function="stick" state="normal"><draw_ops></draw_ops></button>
355+
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
356+
357+
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
358+
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
359+
</frame_style>
360+
361+
<frame_style name="normal-shaded-focused" geometry="normal" parent="normal-focused">
362+
<piece position="titlebar" draw_ops="title-shaded"/>
363+
</frame_style>
364+
365+
<frame_style name="normal-shaded-unfocused" geometry="normal" parent="normal-unfocused">
366+
<piece position="titlebar" draw_ops="title-shaded"/>
367+
</frame_style>
368+
369+
<frame_style_set name="normal">
370+
<frame focus="yes" state="normal" resize="both" style="normal-focused"/>
371+
<frame focus="no" state="normal" resize="both" style="normal-unfocused"/>
372+
<frame focus="yes" state="maximized" style="normal-maximized-focused"/>
373+
<frame focus="no" state="maximized" style="normal-maximized-unfocused"/>
374+
<frame focus="yes" state="shaded" style="normal-shaded-focused"/>
375+
<frame focus="no" state="shaded" style="normal-shaded-unfocused"/>
376+
<frame focus="yes" state="maximized_and_shaded" style="normal-shaded-focused"/>
377+
<frame focus="no" state="maximized_and_shaded" style="normal-shaded-unfocused"/>
378+
</frame_style_set>
379+
380+
<window type="normal" style_set="normal"/>
381+
<window type="dialog" style_set="normal"/>
382+
<window type="modal_dialog" style_set="normal"/>
383+
<window type="menu" style_set="normal"/>
384+
<window type="utility" style_set="normal"/>
385+
<window type="border" style_set="normal"/>
386+
387+
<menu_icon function="close" state="normal" draw_ops="button-close-focused"/>
388+
<menu_icon function="maximize" state="normal" draw_ops="button-maximize-focused"/>
389+
<menu_icon function="unmaximize" state="normal" draw_ops="button-maximize-focused"/>
390+
<menu_icon function="minimize" state="normal" draw_ops="button-minimize-focused"/>
391+
</metacity_theme>

0 commit comments

Comments
 (0)