<?xml version="1.0"?>
<metacity_theme>
  <info>
    <name>Demo</name>
    <author>Lapo Calamandrei</author>
    <copyright>Lapo Calamandrei</copyright>
    <date>2010</date>
    <description>Simple theme to spot mutter bugs.</description>
  </info>

<!-- constants -->
	<!-- 
		nomenclature:
		C* -> color
		D* -> distances
	-->

	<constant name="CBackgroundFocused" value="gtk:bg[SELECTED]" />
	<constant name="CBackgroundUnfocused" value="gtk:bg[NORMAL]" />

	<constant name="CTitleFocused" value="gtk:fg[SELECTED]" />
	<constant name="CTitleUnfocused" value="gtk:fg[INSENSITIVE]" />

	<constant name="CButtonBackgroundFocused" value="blend/gtk:bg[SELECTED]/gtk:fg[SELECTED]/0.2" />
	<constant name="CButtonBackgroundUnfocused" value="blend/gtk:bg[NORMAL]/gtk:fg[INSENSITIVE]/0.2" />
	

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

	<frame_geometry name="maximized" title_scale="medium" parent="normal" rounded_top_left="false" rounded_top_right="false" >
		<distance name="left_width" value="0"/>
		<distance name="right_width" value="0"/>
		<distance name="bottom_height" value="0"/>
		<distance name="title_vertical_pad" value="10"/>
		<border name="title_border" left="0" right="0" top="0" bottom="3"/>
		<border name="button_border" left="0" right="0" top="0" bottom="2"/>
	</frame_geometry>

  <frame_geometry name="utility" title_scale="medium" parent="normal"> 
  </frame_geometry>

  <frame_geometry name="dialog" title_scale="medium" parent="normal" hide_buttons="true"> 
  </frame_geometry>

  <frame_geometry name="border" has_title="false" parent="normal">
  </frame_geometry>



  <!-- Draw Operations -->

  <!-- Titlebar Background -->

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

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

  <!-- Title -->

	<draw_ops name="title_all">
		<title x="11" y="(((height - title_height) / 2) `max` 0)+2" color="CTitleFocused"/>
	</draw_ops>

	<draw_ops name="title_all_unfocused">
		<title x="11" y="(((height - title_height) / 2) `max` 0)+2" color="CTitleUnfocused"/>
	</draw_ops>

  <!-- Normal, focused window -->

  <!-- button backgounds -->

	<draw_ops name="button_bg_focused">
		<rectangle color="CButtonBackgroundFocused" x="1" y="1" height="height-2" width="width-2" filled="true" />
	</draw_ops>

	<draw_ops name="button_bg_unfocused">
		<rectangle color="CButtonBackgroundUnfocused" x="1" y="1" height="height-2" width="width-2" filled="true" />
	</draw_ops>

	<draw_ops name="button_bg_prelight">
	</draw_ops>

	<draw_ops name="button_bg_pressed">
	</draw_ops>
	
	<draw_ops name="button_bg_focused_outer_right">
		<include name="button_bg_focused" />
	</draw_ops>

	<draw_ops name="button_bg_prelight_outer_right">
		<include name="button_bg_prelight" />
	</draw_ops>

	<draw_ops name="button_bg_pressed_outer_right">
		<include name="button_bg_pressed" />
	</draw_ops>

	<draw_ops name="button_bg_focused_inner_right">
		<include name="button_bg_focused" />
	</draw_ops>

	<draw_ops name="button_bg_prelight_inner_right">
		<include name="button_bg_prelight" />
	</draw_ops>

	<draw_ops name="button_bg_pressed_inner_right">
		<include name="button_bg_pressed" />
	</draw_ops>


	<draw_ops name="button_bg_focused_single_right">
		<include name="button_bg_focused" />
	</draw_ops>

	<draw_ops name="button_bg_prelight_single_right">
		<include name="button_bg_prelight" />
	</draw_ops>

	<draw_ops name="button_bg_pressed_single_right">
		<include name="button_bg_pressed" />
	</draw_ops>


  <!-- on unfocused window -->

  <!-- Close Buttons -->
	<draw_ops name="icon_close">
		<!-- <rectangle color="CTitleFocused" x="(width-width%3)/3" y="(height-height%3)/3" width="width-2*((width-width%3)/3)" height="height-2*((height-height%3)/3)"/> -->
		<line color="CTitleFocused" x1="(width-(width)%3)/3" y1="(height-height%3)/3" x2="width-((width-(width)%3)/3)" y2="height-((height-height%3)/3)" />
		<line color="CTitleFocused" x1="(width-(width)%3)/3" y1="height-(height-height%3)/3" x2="width-((width-(width)%3)/3)" y2="(height-height%3)/3" />
	</draw_ops>

  <draw_ops name="icon_close_unfocused">
		<line color="CTitleUnfocused" x1="(width-(width)%3)/3" y1="(height-height%3)/3" x2="width-((width-(width)%3)/3)" y2="height-((height-height%3)/3)" />
		<line color="CTitleUnfocused" x1="(width-(width)%3)/3" y1="height-(height-height%3)/3" x2="width-((width-(width)%3)/3)" y2="(height-height%3)/3" />
  </draw_ops>

  <!-- Maximize Buttons -->
	<draw_ops name="icon_maximize">
		<!-- 
			I want my rectangle nicelly centered so I won't let metacity do the roundings
			hence why I use (width-width%3)/3, it's like doing an integer division.
		-->
		<!-- <rectangle color="CTitleFocused" x="(width-width%3)/3" y="(height-height%3)/3" width="width-2*((width-width%3)/3)" height="height-2*((height-height%3)/3)"/> -->
		<tint color="CTitleFocused" alpha="1" x="(width-width%3)/3" y="(height-height%3)/3" width="width-2*((width-width%3)/3)" height="height-2*((height-height%3)/3)"/>
	</draw_ops>

  <draw_ops name="icon_maximize_unfocused">
		<rectangle color="CTitleUnfocused" x="(width-width%3)/3" y="(height-height%3)/3" width="width-2*((width-width%3)/3)" height="height-2*((height-height%3)/3)"/>
  </draw_ops>


  <!-- Minimize Buttons -->
  <draw_ops name="icon_minimize">
		<!-- <line color="CTitleFocused" x1="(width-width%3)/3" y1="height-(height-height%3)/3" x2="width-((width-width%3)/3)" y2="height-(height-height%3)/3" /> -->
		<arc start_angle="0.0" extent_angle="360.0" filled="false" color="CTitleFocused"
      x="(width-width%3)/3" y="(height-height%3)/3" width="width-2*((width-width%3)/3)" height="height-2*((height-height%3)/3)"/>
  </draw_ops>

  <draw_ops name="icon_minimize_unfocused">
		<line color="CTitleUnfocused" x1="(width-width%3)/3" y1="height-(height-height%3)/3" x2="width-((width-width%3)/3)" y2="height-(height-height%3)/3" />
  </draw_ops>


  <!-- Frame Styles -->

  <frame_style name="normal_focused" geometry="normal"> 
     <piece position="entire_background" draw_ops="background_focused"/>
     <piece position="title" draw_ops="title_all"/>

