Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Adapt to Cinnamon 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Elbullazul authored Aug 10, 2018
1 parent 05a36fe commit 01838cd
Showing 1 changed file with 240 additions and 0 deletions.
240 changes: 240 additions & 0 deletions B00merang Glass/metacity-1/metacity-theme-3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
<?xml version="1.0"?>

<metacity_theme>
<info>
<name>ZorinDarkOrb</name>
<author>AZorin</author>
<copyright>GPL</copyright>
<date>2012-2013</date>
<description>Basic Window buttons theme derived form Atlanta</description>
</info>

<!--
General window layout (geometric stuff)
-->
<frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
<distance name="left_width" value="1"/>
<distance name="right_width" value="1"/>
<distance name="bottom_height" value="1"/>
<distance name="left_titlebar_edge" value="3"/>
<distance name="right_titlebar_edge" value="0"/>
<distance name="button_width" value="20"/>
<distance name="button_height" value="20"/>
<distance name="title_vertical_pad" value="0"/>
<border name="title_border" left="0" right="0" top="3" bottom="0"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<frame_geometry name="frame_geometry_abnormal" title_scale="medium" rounded_top_left="false" rounded_top_right="false">
<distance name="left_width" value="1"/>
<distance name="right_width" value="1"/>
<distance name="bottom_height" value="1"/>
<distance name="left_titlebar_edge" value="3"/>
<distance name="right_titlebar_edge" value="0"/>
<distance name="button_width" value="20"/>
<distance name="button_height" value="20"/>
<distance name="title_vertical_pad" value="0"/>
<border name="title_border" left="0" right="0" top="3" bottom="0"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<!--
Window Title
-->

<draw_ops name="draw_title_text_normal">
<title x="((width - title_width) / 2)" y="(height - title_height) / 2" color="#6193e2"/>
</draw_ops>

<draw_ops name="draw_title_text_inactive">
<title x="((width - title_width) / 2)" y="(height - title_height) / 2" color="#116d87"/>
</draw_ops>

<!--
Images to construct the title bar from
-->

<draw_ops name="draw_title">
<image filename="title_top_left.png" x="0" y="0" width="object_width" height="25"/>
<image filename="title_top_middle.png" x="9" y="0" width="width - 18" height="25"/>
<image filename="title_top_right.png" x="width - object_width" y="0" width="object_width" height="25"/>
</draw_ops>

<draw_ops name="draw_title_inactive">
<image filename="title_top_left_inactive.png" x="0" y="0" width="object_width" height="25"/>
<image filename="title_top_middle_inactive.png" x="9" y="0" width="width - 18" height="25"/>
<image filename="title_top_right_inactive.png" x="width - object_width" y="0" width="object_width" height="25"/>
</draw_ops>

<!--
The frame around windows
-->

<draw_ops name="draw_frame">
<rectangle color="#083854" x="0" y="0" width="width" height="height" filled="true"/>
</draw_ops>


<!--
Buttons
-->
<!-- close button-->
<draw_ops name="button_close_normal">
<image filename="button_close_normal.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_close_prelight">
<image filename="button_close_prelight.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_close_pressed">
<image filename="button_close_pressed.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>

<!-- maximize button-->
<draw_ops name="button_max_normal">
<image filename="button_max_normal.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_max_prelight">
<image filename="button_max_prelight.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_max_pressed">
<image filename="button_max_pressed.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>

<!-- minimize button-->
<draw_ops name="button_min_normal">
<image filename="button_min_normal.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_min_prelight">
<image filename="button_min_prelight.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="button_min_pressed">
<image filename="button_min_pressed.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>

<!-- menu icon -->
<draw_ops name="button_menu_normal">
<image filename="menu.png" x="0" y="0" width="object_width" height="object_height"/>
<!-- <icon x="0" y="0" width="mini_icon_width" height="mini_icon_height"/>-->
</draw_ops>
<draw_ops name="button_menu_prelight">
<image filename="menu.png" x="0" y="0" width="object_width" height="object_height"/>
<!-- <icon x="0" y="0" width="mini_icon_width" height="mini_icon_height" />
<tint color="white" alpha="0.3" x="0" y="0" width="mini_icon_width" height="mini_icon_height"/> -->
</draw_ops>
<draw_ops name="button_menu_inactive">
<!-- <icon x="0" y="0" width="mini_icon_width" height="mini_icon_height" alpha="0.5"/> -->
<image filename="menu.png" x="0" y="0" width="object_width" height="object_height"/>
</draw_ops>

<!--
Frame styles
-->

<!-- normal -->
<frame_style name="frame_style_normal_focused" geometry="frame_geometry_normal">
<piece position="title" draw_ops="draw_title_text_normal"/>
<piece position="titlebar" draw_ops="draw_title"/>
<piece position="left_edge" draw_ops="draw_frame"/>
<piece position="right_edge" draw_ops="draw_frame"/>
<piece position="bottom_edge" draw_ops="draw_frame"/>
<button function="close" state="normal" draw_ops="button_close_normal"/>
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
<button function="maximize" state="normal" draw_ops="button_max_normal"/>
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
<button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
<button function="menu" state="normal" draw_ops="button_menu_normal"/>
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
<button function="menu" state="pressed" draw_ops="button_menu_normal"/>

