<?xml version="1.0"?>
<metacity_theme>
<info>
  <name>mint-clearlooks-revamp</name>
  <author>JosephM</author>
  <copyright>GPL</copyright>
  <date>November 2013</date>
  <description>A pleasant theme built to adapt to many color schemes as well as be optimal for both high and low resolution displays.</description>
</info>

<!-- ::: CONSTANTS ::: -->

<constant name="C_border_focused" value="shade/gtk:bg[NORMAL]/0.7" />
<constant name="C_border_unfocused" value="blend/#000000/gtk:bg[NORMAL]/0.8" />
<constant name="C_title_focused" value="gtk:custom(wm_title,#404040)"/>
<constant name="C_title_focused_highlight" value="gtk:custom(wm_highlight,#eeeeee)"/>
<constant name="C_title_unfocused" value="gtk:custom(wm_unfocused_title,#9d9d9d)"/>
<constant name="C_titlebar_bg" value="gtk:bg[NORMAL]"/>
<constant name="C_titlebar_focused_hilight" value="shade/gtk:bg[NORMAL]/1.3" />
<constant name="C_icon_focused" value="gtk:custom(wm_button_color,#404040)"/>
<constant name="C_icon_unfocused" value="gtk:custom(wm_button_unfocused_color,#9d9d9d)"/>
<constant name="C_icon_prelight" value="gtk:custom(wm_button_prelight_color,shade/gtk:bg[NORMAL]/0.50)"/>

<constant name="D_icons_shrink" value="3" /> <!-- increasing this value makes the icons in buttons smaller -->
<constant name="D_icons_grow" value="3" /> <!-- increasing this value makes the icons in buttons bigger -->

<!-- ::: GEOMETRY ::: -->

<frame_geometry name="normal" title_scale="medium" rounded_top_left="4" rounded_top_right="4">
	<distance name="left_width" value="1" />
	<distance name="right_width" value="1" />
	<distance name="bottom_height" value="1" />
	<distance name="left_titlebar_edge" value="6"/>
	<distance name="right_titlebar_edge" value="6"/>
	<distance name="title_vertical_pad" value="0"/>
	<border name="title_border" left="2" right="2" top="5" bottom="2"/>
	<border name="button_border" left="4" right="4" top="3" bottom="0"/>
	<aspect_ratio name="button" value="1"/>
</frame_geometry>

<frame_geometry name="maximized" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
	<distance name="left_width" value="0"/>
	<distance name="right_width" value="0"/>
	<distance name="bottom_height" value="1"/>
	<distance name="left_titlebar_edge" value="6"/>
	<distance name="right_titlebar_edge" value="6"/>
</frame_geometry>

<frame_geometry name="tiled_left" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
	<distance name="left_width" value="0"/>
	<distance name="right_width" value="1"/>
	<distance name="bottom_height" value="1"/>
	<distance name="left_titlebar_edge" value="6"/>
	<distance name="right_titlebar_edge" value="6"/>
</frame_geometry>

<frame_geometry name="tiled_right" parent="normal" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
	<distance name="left_width" value="1"/>
	<distance name="right_width" value="0"/>
	<distance name="bottom_height" value="1"/>
	<distance name="left_titlebar_edge" value="6"/>
	<distance name="right_titlebar_edge" value="6"/>
</frame_geometry>

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

<frame_geometry name="border" has_title="false">
	<distance name="left_width" value="2"/>
	<distance name="right_width" value="2"/>
	<distance name="bottom_height" value="2"/>
	<distance name="left_titlebar_edge" value="0"/>
	<distance name="right_titlebar_edge" value="0"/>
	<distance name="button_width" value="0"/>
	<distance name="button_height" value="0"/>
	<distance name="title_vertical_pad" value="4"/>
	<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>

<frame_geometry name="attached" title_scale="medium" hide_buttons="true" rounded_top_left="4" rounded_top_right="4" rounded_bottom_left="4" rounded_bottom_right="4" parent="normal">
</frame_geometry>