<!--     <button function="left_middle_background" state="normal" draw_ops="background_button"/> -->
	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed"/>

	<button function="right_right_background" state="normal" draw_ops="button_bg_focused_outer_right"/>
	<button function="right_right_background" state="prelight" draw_ops="button_bg_prelight_outer_right"/>
	<button function="right_right_background" state="pressed" draw_ops="button_bg_pressed_outer_right"/>

	<button function="right_left_background" state="normal" draw_ops="button_bg_focused_inner_right"/>
	<button function="right_left_background" state="prelight" draw_ops="button_bg_prelight_inner_right"/>
	<button function="right_left_background" state="pressed" draw_ops="button_bg_pressed_inner_right"/>

     <button function="close" state="normal" draw_ops="icon_close"/>
     <button function="close" state="prelight" draw_ops="icon_close"/>
     <button function="close" state="pressed" draw_ops="icon_close"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>
  </frame_style>

  <frame_style name="normal_unfocused" geometry="normal"> 
     <piece position="entire_background" draw_ops="background_unfocused"/>
     <piece position="title" draw_ops="title_all_unfocused"/>

     <button function="close" state="normal" draw_ops="icon_close_unfocused"/>
     <button function="close" state="prelight" draw_ops="icon_close_unfocused"/>
     <button function="close" state="pressed" draw_ops="icon_close_unfocused"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize_unfocused"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize_unfocused"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>
  </frame_style>

  <frame_style name="maximized_focused" geometry="maximized"> 
     <piece position="entire_background" draw_ops="background_focused"/>
     <piece position="title" draw_ops="title_all"/>

	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed"/>

	<button function="right_left_background" state="normal" draw_ops="button_bg_focused_inner_right"/>
	<button function="right_left_background" state="prelight" draw_ops="button_bg_prelight_inner_right"/>
	<button function="right_left_background" state="pressed" draw_ops="button_bg_pressed_inner_right"/>

     <button function="close" state="normal" draw_ops="icon_close"/>
     <button function="close" state="prelight" draw_ops="icon_close"/>
     <button function="close" state="pressed" draw_ops="icon_close"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>
  </frame_style>

  <frame_style name="maximized_unfocused" geometry="maximized"> 
     <piece position="entire_background" draw_ops="background_unfocused"/>
     <piece position="title" draw_ops="title_all_unfocused"/>

     <button function="close" state="normal" draw_ops="icon_close_unfocused"/>
     <button function="close" state="prelight" draw_ops="icon_close_unfocused"/>
     <button function="close" state="pressed" draw_ops="icon_close_unfocused"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize_unfocused"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize_unfocused"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>
  </frame_style>

  <frame_style name="border_focused" geometry="border"> 
     <piece position="entire_background" draw_ops="background_focused"/>

	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed"/>
	<button function="right_right_background" state="normal" draw_ops="button_bg_focused_outer_right"/>
	<button function="right_right_background" state="prelight" draw_ops="button_bg_prelight_outer_right"/>
	<button function="right_right_background" state="pressed" draw_ops="button_bg_pressed_outer_right"/>
	<button function="right_left_background" state="normal" draw_ops="button_bg_focused_inner_right"/>
	<button function="right_left_background" state="prelight" draw_ops="button_bg_prelight_inner_right"/>
	<button function="right_left_background" state="pressed" draw_ops="button_bg_pressed_inner_right"/>


     <button function="close" state="normal" draw_ops="icon_close"/>
     <button function="close" state="prelight" draw_ops="icon_close"/>
     <button function="close" state="pressed" draw_ops="icon_close"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>

  </frame_style>

  <frame_style name="border_unfocused" geometry="border"> 
     <piece position="entire_background" draw_ops="background_unfocused"/>

     <button function="close" state="normal" draw_ops="icon_close_unfocused"/>
     <button function="close" state="prelight" draw_ops="icon_close_unfocused"/>
     <button function="close" state="pressed" draw_ops="icon_close_unfocused"/>
     <button function="maximize" state="normal" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="prelight" draw_ops="icon_maximize_unfocused"/>
     <button function="maximize" state="pressed" draw_ops="icon_maximize_unfocused"/>
     <button function="minimize" state="normal" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="prelight" draw_ops="icon_minimize_unfocused"/>
     <button function="minimize" state="pressed" draw_ops="icon_minimize_unfocused"/>
     <button function="menu" state="normal"><draw_ops /></button><button function="menu" state="pressed"><draw_ops /></button>
     <button function="shade" state="normal"><draw_ops /></button><button function="shade" state="pressed"><draw_ops /></button>
     <button function="unshade" state="normal"><draw_ops /></button><button function="unshade" state="pressed"><draw_ops /></button>
     <button function="above" state="normal"><draw_ops /></button><button function="above" state="pressed"><draw_ops /></button>
     <button function="unabove" state="normal"><draw_ops /></button><button function="unabove" state="pressed"><draw_ops /></button>
     <button function="stick" state="normal"><draw_ops /></button><button function="stick" state="pressed"><draw_ops /></button>
     <button function="unstick" state="normal"><draw_ops /></button><button function="unstick" state="pressed"><draw_ops /></button>
