PDA

View Full Version : Converting emerald themes to metacity.


N'Jal
March 15th, 2008, 10:41 AM
Hey, I'm a gnome enthusiast and since emerald doesn't seem to be officially part of gnome and doesn't look like it will be, I wish to drop it, however there's only one thing I shall miss dearly and that's the theme I have been using.

So, I decided to convert it to metacity!

Then went away and read tutorials and got horribly horribly confused and disenchanted with it all, and decided to come here and see it anyone could help me.

This is the original theme: http://www.gnome-look.org/content/show.php/AmiX+%28beta%29?content=55240

I converted it to look more Mac-esque here: http://www.gnome-look.org/content/show.php/Amix+Niadh?content=74487

Now if someone would be kind enough to help me get my head around metacity theming I would really appreciate it.

Naturally I shall upload it to gnome-look once done, I just like as clean a system as I can possibly get.

Kerin
March 15th, 2008, 11:21 PM
emerald doesn't seem to be officially part of gnome and doesn't look like it will be,

Wow, colour me confused big guy. Just because emerald isn't developed as part of GNOME doesn't mean it's any less useful - it's still free & open-source software, and it still works with GNOME.

GNOME, in fact, supports a number of window decorators - Metacity's selection as the default is nothing if not controversial, even among its own community.

The point is, I'm not sure there's a good reason to be porting themes back and forth all willy-nilly.

smartboyathome
March 15th, 2008, 11:29 PM
Wow, colour me confused big guy. Just because emerald isn't developed as part of GNOME doesn't mean it's any less useful - it's still free & open-source software, and it still works with GNOME.

GNOME, in fact, supports a number of window decorators - Metacity's selection as the default is nothing if not controversial, even among its own community.

The point is, I'm not sure there's a good reason to be porting themes back and forth all willy-nilly.

There is one advantage to porting Emerald themes to Metacity. Metacity doesn't require Compiz like Emerald, so they can be used without it.

N'Jal
March 15th, 2008, 11:35 PM
There are also more technical reasons for me to wish to port a them back to metacity, when I upgrade to hardy I will be cleaning my system prior to upgrade, this means removing emerald, google stuff, wine etc. If I can remove dependency on some applications so much the better.

But this is a personal thing as well, just as it's someone's choice to use emerald, I choose NOT to, if i can. I like metacity as it happens, and that's fine for me to like it, as it's fine for someone to like emerald, I just don't feel I need it on my system if I only use it for one theme.

So it's not a matter of converting themes all the time and wasting time, I want to convert ONE theme, because i only use emerald for that theme, seems a bit pointless to run an app for that reason.

But this discussion isn't getting a solution. I am well aware it does work with gnome, gnome can support many different window managers and my objective here may seem pointless to some people, but it's still my choice to attempt.

So if someone can help, I would appreciate it.

smartboyathome
March 16th, 2008, 12:08 AM
Get the theme from .emerald and copy it to your .themes folder. Use another metacity theme as a base and create this theme over it into your theme.

N'Jal
March 16th, 2008, 09:21 AM
I have been trying to hack an a metacity theme from the bits from the emerald theme and an existing metacity theme. This is what I have so far.

First few things, buttons are too small and too far apart, windows need a black border. The selected window needs to have black text. Buttons should be visible on ALL windows, not just the selected one.

The buttons size I imagine I just need to scale the buttons up, right?


<?xml version="1.0"?>
<metacity_theme>
<info>
<name>Amix-Metacity</name>
<author>Neil 'Niadh' Munro</author>
<copyright>DanoEX</copyright>
<date>March 4, 2008</date>
<description>Hacked Amix to fit with the metacity window manager.</description>
</info>

<frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
<distance name="left_width" value="5"/>
<distance name="right_width" value="5"/>
<distance name="bottom_height" value="5"/>
<distance name="left_titlebar_edge" value="4"/>
<distance name="right_titlebar_edge" value="4"/>
<aspect_ratio name="button" value="1.1"/>
<distance name="title_vertical_pad" value="5"/>
<border name="title_border" left="0" right="0" top="2" bottom="2"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<frame_geometry name="shaded" parent="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true"/>