<!-- ::: BACKGROUND ::: -->

<draw_ops name="entire_background_focused">
	<rectangle color="C_border_focused" x="0" y="0" width="width" height="height" filled="true" />
</draw_ops>

<draw_ops name="entire_background_unfocused">
	<include name="entire_background_focused" />
</draw_ops>

<!-- ::: BORDERS ::: -->

<draw_ops name="border_focused">
	<rectangle color="C_border_focused" x="0" y="0" width="width-1" height="height-1" filled="false" />
</draw_ops>

<draw_ops name="border_unfocused">
	<rectangle color="C_border_unfocused" x="0" y="0" width="width-1" height="height-1" filled="false" />
</draw_ops>

<draw_ops name="rounded_border_focused">
	<line color="C_border_focused" x1="4" y1="0" x2="width-5" y2="0" />
	<line color="C_border_focused" x1="0" y1="height-1" x2="width-1" y2="height-1" />
	<line color="C_border_focused" x1="0" y1="4" x2="0" y2="height-2" />
	<line color="C_border_focused" x1="width-1" y1="4" x2="width-1" y2="height-2" />
	<arc color="C_border_focused" x="0" y="0" width="9" height="9"  start_angle="270" extent_angle="90" />
	<arc color="C_border_focused" x="width-10" y="0" width="9" height="9"  start_angle="0" extent_angle="90" />
	<!-- double arcs for darker borders -->
	<arc color="C_border_focused" x="0" y="0" width="9" height="9"  start_angle="270" extent_angle="90" />
	<arc color="C_border_focused" x="width-10" y="0" width="9" height="9"  start_angle="0" extent_angle="90" />
</draw_ops>

<draw_ops name="rounded_border_unfocused">
	<line color="C_border_unfocused" x1="4" y1="0" x2="width-5" y2="0" />
	<line color="C_border_unfocused" x1="0" y1="height-1" x2="width-1" y2="height-1" />
	<line color="C_border_unfocused" x1="0" y1="4" x2="0" y2="height-2" />
	<line color="C_border_unfocused" x1="width-1" y1="4" x2="width-1" y2="height-2" />
	<arc color="C_border_unfocused" x="0" y="0" width="9" height="9"  start_angle="270" extent_angle="90" />
	<arc color="C_border_unfocused" x="width-10" y="0" width="9" height="9"  start_angle="0" extent_angle="90" />

	<!-- double arcs for darker borders -->
	<arc color="C_border_unfocused" x="0" y="0" width="9" height="9"  start_angle="270" extent_angle="90" />
	<arc color="C_border_unfocused" x="width-10" y="0" width="9" height="9"  start_angle="0" extent_angle="90" />
</draw_ops>

<draw_ops name="border_tiled_left_focused">
	<line
		x1="width-1" y1="0"
		x2="width-1" y2="height"
		color="C_border_focused" />
</draw_ops>

<draw_ops name="border_tiled_left_unfocused">
	<line
		x1="width-1" y1="0"
		x2="width-1" y2="height"
		color="C_border_unfocused" />
</draw_ops>

<draw_ops name="border_tiled_right_focused">
	<line
		x1="0" y1="0"
		x2="0" y2="height"
		color="C_border_focused" />
</draw_ops>

<draw_ops name="border_tiled_right_unfocused">
	<line
		x1="0" y1="0"
		x2="0" y2="height"
		color="C_border_unfocused" />
</draw_ops>

<!-- ::: TITLEBAR ::: -->

<draw_ops name="titlebar_fill_focused">
	<gradient type="vertical" x="0" y="0" width="width" height="height">
		<color value="shade/gtk:bg[NORMAL]/1.08"/>
		<color value="gtk:bg[NORMAL]"/>
	</gradient>
</draw_ops>

<draw_ops name="titlebar_fill_unfocused">
	<rectangle color="gtk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true"/>
</draw_ops>