<!-- Extra stuff Linux Mint wants for theme to work -->
<button function="shade" state="normal"><draw_ops></draw_ops></button>
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
<button function="shade" state="pressed"><draw_ops></draw_ops></button>

<button function="unshade" state="normal"><draw_ops></draw_ops></button>
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>

<button function="above" state="normal"><draw_ops></draw_ops></button>
<button function="above" state="pressed"><draw_ops></draw_ops></button>

<button function="unabove" state="normal"><draw_ops></draw_ops></button>
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>

<button function="stick" state="normal"><draw_ops></draw_ops></button>
<button function="stick" state="pressed"><draw_ops></draw_ops></button>

<button function="unstick" state="normal"><draw_ops></draw_ops></button>
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
</frame_style>

<frame_style name="frame_style_normal_unfocused" geometry="frame_geometry_abnormal">
<piece position="title" draw_ops="draw_title_text_inactive"/>
<piece position="titlebar" draw_ops="draw_title_inactive"/>
<piece position="left_edge" draw_ops="draw_frame"/>
<piece position="right_edge" draw_ops="draw_frame"/>
<piece position="bottom_edge" draw_ops="draw_frame"/>
<button function="close" state="normal" draw_ops="button_close_normal"/>
<button function="close" state="prelight" draw_ops="button_close_prelight"/>
<button function="close" state="pressed" draw_ops="button_close_pressed"/>
<button function="minimize" state="normal" draw_ops="button_min_normal"/>
<button function="minimize" state="prelight" draw_ops="button_min_prelight"/>
<button function="minimize" state="pressed" draw_ops="button_min_pressed"/>
<button function="maximize" state="normal" draw_ops="button_max_normal"/>
<button function="maximize" state="prelight" draw_ops="button_max_prelight"/>
<button function="maximize" state="pressed" draw_ops="button_max_pressed"/>
<button function="menu" state="normal" draw_ops="button_menu_inactive"/>
<button function="menu" state="prelight" draw_ops="button_menu_prelight"/>
<button function="menu" state="pressed" draw_ops="button_menu_inactive"/>

<!-- Extra stuff Linux Mint wants for theme to work -->
<button function="shade" state="normal"><draw_ops></draw_ops></button>
<button function="shade" state="prelight"><draw_ops></draw_ops></button>
<button function="shade" state="pressed"><draw_ops></draw_ops></button>

<button function="unshade" state="normal"><draw_ops></draw_ops></button>
<button function="unshade" state="prelight"><draw_ops></draw_ops></button>
<button function="unshade" state="pressed"><draw_ops></draw_ops></button>

<button function="above" state="normal"><draw_ops></draw_ops></button>
<button function="above" state="pressed"><draw_ops></draw_ops></button>

<button function="unabove" state="normal"><draw_ops></draw_ops></button>
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>

<button function="stick" state="normal"><draw_ops></draw_ops></button>
<button function="stick" state="pressed"><draw_ops></draw_ops></button>

<button function="unstick" state="normal"><draw_ops></draw_ops></button>
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
</frame_style>

<frame_style_set name="frame_style_set_normal">
<frame focus="yes" state="normal" resize="both" style="frame_style_normal_focused"/>
<frame focus="no" state="normal" resize="both" style="frame_style_normal_unfocused"/>
<frame focus="yes" state="maximized" style="frame_style_normal_focused"/>
<frame focus="no" state="maximized" style="frame_style_normal_unfocused"/>
<frame focus="yes" state="shaded" style="frame_style_normal_focused"/>
<frame focus="no" state="shaded" style="frame_style_normal_unfocused"/>
<frame focus="yes" state="maximized_and_shaded" style="frame_style_normal_focused"/>
<frame focus="no" state="maximized_and_shaded" style="frame_style_normal_unfocused"/>
</frame_style_set>

<window type="normal" style_set="frame_style_set_normal"/>
<window type="dialog" style_set="frame_style_set_normal"/>
<window type="modal_dialog" style_set="frame_style_set_normal"/>
<window type="menu" style_set="frame_style_set_normal"/>
<window type="utility" style_set="frame_style_set_normal"/>
<window type="border" style_set="frame_style_set_normal"/>

<menu_icon function="close" state="normal" draw_ops="button_close_normal"/>
<menu_icon function="maximize" state="normal" draw_ops="button_max_normal"/>
<menu_icon function="unmaximize" state="normal" draw_ops="button_max_normal"/>
<menu_icon function="minimize" state="normal" draw_ops="button_min_normal"/>


</metacity_theme>

0 comments on commit 01838cd

Please sign in to comment.