<frame_geometry name="normal_maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
<!-- strip frame spacing off the normal geometry when maximised -->
<distance name="left_width" value="0"/>
<distance name="right_width" value="0"/>
<distance name="bottom_height" value="1"/>
<distance name="left_titlebar_edge" value="0"/>
<distance name="right_titlebar_edge" value="0"/>
</frame_geometry>

<frame_geometry name="utility" title_scale="small" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="true" rounded_bottom_right="true">
<distance name="left_width" value="5"/>
<distance name="right_width" value="5"/>
<distance name="bottom_height" value="5"/>
<distance name="left_titlebar_edge" value="4"/>
<distance name="right_titlebar_edge" value="4"/>
<distance name="title_vertical_pad" value="5"/>
<border name="title_border" left="0" right="0" top="2" bottom="2"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
<aspect_ratio name="button" value="1.1"/>
</frame_geometry>

<frame_geometry name="border" has_title="false">
<distance name="left_width" value="5"/>
<distance name="right_width" value="5"/>
<distance name="bottom_height" value="5"/>
<distance name="left_titlebar_edge" value="4"/>
<distance name="right_titlebar_edge" value="4"/>
<distance name="button_width" value="0"/>
<distance name="button_height" value="0"/>
<distance name="title_vertical_pad" value="5"/>
<border name="title_border" left="0" right="0" top="0" bottom="0"/>
<border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<!-- button minimum size -->
<constant name="Bmin" value="10"/>
<!-- button inside padding -->
<constant name="Bpad" value="10"/>

<draw_ops name="corners_outline_selected_top">
<!-- top left -->
<line color="#ffffff" x1="0" y1="6" x2="1" y2="2"/>
<line color="#ffffff" x1="1" y1="3" x2="1" y2="4"/>
<line color="#ffffff" x1="1" y1="3" x2="2" y2="2"/>
<line color="#ffffff" x1="3" y1="1" x2="4" y2="1"/>
<line color="#ffffff" x1="3" y1="1" x2="1" y2="1"/>

<!-- top right -->
<line color="#ffffff" x1="width-1" y1="6" x2="width-1" y2="2"/>
<line color="#ffffff" x1="width-2" y1="3" x2="width-2" y2="4"/>
<line color="#ffffff" x1="width-2" y1="3" x2="width-3" y2="2"/>
<line color="#ffffff" x1="width-4" y1="1" x2="width-5" y2="1"/>
<line color="#ffffff" x1="width-4" y1="1" x2="width-1" y2="1"/>
</draw_ops>

<draw_ops name="corners_outline_top">
<!-- top left -->
<line color="#ffffff" x1="1" y1="3" x2="1" y2="4"/>
<line color="#ffffff" x1="2" y1="2" x2="2" y2="2"/>
<line color="#ffffff" x1="3" y1="1" x2="4" y2="1"/>

<!-- top right -->
<line color="#ffffff" x1="width-2" y1="3" x2="width-2" y2="4"/>
<line color="#ffffff" x1="width-3" y1="2" x2="width-3" y2="2"/>
<line color="#ffffff" x1="width-4" y1="1" x2="width-5" y2="1"/>
</draw_ops>

<draw_ops name="corners_outline_selected_bottom">
<!-- bottom left -->
<line color="#ffffff" x1="1" y1="height-4" x2="0" y2="height-7"/>
<line color="#ffffff" x1="1" y1="height-4" x2="1" y2="height-5"/>
<line color="#ffffff" x1="2" y1="height-3" x2="2" y2="height-3"/>
<line color="#ffffff" x1="2" y1="height-2" x2="4" y2="height-2"/>

<!-- bottom right -->
<line color="#ffffff" x1="width-2" y1="height-4" x2="width-1" y2="height-7"/>
<line color="#ffffff" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
<line color="#ffffff" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
<line color="#ffffff" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
</draw_ops>

<draw_ops name="corners_outline_bottom">
<!-- bottom left -->
<line color="#ffffff" x1="4" y1="height-3" x2="1" y2="height-3"/>
<line color="#ffffff" x1="3" y1="height-3" x2="1" y2="height-3"/>
<line color="#ffffff" x1="2" y1="height-5" x2="1" y2="height-6"/>
<line color="#ffffff" x1="2" y1="height-4" x2="1" y2="height-5"/>
<line color="#ffffff" x1="6" y1="height-2" x2="1" y2="height-2"/>
<line color="#ffffff" x1="5" y1="height-2" x2="1" y2="height-3"/>