<draw_ops name="hilight">
	<line x1="0" y1="1" x2="width-1" y2="1" color="C_titlebar_focused_hilight" />
	<gradient type="vertical" x="1" y="1" width="1" height="height-4">
		<color value="C_titlebar_focused_hilight" />
		<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
	</gradient>
</draw_ops>

<draw_ops name="rounded_hilight">
	<line x1="5" y1="1" x2="width-6" y2="1" color="C_titlebar_focused_hilight" />
	<arc color="C_titlebar_focused_hilight" x="1" y="1" width="7" height="7"  start_angle="270" extent_angle="90" />
	<arc color="C_titlebar_focused_hilight" x="width-10" y="1" width="9" height="7"  start_angle="0" extent_angle="90" />
	<gradient type="vertical" x="1" y="5" width="1" height="height-9">
		<color value="C_titlebar_focused_hilight" />
		<color value="blend/gtk:bg[NORMAL]/#000000/0.03" />
	</gradient>
</draw_ops>

<draw_ops name="titlebar_focused">
	<include name="titlebar_fill_focused" />
	<include name="hilight" />
</draw_ops>

<draw_ops name="rounded_titlebar_focused">
	<include name="titlebar_fill_focused"/>
	<include name="rounded_hilight"/>
</draw_ops>

<draw_ops name="rounded_titlebar_unfocused">
    <include name="titlebar_fill_unfocused"/>
    <include name="rounded_hilight"/>
</draw_ops>

<!-- ::: TITLES ::: -->

<draw_ops name="title_focused">
    <title version="< 3.1"
        x="(0 `max` ((width - title_width) / 2))"
        y="(0 `max` ((height - title_height) /2)) + 1"
        color="C_title_focused_highlight" />
    <title version="< 3.1"
        x="(0 `max` ((width - title_width) / 2))"
        y="(0 `max` ((height - title_height) /2))"
        color="C_title_focused" />
    <title version=">= 3.1"
        x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
        y="(0 `max` ((height - title_height) /2)) + 1"
        ellipsize_width="width"
        color="C_title_focused_highlight" />
    <title version=">= 3.1"
        x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
        y="(0 `max` ((height - title_height) /2))"
        ellipsize_width="width"
        color="C_title_focused" />
</draw_ops>

<draw_ops name="title_unfocused">
    <title version="< 3.1"
        x="(0 `max` ((width - title_width) / 2))"
        y="(0 `max` ((height - title_height) /2))"
        color="C_title_unfocused" />
    <title version=">= 3.1"
        x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))"
        y="(0 `max` ((height - title_height) /2))"
        ellipsize_width="width"
        color="C_title_unfocused" />
</draw_ops>

<!-- close icon -->

<draw_ops name="close_shadow_focused">
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
</draw_ops>

<draw_ops name="close_glyph_focused">
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
</draw_ops>

<draw_ops name="close_focused">
    <include name="close_shadow_focused" y="1" />
    <include name="close_glyph_focused" />
</draw_ops>

<draw_ops name="close_glyph_unfocused">
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
</draw_ops>

<draw_ops name="close_unfocused">
    <include name="close_glyph_unfocused" />
</draw_ops>

<draw_ops name="close_glyph_prelight">
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="(width-width%3)/3+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="width-(width-width%3)/3-2-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-2-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="width-(width-width%3)/3-1-D_icons_shrink+D_icons_grow" y1="(height-height%3)/3+1+D_icons_shrink-D_icons_grow"
        x2="(width-width%3)/3+1+D_icons_shrink-D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
</draw_ops>

<draw_ops name="close_focused_prelight">
    <include name="close_shadow_focused" y="1" />
    <include name="close_glyph_prelight" />
</draw_ops>

<!-- maximize icon -->

<draw_ops name="maximize_shadow_focused">
    <line
        x1="(width/2)+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <line
        x1="(width/2)-1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_title_focused_highlight" />
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+3-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_title_focused_highlight" />
</draw_ops>