</frame_style>

<frame_style name="utility_focused" geometry="utility" parent="normal_focused"> 
	<button function="right_right_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_right_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_right_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="close" state="normal" draw_ops="icon_close"/>
	<button function="close" state="prelight" draw_ops="icon_close"/>
	<button function="close" state="pressed" draw_ops="icon_close"/>
</frame_style>

<frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused"> 
	<button function="close" state="normal" draw_ops="icon_close_unfocused"/>
	<button function="close" state="prelight" draw_ops="icon_close_unfocused"/>
	<button function="close" state="pressed" draw_ops="icon_close_unfocused"/>
</frame_style>


<frame_style name="dialog_focused" geometry="dialog" parent="normal_focused"> 
	<button function="right_right_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_right_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_right_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="close" state="normal" draw_ops="icon_close"/>
	<button function="close" state="prelight" draw_ops="icon_close"/>
	<button function="close" state="pressed" draw_ops="icon_close"/>
</frame_style>

<frame_style name="dialog_unfocused" geometry="dialog" parent="normal_unfocused"> 
	<button function="right_right_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_right_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_right_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="right_middle_background" state="normal" draw_ops="button_bg_focused_single_right"/>
	<button function="right_middle_background" state="prelight" draw_ops="button_bg_prelight_single_right"/>
	<button function="right_middle_background" state="pressed" draw_ops="button_bg_pressed_single_right"/>
	<button function="close" state="normal" draw_ops="icon_close_unfocused"/>
	<button function="close" state="prelight" draw_ops="icon_close_unfocused"/>
	<button function="close" state="pressed" draw_ops="icon_close_unfocused"/>