<line color="#ffffff" x1="1" y1="height-4" x2="1" y2="height-5"/>
<line color="#ffffff" x1="2" y1="height-3" x2="2" y2="height-3"/>
<line color="#ffffff" x1="2" y1="height-2" x2="4" y2="height-2"/>

<!-- bottom right -->
<line color="#ffffff" x1="width-3" y1="height-4" x2="width-2" y2="height-4"/>
<line color="#ffffff" x1="width-3" y1="height-5" x2="width-2" y2="height-5"/>
<line color="#ffffff" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>
<line color="#ffffff" x1="width-4" y1="height-4" x2="width-4" y2="height-4"/>
<line color="#ffffff" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
<line color="#ffffff" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
<line color="#ffffff" x1="width-4" y1="height-2" x2="width-5" y2="height-2"/>
</draw_ops>

<draw_ops name="corners_hilight">
<!-- ** corner hilight for left top ** -->
<tint color="#ffffff" alpha="0.3" x="2" y="3" width="1" height="2"/>
<tint color="#ffffff" alpha="0.2" x="3" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.3" x="3" y="2" width="2" height="1"/>
<tint color="#ffffff" alpha="0.07" x="3" y="2" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2" x="2" y="5" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="2" y="6" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="4" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="3" y="4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2" x="5" y="2" width="1" height="1"/>

<!-- ** corner hilight for right top ** -->
<tint color="#ffffff" alpha="0.15" x="width-4" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="width-4" y="2" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2" x="width-5" y="2" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="width-6" y="2" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="width-7" y="2" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="width-3" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.04" x="width-3" y="4" width="1" height="2"/>

<!-- ** corner hilight for left bottom ** -->
<!--<line color="shade/gtk:bg[NORMAL]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
<line color="shade/gtk:bg[NORMAL]/0.88" x1="3" y1="height-3" x2="4" y2="height-3"/>-->

<!-- ** corner hilight for right bottom ** -->
<!--<line color="shade/gtk:bg[NORMAL]/0.88" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
<line color="shade/gtk:bg[NORMAL]/0.88" x1="width-4" y1="height-3" x2="width-5" y2="height-3"/>-->
</draw_ops>

<draw_ops name="corners_hilight_shaded">
<!-- ** corner hilight for left top ** -->
<tint color="#ffffff" alpha="0.3" x="2" y="3" width="1" height="2"/>
<tint color="#ffffff" alpha="0.2" x="3" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.3" x="3" y="2" width="2" height="1"/>
<tint color="#ffffff" alpha="0.2" x="2" y="5" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="2" y="6" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="4" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="3" y="4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2" x="5" y="2" width="1" height="1"/>

<!-- ** corner hilight for right top ** -->
<tint color="#ffffff" alpha="0.2" x="width-5" y="2" width="2" height="1"/>
<tint color="#ffffff" alpha="0.1" x="width-4" y="3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.04" x="width-3" y="3" width="1" height="2"/>

<!-- ** corner hilight for left bottom ** -->
<tint color="#ffffff" alpha="0.2" x="2" y="height-5" width="1" height="1"/>
<tint color="#ffffff" alpha="0.15" x="2" y="height-4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="3" y="height-4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="2" y="height-6" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="4" y="height-3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.1" x="3" y="height-3" width="1" height="1"/>

<!-- ** corner hilight for right bottom ** -->
<tint color="#ffffff" alpha="0.03" x="width-6" y="height-3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.03" x="width-4" y="height-4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.03" x="width-3" y="height-6" width="1" height="1"/>
<tint color="#ffffff" alpha="0.11" x="width-5" y="height-3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.15" x="width-4" y="height-3" width="1" height="1"/>
<tint color="#ffffff" alpha="0.09" x="width-3" y="height-5" width="1" height="1"/>
<tint color="#ffffff" alpha="0.13" x="width-3" y="height-4" width="1" height="1"/>
</draw_ops>

<draw_ops name="outer_frame">
<!-- background fill to fix theme manager rendering bugs -->
<rectangle color="#ffffff" filled="true" x="0" y="0" width="width-1" height="height-1"/>