<draw_ops name="maximize_glyph_focused">
    <line
        x1="(width/2)+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <line
        x1="(width/2)-1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_focused" />
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+3-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_focused" />
</draw_ops>

<draw_ops name="maximize_focused">
    <include name="maximize_shadow_focused" y="1" />
    <include name="maximize_glyph_focused" />
</draw_ops>

<draw_ops name="maximize_glyph_unfocused">
    <line
        x1="(width/2)+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <line
        x1="(width/2)-1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_unfocused" />
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+3-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_unfocused" />
</draw_ops>

<draw_ops name="maximize_unfocused">
	<include name="maximize_glyph_unfocused" />
</draw_ops>

<draw_ops name="maximize_glyph_prelight">
    <line
        x1="(width/2)+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <line
        x1="(width/2)-1+D_icons_shrink-D_icons_grow" y1="(height-height%3)/3+D_icons_shrink-D_icons_grow"
        x2="(width/2)-1-D_icons_shrink+D_icons_grow" y2="height-(height-height%3)/3-1-D_icons_shrink+D_icons_grow"
        color="C_icon_prelight" />
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+3-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_prelight" />
</draw_ops>

<draw_ops name="maximize_focused_prelight">
    <include name="maximize_shadow_focused" y="1" />
	<include name="maximize_glyph_prelight" />
</draw_ops>

<!-- minimize icon -->

<draw_ops name="minimize_glyph_focused">
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+4-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_focused" />
</draw_ops>

<draw_ops name="minimize_shadow_focused">
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+4-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_title_focused_highlight" />
</draw_ops>

<draw_ops name="minimize_focused">
    <include name="minimize_shadow_focused" y="1" />
    <include name="minimize_glyph_focused" />
</draw_ops>

<draw_ops name="minimize_glyph_unfocused">
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+4-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_unfocused" />
</draw_ops>

<draw_ops name="minimize_unfocused">
	<include name="minimize_glyph_unfocused" />
</draw_ops>

<draw_ops name="minimize_glyph_prelight">
    <rectangle
        x="(width-width%3)/3+D_icons_shrink-D_icons_grow" y="(height-height%3)/3+4-D_icons_shrink+D_icons_grow"
        width="width-2*(width-width%3)/3-2*D_icons_shrink+2*D_icons_grow" height="2" filled="true"
        color="C_icon_prelight" />
</draw_ops>

<draw_ops name="minimize_focused_prelight">
	<include name="minimize_shadow_focused" y="1" />
    <include name="minimize_glyph_prelight" />
</draw_ops>

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

<!-- ::: FRAME STYLES ::: -->

<frame_style name="normal_focused" geometry="normal">
	<piece position="entire_background" draw_ops="entire_background_focused" />
	<piece position="titlebar" draw_ops="rounded_titlebar_focused"/>
	<piece position="title" draw_ops="title_focused" />
	<piece position="overlay" draw_ops="rounded_border_focused" />
	<button function="close" state="normal" draw_ops="close_focused"/>
	<button function="close" state="prelight" draw_ops="close_focused_prelight"/>
	<button function="close" state="pressed" draw_ops="close_focused"/>
	<button function="maximize" state="normal" draw_ops="maximize_focused"/>
	<button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/>
	<button function="maximize" state="pressed" draw_ops="maximize_focused"/>
	<button function="minimize" state="normal" draw_ops="minimize_focused"/>
	<button function="minimize" state="prelight" draw_ops="minimize_focused_prelight"/>
	<button function="minimize" state="pressed" draw_ops="minimize_focused"/>
	<button function="menu" state="normal"><draw_ops></draw_ops></button>
	<button function="menu" state="prelight"><draw_ops></draw_ops></button>
	<button function="menu" state="pressed"><draw_ops></draw_ops></button>
	<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="prelight"><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="prelight"><draw_ops></draw_ops></button>
	<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
</frame_style>