</frame_style>

  <!-- frame style sets -->

  <frame_style_set name="normal">
     <frame state="normal" resize="none" focus="no" style="normal_unfocused"/>
     <frame state="normal" resize="none" focus="yes" style="normal_focused"/>
     <frame state="normal" resize="both" focus="no" style="normal_unfocused"/>
     <frame state="normal" resize="both" focus="yes" style="normal_focused"/>

     <frame state="shaded" focus="no" style="normal_unfocused"/>
     <frame state="shaded" focus="yes" style="normal_focused"/>

     <frame state="maximized" focus="no" style="maximized_unfocused"/>
     <frame state="maximized" focus="yes" style="maximized_focused"/>

     <frame state="maximized_and_shaded" focus="no" style="maximized_unfocused"/>
     <frame state="maximized_and_shaded" focus="yes" style="maximized_focused"/>

  </frame_style_set>

  <frame_style_set name="utility">
     <frame state="normal" resize="none" focus="no" style="utility_unfocused"/>
     <frame state="normal" resize="none" focus="yes" style="utility_focused"/>
     <frame state="normal" resize="both" focus="no" style="utility_unfocused"/>
     <frame state="normal" resize="both" focus="yes" style="utility_focused"/>

     <frame state="shaded" focus="no" style="utility_unfocused"/>
     <frame state="shaded" focus="yes" style="utility_focused"/>

     <frame state="maximized" focus="no" style="utility_unfocused"/>
     <frame state="maximized" focus="yes" style="utility_focused"/>

     <frame state="maximized_and_shaded" focus="no" style="utility_unfocused"/>
     <frame state="maximized_and_shaded" focus="yes" style="utility_focused"/>

  </frame_style_set>

  <frame_style_set name="dialog">
     <frame state="normal" resize="none" focus="no" style="dialog_unfocused"/>
     <frame state="normal" resize="none" focus="yes" style="dialog_focused"/>
     <frame state="normal" resize="both" focus="no" style="dialog_unfocused"/>
     <frame state="normal" resize="both" focus="yes" style="dialog_focused"/>

     <frame state="shaded" focus="no" style="dialog_unfocused"/>
     <frame state="shaded" focus="yes" style="dialog_focused"/>

     <frame state="maximized" focus="no" style="dialog_unfocused"/>
     <frame state="maximized" focus="yes" style="dialog_focused"/>

     <frame state="maximized_and_shaded" focus="no" style="dialog_unfocused"/>
     <frame state="maximized_and_shaded" focus="yes" style="dialog_focused"/>

  </frame_style_set>


  <frame_style_set name="border">
     <frame state="normal" resize="none" focus="no" style="border_unfocused"/>
     <frame state="normal" resize="none" focus="yes" style="border_focused"/>
     <frame state="normal" resize="both" focus="no" style="border_unfocused"/>
     <frame state="normal" resize="both" focus="yes" style="border_focused"/>

     <frame state="shaded" focus="no" style="border_unfocused"/>
     <frame state="shaded" focus="yes" style="border_focused"/>

     <frame state="maximized" focus="no" style="border_unfocused"/>
     <frame state="maximized" focus="yes" style="border_focused"/>

     <frame state="maximized_and_shaded" focus="no" style="border_unfocused"/>
     <frame state="maximized_and_shaded" focus="yes" style="border_focused"/>

  </frame_style_set>

  <!-- window types -->

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

  <menu_icon function="close" state="normal" draw_ops="menu_button_close"/>
  <menu_icon function="maximize" state="normal" draw_ops="menu_button_maximize"/>
  <menu_icon function="unmaximize" state="normal" draw_ops="menu_button_maximize"/>
  <menu_icon function="minimize" state="normal" draw_ops="menu_button_minimize"/>

</metacity_theme>