<line color="#ffffff" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
<line color="#ffffff" x1="width - 2" y1="3" x2="width - 2" y2="height - 2"/>
<line color="#ffffff" x1="3" y1="1" x2="width - 4" y2="1"/>
<line color="#ffffff" x1="1" y1="3" x2="1" y2="height - 2"/>

<rectangle color="#ffffff" filled="false"
x="0" y="0"
width="width - 1"
height="height - 1"/>
</draw_ops>

<draw_ops name="title_background">
<gradient type="vertical" x="0" y="1" width="width" height="top_height / 2">
<color value="#ffffff"/> <!-- 1.25 0.97 - 0.95 1.00 -->
<color value="#ffffff"/>
</gradient>
<gradient type="vertical" x="0" y="top_height / 2" width="width" height="top_height / 2">
<color value="#ffffff"/>
<color value="#ffffff"/>
</gradient>

<line color="#ffffff" x1="0" y1="0" x2="width" y2="0"/>
<!--<line color="shade/gtk:bg[SELECTED]/0.4" x1="7" y1="0" x2="width -8" y2="0"/>-->

<tint color="#ffffff" alpha="0.3" x="0" y="1" width="width" height="1"/>
<tint color="#ffffff" alpha="0.05" x="7" y="1" width="width -14" height="1"/>

<line color="#ffffff" x1="0" y1="top_height-2" x2="width" y2="top_height-2"/>
<line color="#ffffff" x1="0" y1="top_height-1" x2="width-1" y2="top_height-1"/>
<tint color="#ffffff" alpha="0.1" x="6" y="2" width="1" height="1"/>

<tint color="#ffffff" alpha="0.05" x="width-6" y="1" width="1" height="1"/>
<tint color="#ffffff" alpha="0.05" x="5" y="1" width="1" height="1"/>
</draw_ops>

<!-- ** title background with side borders ** -->
<draw_ops name="title_background_full">
<include name="title_background"/>

<line color="#ffffff" x1="0" y1="0" x2="0" y2="top_height-1"/>
<line color="#ffffff" x1="width-1" y1="0" x2="width-1" y2="top_height-1"/>

<tint color="#ffffff" alpha="0.3" x="1" y="2" width="1" height="top_height-3"/>
<tint color="#ffffff" alpha="0.05" x="width-2" y="2" width="1" height="top_height-4"/>
</draw_ops>

<draw_ops name="title_background_unfocused">
<gradient type="vertical" x="2" y="1" width="width - 4" height="top_height / 2">
<color value="#ffffff"/>
<color value="#ffffff"/>
</gradient>
<gradient type="vertical" x="2" y="top_height / 2" width="width - 4" height="top_height / 2">
<color value="#ffffff"/>
<color value="#ffffff"/>
</gradient>

<line color="#ffffff" x1="0" y1="0" x2="width" y2="0"/>
<line color="#ffffff" x1="0" y1="1" x2="width" y2="1"/>
</draw_ops>

<draw_ops name="title_background_unfocused_full">
<include name="title_background_unfocused"/>

<!--<line color="shade/gtk:bg[NORMAL]/0.25" x1="0" y1="0" x2="0" y2="top_height-1"/>
<line color="shade/gtk:bg[NORMAL]/0.25" x1="width-1" y1="0" x2="width-1" y2="top_height-1"/>

<tint color="shade/gtk:bg[NORMAL]/2" alpha="0.4"
x="1" y="2" width="1" height="top_height-3"/>
<tint color="#ffffff" alpha="0.1"
x="width-2" y="2" width="1" height="top_height-4"/>-->
</draw_ops>

<draw_ops name="bevel_maximized">
<include name="title_background"/>
<line color="#ffffff" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="bevel_maximized_shaded">
<include name="title_background"/>
<line color="#ffffff" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="bevel_maximized_unfocused">
<include name="title_background_unfocused"/>
<line color="#ffffff" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="bevel_maximized_unfocused_shaded">
<include name="title_background_unfocused"/>
<line color="#ffffff" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="bevel_unfocused">
<include name="outer_frame"/>
<include name="title_background_unfocused_full"/>
</draw_ops>