<frame_style name="normal_unfocused" geometry="normal" parent="normal_focused">
	<piece position="entire_background" draw_ops="entire_background_unfocused" />
	<piece position="titlebar" draw_ops="rounded_titlebar_unfocused" />
	<piece position="title" draw_ops="title_unfocused" />
	<piece position="overlay" draw_ops="rounded_border_unfocused" />
	<button function="close" state="normal" draw_ops="close_unfocused"/>
	<button function="maximize" state="normal" draw_ops="maximize_unfocused"/>
	<button function="minimize" state="normal" draw_ops="minimize_unfocused"/>
	<button function="menu" state="normal"><draw_ops></draw_ops></button>
	<button function="shade" state="normal"><draw_ops></draw_ops></button>
	<button function="unshade" state="normal"><draw_ops></draw_ops></button>
	<button function="stick" state="normal"><draw_ops></draw_ops></button>
	<button function="unstick" state="normal"><draw_ops></draw_ops></button>
</frame_style>

<frame_style name="maximized_focused" geometry="maximized" parent="normal_focused">
	<piece position="entire_background" draw_ops="entire_background_focused" />
	<piece position="titlebar" draw_ops="titlebar_fill_focused" />
	<piece position="title" draw_ops="title_focused" />
	<piece position="overlay"><draw_ops></draw_ops></piece>
</frame_style>

<frame_style name="maximized_unfocused" geometry="maximized" parent="normal_unfocused">
	<piece position="entire_background" draw_ops="entire_background_unfocused" />
	<piece position="titlebar" draw_ops="titlebar_fill_unfocused" />
	<piece position="title" draw_ops="title_unfocused" />
	<piece position="overlay"><draw_ops></draw_ops></piece>
</frame_style>

<frame_style name="tiled_left_focused" geometry="tiled_left" parent="maximized_focused">
	<piece position="overlay" draw_ops="border_tiled_left_focused"/>
</frame_style >

<frame_style name="tiled_left_unfocused" geometry="tiled_left" parent="maximized_unfocused">
	<piece position="overlay" draw_ops="border_tiled_left_unfocused"/>
</frame_style >

<frame_style name="tiled_right_focused" geometry="tiled_right" parent="maximized_focused">
	<piece position="overlay" draw_ops="border_tiled_right_focused"/>
</frame_style >

<frame_style name="tiled_right_unfocused" geometry="tiled_right" parent="maximized_unfocused">
	<piece position="overlay" draw_ops="border_tiled_right_unfocused"/>
</frame_style >

<frame_style name="utility_focused" geometry="utility" parent="normal_focused">
</frame_style>

<frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
</frame_style>

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

<frame_style name="attached_unfocused" geometry="attached">
	<piece position="entire_background" draw_ops="entire_background_unfocused" />
	<piece position="titlebar" draw_ops="titlebar_fill_unfocused" />
	<piece position="title" draw_ops="title_unfocused" />
	<piece position="overlay" draw_ops="rounded_border_unfocused" />
	<button function="close" state="normal"><draw_ops></draw_ops></button>
	<button function="close" state="pressed"><draw_ops></draw_ops></button>
	<button function="maximize" state="normal"><draw_ops></draw_ops></button>
	<button function="maximize" state="pressed"><draw_ops></draw_ops></button>
	<button function="minimize" state="normal"><draw_ops></draw_ops></button>
	<button function="minimize" state="pressed"><draw_ops></draw_ops></button>
	<button function="menu" state="normal"><draw_ops></draw_ops></button>
	<button function="menu" state="pressed"><draw_ops></draw_ops></button>
	<button function="shade" state="normal"><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="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="attached_focused" geometry="attached">
	<piece position="entire_background" draw_ops="entire_background_focused" />
	<piece position="titlebar" draw_ops="titlebar_fill_focused" />
	<piece position="title" draw_ops="title_focused" />
	<piece position="overlay" draw_ops="rounded_border_focused" />
	<button function="close" state="normal"><draw_ops></draw_ops></button>
	<button function="close" state="pressed"><draw_ops></draw_ops></button>
	<button function="maximize" state="normal"><draw_ops></draw_ops></button>
	<button function="maximize" state="pressed"><draw_ops></draw_ops></button>
	<button function="minimize" state="normal"><draw_ops></draw_ops></button>
	<button function="minimize" state="pressed"><draw_ops></draw_ops></button>
	<button function="menu" state="normal"><draw_ops></draw_ops></button>
	<button function="menu" state="pressed"><draw_ops></draw_ops></button>
	<button function="shade" state="normal"><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="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>

