<?xml version="1.0" encoding="UTF-8" ?>
<metacity_theme>
  <info>
    <name>Simple</name>
    <author>Frederik Schumacher</author>
    <copyright>Frederik Schumacher, 2010</copyright>
    <date>2010-01-30</date>
    <description>A Really Simple Theme.</description>
  </info>

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

  <frame_geometry name="utility" parent="normal">
    <distance name="left_width" value="2"/>
    <distance name="right_width" value="2"/>
    <distance name="bottom_height" value="6"/>
    <distance name="left_titlebar_edge" value="2"/>
    <distance name="right_titlebar_edge" value="2"/>
    <distance name="title_vertical_pad" value="2"/>
    <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="maximized" parent="normal"
    rounded_top_left="0" rounded_top_right="0"
    rounded_bottom_left="0" rounded_bottom_right="0">
    <distance name="left_width" value="0"/>
    <distance name="right_width" value="0"/>
    <distance name="bottom_height" value="0"/>
    <distance name="left_titlebar_edge" value="0"/>
    <distance name="right_titlebar_edge" value="0"/>
    <distance name="title_vertical_pad" value="3"/>
    <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="border" has_title="false"
    rounded_top_left="0" rounded_top_right="0"
    rounded_bottom_left="0" rounded_bottom_right="0">
    <distance name="left_width" value="4"/>
    <distance name="right_width" value="4"/>
    <distance name="bottom_height" value="4"/>
    <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="0"/>
    <border name="title_border" left="0" right="0" top="4" bottom="0"/>
    <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  </frame_geometry>

<!--#### Constants ####-->

<!--#### Generic ####-->

<!--#### Titles ####-->

<!--#### Pieces ####-->
  <draw_ops name="title_unfocus">
    <title color="gtk:fg[active]"
      x="0" y="height / 2 - title_height / 2"/>
  </draw_ops>
  <draw_ops name="title_focus">
    <title color="gtk:fg[selected]"
      x="0" y="height / 2 - title_height / 2"/>
  </draw_ops>
  <draw_ops name="titlebar_unfocus">
  </draw_ops>
  <draw_ops name="titlebar_focus">
    <rectangle color="gtk:bg[selected]" filled="true"
      x="0" y="0" width="width" height="height" />
  </draw_ops>