<draw_ops name="round_bevel_unfocused">
<include name="bevel_unfocused"/>
<include name="corners_outline_top"/>
<include name="corners_outline_bottom"/>
<include name="corners_hilight"/>
</draw_ops>

<draw_ops name="round_bevel_unfocused_shaded">
<include name="bevel_unfocused"/>
<include name="corners_outline_top"/>
<include name="corners_outline_bottom"/>
<include name="corners_hilight_shaded"/>
<line color="#ffffff" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
</draw_ops>

<draw_ops name="bevel">
<include name="outer_frame"/>
<include name="title_background_full"/>
</draw_ops>

<draw_ops name="round_bevel">
<include name="bevel"/>
<include name="corners_outline_selected_top"/>
<include name="corners_outline_bottom"/>
<include name="corners_hilight"/>
</draw_ops>

<draw_ops name="bevel_shaded">
<include name="bevel"/>
<line color="#ffffff" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="round_bevel_shaded">
<include name="bevel"/>
<include name="corners_outline_selected_top"/>
<include name="corners_outline_selected_bottom"/>
<include name="corners_hilight_shaded"/>
<line color="#ffffff" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
</draw_ops>

<draw_ops name="border">
<line color="#ffffff" x1="1" y1="height - 2" x2="width - 2" y2="height - 2"/>
<line color="#ffffff" x1="width - 2" y1="1" x2="width - 2" y2="height - 2"/>
<line color="#ffffff" x1="1" y1="1" x2="width - 2" y2="1"/>
<line color="#ffffff" x1="1" y1="1" x2="1" y2="height - 2"/>

<rectangle color="#ffffff" filled="false"
x="0" y="0"
width="width - 1"
height="height - 1"/>
</draw_ops>

<!-- ::: TITLES ::: -->
<draw_ops name="title_text">
<!-- <title color="shade/gtk:bg[SELECTED]/0.75"
x="(3 `max` (width-title_width)) / 2 + 1"
y="(((height - title_height) / 2) `max` 0) + 2"/>
<title color="shade/gtk:bg[SELECTED]/0.7"
x="(3 `max` (width-title_width)) / 2 + 2"
y="(((height - title_height) / 2) `max` 0) + 2"/>
<title color="shade/gtk:bg[SELECTED]/0.4"
x="(3 `max` (width-title_width)) / 2 + 1"
y="(((height - title_height) / 2) `max` 0) + 1"/>-->
<title color="#ffffff"
x="(3 `max` (width-title_width)) / 2"
y="(((height - title_height) / 2) `max` 0)"/>
</draw_ops>

<draw_ops name="title_text_unfocused">
<title color="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"
x="(3 `max` (width-title_width)) / 2"
y="((height - title_height) / 2) `max` 0"/>
</draw_ops>

<draw_ops name="title">
<include name="title_text"/>
</draw_ops>

<draw_ops name="title_unfocused">
<include name="title_text_unfocused"/>
</draw_ops>

<!-- ::: BUTTONS ::: -->
<!--<draw_ops name="button_outline">
<tint color="#ffffff" alpha="0.45"
x="2" y="3" width="width-4" height="1"/>
<tint color="#ffffff" alpha="0.45"
x="2" y="height-4" width="width-4" height="1"/>
<tint color="#ffffff" alpha="0.45"
x="1" y="4" width="1" height="height-8"/>
<tint color="#ffffff" alpha="0.45"
x="width-2" y="4" width="1" height="height-8"/>

<tint color="#ffffff" alpha="0.4"
x="2" y="4" width="width-4" height="1"/>
<tint color="#ffffff" alpha="0.4"
x="2" y="height-5" width="width-4" height="1"/>
<tint color="#ffffff" alpha="0.4"
x="2" y="5" width="1" height="height-10"/>
<tint color="#ffffff" alpha="0.4"
x="width-3" y="5" width="1" height="height-10"/>

<tint color="#ffffff" alpha="0.2"
x="2" y="4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2"
x="2" y="height-5" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2"
x="width-3" y="4" width="1" height="1"/>
<tint color="#ffffff" alpha="0.2"
x="width-3" y="height-5" width="1" height="1"/>
</draw_ops>-->