<!-- placeholder for unimplementated styles-->
<frame_style name="blank" geometry="normal">
	<button function="close" state="normal"><draw_ops></draw_ops></button>
	<button function="close" state="pressed"><draw_ops></draw_ops></button>
	<button function="maximize" state="normal"><draw_ops></draw_ops></button>
	<button function="maximize" state="pressed"><draw_ops></draw_ops></button>
	<button function="minimize" state="normal"><draw_ops></draw_ops></button>
	<button function="minimize" state="pressed"><draw_ops></draw_ops></button>
	<button function="menu" state="normal"><draw_ops></draw_ops></button>
	<button function="menu" state="pressed"><draw_ops></draw_ops></button>
	<button function="shade" state="normal"><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="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 SETS::: -->

<frame_style_set name="normal">
	<frame focus="yes" state="normal" resize="both" style="normal_focused"/>
	<frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
	<frame focus="yes" state="maximized" style="maximized_focused"/>
	<frame focus="no" state="maximized" style="maximized_unfocused"/>
	<frame focus="yes" state="shaded" style="normal_focused"/>
	<frame focus="no" state="shaded" style="normal_unfocused"/>
	<frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
	<frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
	<frame version=">= 3.3" focus="yes" state="tiled_left" style="tiled_left_focused"/>
	<frame version=">= 3.3" focus="no" state="tiled_left" style="tiled_left_unfocused"/>
	<frame version=">= 3.3" focus="yes" state="tiled_right" style="tiled_right_focused"/>
	<frame version=">= 3.3" focus="no" state="tiled_right" style="tiled_right_unfocused"/>
	<frame version=">= 3.3" focus="yes" state="tiled_left_and_shaded" style="tiled_left_focused"/>
	<frame version=">= 3.3" focus="no" state="tiled_left_and_shaded" style="tiled_left_unfocused"/>
	<frame version=">= 3.3" focus="yes" state="tiled_right_and_shaded" style="tiled_right_focused"/>
	<frame version=">= 3.3" focus="no" state="tiled_right_and_shaded" style="tiled_right_unfocused"/>
</frame_style_set>

<frame_style_set name="utility">
	<frame focus="yes" state="normal" resize="both" style="utility_focused"/>
	<frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
	<frame focus="yes" state="maximized" style="blank"/>
	<frame focus="no" state="maximized" style="blank"/>
	<frame focus="yes" state="shaded" style="utility_focused"/>
	<frame focus="no" state="shaded" style="utility_unfocused"/>
	<frame focus="yes" state="maximized_and_shaded" style="blank"/>
	<frame focus="no" state="maximized_and_shaded" style="blank"/>
</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>

<frame_style_set name="attached">
	<frame focus="yes" state="normal" resize="both" style="attached_focused"/>
	<frame focus="no" state="normal" resize="both" style="attached_unfocused"/>
	<frame focus="yes" state="maximized" style="blank"/>
	<frame focus="no" state="maximized" style="blank"/>
	<frame focus="yes" state="shaded" style="blank"/>
	<frame focus="no" state="shaded" style="blank"/>
	<frame focus="yes" state="maximized_and_shaded" style="blank"/>
	<frame focus="no" state="maximized_and_shaded" style="blank"/>
</frame_style_set>

<!-- :::WINDOWS::: -->

<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"/>
<window version=">= 3.2" type="attached" style_set="attached"/>

</metacity_theme>
