<?xml version="1.0"?>
<metacity_theme>
<info>
  <name>E17gtk</name>
  <author>Pedram Pourang (aka. Tsu Jan)</author>
  <copyright>none</copyright>
  <date>May 2010</date>
  <description>A dark theme made from GnomishDark</description>
</info>

<!--================-->
<!--Frame Geometries-->
<!--================-->

<frame_geometry name="normal" rounded_top_left="false" rounded_bottom_left="false" rounded_top_right="false" rounded_bottom_right="false">
  <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="button_width" value="20"/>
  <distance name="button_height" value="20"/>
  <distance name="title_vertical_pad" value="0"/>
  <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  <border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<!--Normal geometry-->

<frame_geometry name="normal_small_borders" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false" parent="normal">
  <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"/>
</frame_geometry>

<!--Utility windows-->

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

<frame_geometry name="border" has_title="false">
  <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="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>

<!--==============-->
<!--Some constants-->
<!--==============-->

<constant name="ThickLineWidth" value="3"/>
<constant name="IconTitleSpacing" value="6"/>

<!--=======-->
<!--Drawing-->
<!--=======-->

<!--Above button-->

<draw_ops name="above_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="above_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="above_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="above_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Unabove Button-->

<draw_ops name="unabove_button">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unabove_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unabove_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unabove_button_inactive">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!-- Stick button-->

<draw_ops name="stick_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="stick_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="stick_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="stick_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Unstick Button-->

<draw_ops name="unstick_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unstick_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unstick_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unstick_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Shade button-->

<draw_ops name="shade_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="shade_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="shade_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="shade_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Unshade button-->

<draw_ops name="unshade_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unshade_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unshade_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="unshade_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Menu button-->

<draw_ops name="menu_button">
  <image filename="neutral.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="menu_button_prelight">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="menu_button_pressed">
  <image filename="yellow.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="menu_button_inactive">
  <image filename="unfocus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Minimize button--> 

<draw_ops name="minimize_button">
  <image filename="neutral-min.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="minimize_button_prelight">
  <image filename="button-min-focus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="minimize_button_pressed">
  <include name="minimize_button"/>
</draw_ops>

<draw_ops name="minimize_button_inactive">
  <image filename="unfocus-min.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Maximize button-->

<draw_ops name="maximize_button">
  <image filename="neutral-max.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="maximize_button_prelight">
  <image filename="button-max-focus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="maximize_button_pressed">
  <include name="maximize_button"/>
</draw_ops>

<draw_ops name="maximize_button_inactive">
  <image filename="unfocus-max.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Restore button-->

<draw_ops name="restore_button">
  <image filename="neutral-max.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="restore_button_prelight">
  <image filename="button-max-focus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="restore_button_pressed">
  <include name="restore_button"/>
</draw_ops>

<draw_ops name="restore_button_inactive">
  <image filename="unfocus-max.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--Close button-->

<draw_ops name="close_button">
  <image filename="neutral-close.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="close_button_prelight">
  <image filename="button-close-focus.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<draw_ops name="close_button_pressed">
  <include name="close_button"/>
</draw_ops>

<draw_ops name="close_button_inactive">
  <image filename="unfocus-close.png" x="0" y="0" width="20" height="20"/>
</draw_ops>

<!--==================-->
<!--Draw window frames-->
<!--==================-->

<!--Draw nothing-->

<draw_ops name="blank">
</draw_ops>

<!--The background of windows-->

<draw_ops name="background">
 <!--Title bar gradient--> 
   <image filename="bar.png" x="0" y="0" width="width" height="top_height"/>
</draw_ops>

<draw_ops name="background_unfocused">
   <image filename="bar_unfocused.png" x="0" y="0" width="width" height="top_height"/>
</draw_ops>

<draw_ops name="max_background">

   <rectangle color="#3b3b3e" x="0" y="0" width="width" height="height" filled="true"/>

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

   <rectangle color="#3b3b3e" x="left_width-1" y="top_height-1" 
	width="width-left_width-right_width+2" height="height-top_height-bottom_height" filled="true"/>

    <line color="#3b3b3e" x1="right_width" y1="top_height-1" x2="width-right_width-2+1" y2="top_height-1" />
</draw_ops>

<!--Set up draw_ops for drawing the title text-->

<!--Focused windows-->

<draw_ops name="title_text_focused">
  <clip x="0" y="0" width="width" height="height"/>
  <title color="#D9D9D9"
         x="(width - title_width) / 2" y="(height - title_height) / 2"/>
</draw_ops>

 <!--Unfocused windows-->
 
<draw_ops name="title_text">
  <clip x="0" y="0" width="width" height="height"/>
  <title color="#000000"
         x="(width - title_width) / 2" y="(height - title_height) / 2"/>
</draw_ops>

<!--Title text-->

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

<draw_ops name="title_focused">
  <include name="title_text_focused"/>
</draw_ops>

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

<draw_ops name="title_utility_focused">
  <include name="title_text_focused"/>
</draw_ops>

<!--=======================================-->
<!--Use draw_ops to draw the window frames.-->
<!--=======================================-->

<!--Focused windows-->

<frame_style name="normal_focused" geometry="normal">
  <piece position="entire_background" draw_ops="background"/>
  <piece position="title" draw_ops="title_focused"/>