<!--<draw_ops name="button_bg">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[SELECTED]/1.35"/>
<color value="shade/gtk:bg[SELECTED]/0.95"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[SELECTED]/0.90"/>
<color value="shade/gtk:bg[SELECTED]/0.95"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<!--<draw_ops name="button_bg_prelight">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[SELECTED]/1.45"/>
<color value="shade/gtk:bg[SELECTED]/1.05"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[SELECTED]/0.95"/>
<color value="shade/gtk:bg[SELECTED]/1.05"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<!--<draw_ops name="button_bg_pressed">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[SELECTED]/1.15"/>
<color value="shade/gtk:bg[SELECTED]/0.75"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[SELECTED]/0.70"/>
<color value="shade/gtk:bg[SELECTED]/0.75"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<!--<draw_ops name="button_bg_unfocused">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[NORMAL]/1.1"/>
<color value="shade/gtk:bg[NORMAL]/1.0"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[NORMAL]/0.98"/>
<color value="shade/gtk:bg[NORMAL]/1.0"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<!--<draw_ops name="button_bg_unfocused_prelight">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[NORMAL]/1.3"/>
<color value="shade/gtk:bg[NORMAL]/1.1"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[NORMAL]/1.05"/>
<color value="shade/gtk:bg[NORMAL]/1.1"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<!--<draw_ops name="button_bg_unfocused_pressed">
<gradient type="vertical" x="2" y="4" width="width - 4" height="height / 2 - 4">
<color value="shade/gtk:bg[NORMAL]/0.76"/>
<color value="shade/gtk:bg[NORMAL]/0.75"/>
</gradient>
<gradient type="vertical" x="2" y="height / 2" width="width - 4" height="height / 2 - 3">
<color value="shade/gtk:bg[NORMAL]/0.73"/>
<color value="shade/gtk:bg[NORMAL]/0.75"/>
</gradient>

<include name="button_outline"/>
</draw_ops>-->

<draw_ops name="menu_button_icon">
<icon x="(width-mini_icon_width)/2-2"
y="(height-mini_icon_height)/2+1"
width="mini_icon_width" height="mini_icon_height"/>
</draw_ops>

<draw_ops name="menu_button_normal">
<include name="menu_button_icon"/>
</draw_ops>
<draw_ops name="menu_button_pressed">
<include name="menu_button_icon"/>
</draw_ops>
<draw_ops name="menu_button_unfocused">
<include name="menu_button_icon"/>
</draw_ops>

<!-- ::: ICONS ::: -->
<draw_ops name="close_button_icon">
<image filename="close-normal.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="close_button_icon_prelight">
<image filename="close-hover.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="close_button_icon_unfocused">
<image filename="close-clicked.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
</draw_ops>

<draw_ops name="close_button_normal">
<!-- <include name="button_bg"/>-->
<include name="close_button_icon"/>
</draw_ops>
<draw_ops name="close_button_prelight">
<!-- <include name="button_bg_prelight"/>-->
<include name="close_button_icon_prelight"/>
</draw_ops>
<draw_ops name="close_button_pressed">
<!-- <include name="button_bg_pressed"/>-->
<include name="close_button_icon_prelight"/>
</draw_ops>
<draw_ops name="close_button_unfocused">
<!-- <include name="button_bg_unfocused"/>-->
<include name="close_button_icon_unfocused"/>
</draw_ops>
<draw_ops name="close_button_unfocused_prelight">
<!-- <include name="button_bg_unfocused_prelight"/>-->
<include name="close_button_icon_prelight"/>
</draw_ops>
<draw_ops name="close_button_unfocused_pressed">
<!-- <include name="button_bg_unfocused_pressed"/>-->
<include name="close_button_icon_prelight"/>
</draw_ops>

<draw_ops name="maximize_button_icon">
<image filename="max-normal.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="maximize_button_icon_prelight">
<image filename="max-hover.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="maximize_button_icon_unfocused">
<image filename="max-clicked.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
</draw_ops>