<!--#### Other ####-->
  <draw_ops name="blank"/>

  <frame_style name="normal_unfocus" geometry="normal">
    <piece position="titlebar" draw_ops="titlebar_unfocus"/>
    <piece position="title" draw_ops="title_unfocus"/>
    
    <button function="left_left_background" state="normal"><draw_ops>
      <rectangle color="gtk:bg[normal]" filled="true"
        x="1" y="0" width="width-1" height="height" />
      <rectangle color="gtk:bg[normal]" filled="true"
        x="0" y="1" width="1" height="height-2" />
    </draw_ops></button>
    <button function="left_middle_background" state="normal"><draw_ops>
      <rectangle color="red" filled="true"
        x="0" y="0" width="width" height="height"/>
    </draw_ops></button>
    <button function="left_right_background" state="normal"><draw_ops>
      <rectangle color="gtk:bg[normal]" filled="true"
        x="0" y="0" width="width-1" height="height" />
      <rectangle color="gtk:bg[normal]" filled="true"
        x="width-1" y="1" width="1" height="height-2" />
    </draw_ops></button>
    <button function="right_left_background"   state="normal"><draw_ops /></button>
    <button function="right_middle_background" state="normal"><draw_ops /></button>
    <button function="right_right_background"  state="normal"><draw_ops /></button>
    
    <button function="left_left_background"    state="prelight"><draw_ops /></button>
    <button function="left_middle_background"  state="prelight"><draw_ops /></button>
    <button function="left_right_background"   state="prelight"><draw_ops /></button>
    <button function="right_left_background"   state="prelight"><draw_ops /></button>
    <button function="right_middle_background" state="prelight"><draw_ops /></button>
    <button function="right_right_background"  state="prelight"><draw_ops /></button>
    
    <button function="left_left_background"    state="pressed"><draw_ops /></button>
    <button function="left_middle_background"  state="pressed"><draw_ops /></button>
    <button function="left_right_background"   state="pressed"><draw_ops /></button>
    <button function="right_left_background"   state="pressed"><draw_ops /></button>
    <button function="right_middle_background" state="pressed"><draw_ops /></button>
    <button function="right_right_background"  state="pressed"><draw_ops /></button>

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

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

    <button function="close"    state="pressed"><draw_ops /></button>
    <button function="minimize" state="pressed"><draw_ops /></button>
    <button function="maximize" state="pressed"><draw_ops /></button>
    <button function="menu"     state="pressed"><draw_ops /></button>
    <button function="shade"    state="pressed"><draw_ops /></button>
    <button function="unshade"  state="pressed"><draw_ops /></button>
    <button function="stick"    state="pressed"><draw_ops /></button>
    <button function="unstick"  state="pressed"><draw_ops /></button>
    <button function="above"    state="pressed"><draw_ops /></button>
    <button function="unabove"  state="pressed"><draw_ops /></button>
  </frame_style>
  <frame_style name="normal_focus" geometry="normal" parent="normal_unfocus">
    <piece position="titlebar" draw_ops="titlebar_focus"/>
    <piece position="title" draw_ops="title_focus"/>
  </frame_style>

  <frame_style name="shaded_unfocus" parent="normal_unfocus">
  </frame_style>
  <frame_style name="shaded_focus" parent="normal_focus">
  </frame_style>
  
  <frame_style name="maximized_unfocus" geometry="maximized" parent="normal_unfocus">
  </frame_style>
  <frame_style name="maximized_focus" geometry="maximized" parent="normal_focus">
  </frame_style>
  
  <frame_style name="utility_unfocus" geometry="utility" parent="normal_unfocus"/>
  <frame_style name="utility_focus" geometry="utility" parent="normal_focus"/>

  <frame_style name="border" geometry="border" parent="normal_unfocus"/>

  <frame_style_set name="normal">
    <frame focus="yes" state="normal" resize="both" style="normal_focus"/>
    <frame focus="no"  state="normal" resize="both" style="normal_unfocus"/>
    <frame focus="yes" state="maximized"            style="maximized_focus"/>
    <frame focus="no"  state="maximized"            style="maximized_unfocus"/>
    <frame focus="yes" state="shaded"               style="normal_focus"/>
    <frame focus="no"  state="shaded"               style="normal_unfocus"/>
    <frame focus="yes" state="maximized_and_shaded" style="maximized_focus"/>
    <frame focus="no"  state="maximized_and_shaded" style="maximized_unfocus"/>
  </frame_style_set>
  
  <frame_style_set name="utility">
    <frame focus="yes" state="normal" resize="both" style="utility_focus"/>
    <frame focus="no"  state="normal" resize="both" style="utility_unfocus"/>
    <frame focus="yes" state="maximized"            style="utility_focus"/>
    <frame focus="no"  state="maximized"            style="utility_unfocus"/>
    <frame focus="yes" state="shaded"               style="utility_focus"/>
    <frame focus="no"  state="shaded"               style="utility_unfocus"/>
    <frame focus="yes" state="maximized_and_shaded" style="utility_focus"/>
    <frame focus="no"  state="maximized_and_shaded" style="utility_unfocus"/>
  </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="utility"/>
  <window type="modal_dialog" style_set="utility"/>
  <window type="menu"         style_set="utility"/>
  <window type="utility"      style_set="utility"/>
  <window type="border"       style_set="border"/>

  <menu_icon function="close"      state="normal" draw_ops="blank"/>
  <menu_icon function="maximize"   state="normal" draw_ops="blank"/>
  <menu_icon function="unmaximize" state="normal" draw_ops="blank"/>
  <menu_icon function="minimize"   state="normal" draw_ops="blank"/>
</metacity_theme>