<!--Draw buttons in normal, prelight, and pressed states-->

  <button function="close" state="normal" draw_ops="close_button"/>
  <button function="close" state="prelight" draw_ops="close_button_prelight"/>
  <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  <button function="minimize" state="normal" draw_ops="minimize_button"/>
  <button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
  <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  <button function="maximize" state="normal" draw_ops="maximize_button"/>
  <button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
  <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  <button function="menu" state="normal" draw_ops="menu_button"/>
  <button function="menu" state="prelight" draw_ops="menu_button_prelight"/>
  <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  <button function="stick" state="normal" draw_ops="stick_button"/>
  <button function="stick" state="prelight" draw_ops="stick_button_prelight"/>
  <button function="stick" state="pressed" draw_ops="stick_button_pressed"/>
  <button function="unstick" state="normal" draw_ops="unstick_button"/>
  <button function="unstick" state="prelight" draw_ops="unstick_button_prelight"/>
  <button function="unstick" state="pressed" draw_ops="unstick_button_pressed"/>
  <button function="shade" state="normal" draw_ops="shade_button"/>
  <button function="shade" state="prelight" draw_ops="shade_button_prelight"/>
  <button function="shade" state="pressed" draw_ops="shade_button_pressed"/>
  <button function="unshade" state="normal" draw_ops="unshade_button"/>
  <button function="unshade" state="prelight" draw_ops="unshade_button_prelight"/>
  <button function="unshade" state="pressed" draw_ops="unshade_button_pressed"/>
  <button function="above" state="normal" draw_ops="above_button"/>
  <button function="above" state="prelight" draw_ops="above_button_prelight"/>
  <button function="above" state="pressed" draw_ops="above_button_pressed"/>
  <button function="unabove" state="normal" draw_ops="unabove_button"/>
  <button function="unabove" state="prelight" draw_ops="unabove_button_prelight"/>
  <button function="unabove" state="pressed" draw_ops="unabove_button_pressed"/>
</frame_style>

<!--Unfocused windows-->

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

<!--Pressed states-->

  <button function="close" state="normal" draw_ops="close_button_inactive"/>
  <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  <button function="minimize" state="normal" draw_ops="minimize_button_inactive"/>
  <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  <button function="maximize" state="normal" draw_ops="maximize_button_inactive"/>
  <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  <button function="menu" state="normal" draw_ops="menu_button_inactive"/>
  <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  <button function="stick" state="normal" draw_ops="stick_button_inactive"/>
  <button function="stick" state="pressed" draw_ops="stick_button_pressed"/>
  <button function="unstick" state="normal" draw_ops="unstick_button_inactive"/>
  <button function="unstick" state="pressed" draw_ops="unstick_button_pressed"/>
  <button function="shade" state="normal" draw_ops="shade_button"/>
  <button function="shade" state="prelight" draw_ops="shade_button_prelight"/>
  <button function="shade" state="pressed" draw_ops="shade_button_pressed"/>
  <button function="unshade" state="normal" draw_ops="unshade_button"/>
  <button function="unshade" state="prelight" draw_ops="unshade_button_prelight"/>
  <button function="unshade" state="pressed" draw_ops="unshade_button_pressed"/>
  <button function="above" state="normal" draw_ops="above_button_inactive"/>
  <button function="above" state="pressed" draw_ops="above_button_pressed"/>
  <button function="unabove" state="normal" draw_ops="unabove_button_inactive"/>
  <button function="unabove" state="pressed" draw_ops="unabove_button_pressed"/>
</frame_style>

<!--Shading-->

<frame_style name="shaded_focused" geometry="normal" parent="normal_focused">
  <piece position="title" draw_ops="title_focused"/>
</frame_style>

<frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
  <piece position="entire_background" draw_ops="max_background"/>
</frame_style>

<frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
  <piece position="entire_background" draw_ops="max_background"/>
</frame_style>

<frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
  <piece position="title" draw_ops="title_utility"/>
</frame_style>

<frame_style name="utility_focused" geometry="utility" parent="normal_focused">
  <piece position="title" draw_ops="title_utility_focused"/>
</frame_style>

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

<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="shaded_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_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_unfocused"/>
<frame focus="yes" state="maximized" style="utility_focused"/>
<frame focus="no" state="maximized" style="utility_unfocused"/>
<frame focus="yes" state="shaded" style="utility_focused"/>
<frame focus="no" state="shaded" style="utility_unfocused"/>
<frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
<frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
</frame_style_set>

<frame_style_set name="border" parent="normal">
<frame focus="yes" state="normal" resize="both" style="border"/>
<frame focus="no" state="normal" resize="both" style="border"/>
<frame focus="yes" state="maximized" style="utility_focused"/>
<frame focus="no" state="maximized" style="utility_unfocused"/>
<frame focus="yes" state="shaded" style="utility_focused"/>
<frame focus="no" state="shaded" style="utility_unfocused"/>
<frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
<frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
</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"/>
<menu_icon function="maximize" state="normal" draw_ops="maximize_button"/>
<menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/>
<menu_icon function="minimize" state="normal" draw_ops="minimize_button"/>

</metacity_theme>