<draw_ops name="maximize_button_normal">
<!-- <include name="button_bg"/>-->
<include name="maximize_button_icon"/>
</draw_ops>
<draw_ops name="maximize_button_prelight">
<!-- <include name="button_bg_prelight"/>-->
<include name="maximize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="maximize_button_pressed">
<!-- <include name="button_bg_pressed"/>-->
<include name="maximize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="maximize_button_unfocused">
<!-- <include name="button_bg_unfocused"/>-->
<include name="maximize_button_icon_unfocused"/>
</draw_ops>
<draw_ops name="maximize_button_unfocused_prelight">
<!-- <include name="button_bg_unfocused_prelight"/>-->
<include name="maximize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="maximize_button_unfocused_pressed">
<!-- <include name="button_bg_unfocused_pressed"/>-->
<include name="maximize_button_icon_prelight"/>
</draw_ops>

<draw_ops name="restore_button_icon">
<image filename="rest-normal.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="restore_button_icon_prelight">
<image filename="rest-hover.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="restore_button_icon_unfocused">
<image filename="rest-clicked.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/>
</draw_ops>

<draw_ops name="restore_button_normal">
<!-- <include name="button_bg"/>-->
<include name="restore_button_icon"/>
</draw_ops>
<draw_ops name="restore_button_prelight">
<!-- <include name="button_bg_prelight"/>-->
<include name="restore_button_icon_prelight"/>
</draw_ops>
<draw_ops name="restore_button_pressed">
<!-- <include name="button_bg_pressed"/>-->
<include name="restore_button_icon_prelight"/>
</draw_ops>
<draw_ops name="restore_button_unfocused">
<!-- <include name="button_bg_unfocused"/>-->
<include name="restore_button_icon_unfocused"/>
</draw_ops>
<draw_ops name="restore_button_unfocused_prelight">
<!-- <include name="button_bg_unfocused_prelight"/>-->
<include name="restore_button_icon_prelight"/>
</draw_ops>
<draw_ops name="restore_button_unfocused_pressed">
<!-- <include name="button_bg_unfocused_pressed"/>-->
<include name="restore_button_icon_prelight"/>
</draw_ops>

<draw_ops name="minimize_button_icon">
<image filename="min-normal.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="minimize_button_icon_prelight">
<image filename="min-hover.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10"/>
</draw_ops>

<draw_ops name="minimize_button_icon_unfocused">
<image filename="min-clicked.png" x="(width-10)/2" y="(height-10)/2" width="10" height="10" colorize="blend/gtk:fg[NORMAL]/gtk:bg[NORMAL]/1.2"/></draw_ops>

<draw_ops name="minimize_button_normal">
<!-- <include name="button_bg"/>-->
<include name="minimize_button_icon"/>
</draw_ops>
<draw_ops name="minimize_button_prelight">
<!-- <include name="button_bg_prelight"/>-->
<include name="minimize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="minimize_button_pressed">
<!-- <include name="button_bg_pressed"/>-->
<include name="minimize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="minimize_button_unfocused">
<!-- <include name="button_bg_unfocused"/>-->
<include name="minimize_button_icon_unfocused"/>
</draw_ops>
<draw_ops name="minimize_button_unfocused_prelight">
<!-- <include name="button_bg_unfocused_prelight"/>-->
<include name="minimize_button_icon_prelight"/>
</draw_ops>
<draw_ops name="minimize_button_unfocused_pressed">
<!-- <include name="button_bg_unfocused_pressed"/>-->
<include name="minimize_button_icon_prelight"/>
</draw_ops>

<draw_ops name="blank">
<!-- nothing -->
</draw_ops>

<frame_style name="normal" geometry="normal">
<piece position="entire_background" draw_ops="round_bevel_unfocused"/>
<piece position="title" draw_ops="title_unfocused"/>
<button function="close" state="normal" draw_ops="close_button_unfocused"/>
<button function="close" state="pressed" draw_ops="close_button_unfocused_pressed"/>
<button function="close" state="prelight" draw_ops="close_button_unfocused_prelight"/>
<button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
<button function="maximize" state="pressed" draw_ops="maximize_button_unfocused_pressed"/>
<button function="maximize" state="prelight" draw_ops="maximize_button_unfocused_prelight"/>
<button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
<button function="minimize" state="pressed" draw_ops="minimize_button_unfocused_pressed"/>
<button function="minimize" state="prelight" draw_ops="minimize_button_unfocused_prelight"/>
<button function="menu" state="normal" draw_ops="menu_button_normal"/>
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
</frame_style>

<frame_style name="normal_shaded" geometry="shaded" parent="normal">
<piece position="entire_background" draw_ops="round_bevel_unfocused_shaded"/>
</frame_style>

<frame_style name="focused" geometry="normal" parent="normal">
<piece position="entire_background" draw_ops="round_bevel"/>
<piece position="title" draw_ops="title"/>
<button function="close" state="normal" draw_ops="close_button_normal"/>
<button function="close" state="pressed" draw_ops="close_button_pressed"/>
<button function="close" state="prelight" draw_ops="close_button_prelight"/>
<button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
<button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
<button function="minimize" state="normal" draw_ops="minimize_button_normal"/>
<button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
<button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
</frame_style>

<frame_style name="focused_shaded" geometry="shaded" parent="focused">
<piece position="entire_background" draw_ops="round_bevel_shaded"/>
</frame_style>

<frame_style name="normal_maximized" geometry="normal_maximized" parent="normal">
<piece position="entire_background" draw_ops="bevel_maximized_unfocused"/>
<button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
<button function="maximize" state="pressed" draw_ops="restore_button_unfocused_pressed"/>
<button function="maximize" state="prelight" draw_ops="restore_button_unfocused_prelight"/>
</frame_style>

<frame_style name="normal_maximized_shaded" geometry="normal_maximized" parent="normal_maximized">
<piece position="entire_background" draw_ops="bevel_maximized_unfocused_shaded"/>
</frame_style>

<frame_style name="focused_maximized" geometry="normal_maximized" parent="focused">
<piece position="entire_background" draw_ops="bevel_maximized"/>
<button function="maximize" state="normal" draw_ops="restore_button_normal"/>
<button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
<button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
</frame_style>

<frame_style name="focused_maximized_shaded" geometry="normal_maximized" parent="focused_maximized">
<piece position="entire_background" draw_ops="bevel_maximized_shaded"/>
</frame_style>

<frame_style name="border" geometry="border" parent="normal">
<piece position="entire_background" draw_ops="border"/>
<piece position="title" draw_ops="blank"/>
</frame_style>

<frame_style name="utility_normal" geometry="utility" parent="normal">
<piece position="entire_background" draw_ops="bevel_unfocused"/>
</frame_style>
<frame_style name="utility_focused" geometry="utility" parent="focused">
<piece position="entire_background" draw_ops="bevel"/>
</frame_style>
<frame_style name="utility_focused_shaded" geometry="utility" parent="focused_shaded">
<piece position="entire_background" draw_ops="bevel_shaded"/>
</frame_style>

<frame_style_set name="normal">
<frame focus="yes" state="normal" resize="both" style="focused"/>
<frame focus="no" state="normal" resize="both" style="normal"/>
<frame focus="yes" state="maximized" style="focused_maximized"/>
<frame focus="no" state="maximized" style="normal_maximized"/>
<frame focus="yes" state="shaded" style="focused_shaded"/>
<frame focus="no" state="shaded" style="normal_shaded"/>
<frame focus="yes" state="maximized_and_shaded" style="focused_maximized_shaded"/>
<frame focus="no" state="maximized_and_shaded" style="normal_maximized_shaded"/>
</frame_style_set>

<frame_style_set name="utility" parent="normal">
<frame focus="yes" state="normal" resize="both" style="utility_focused"/>
<frame focus="no" state="normal" resize="both" style="utility_normal"/>
<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
<frame focus="yes" state="maximized" style="focused"/>
<frame focus="no" state="maximized" style="normal"/>
<frame focus="yes" state="shaded" style="utility_focused_shaded"/>
<frame focus="no" state="shaded" style="utility_normal"/>
<frame focus="yes" state="maximized_and_shaded" style="focused_shaded"/>
<frame focus="no" state="maximized_and_shaded" style="normal"/>
</frame_style_set>

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

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

<menu_icon function="close" state="normal" draw_ops="close_button_icon_unfocused"/>
<menu_icon function="maximize" state="normal" draw_ops="maximize_button_icon_unfocused"/>
<menu_icon function="unmaximize" state="normal" draw_ops="restore_button_icon_unfocused"/>
<menu_icon function="minimize" state="normal" draw_ops="minimize_button_icon_unfocused"/>


</metacity_theme>