PDA

View Full Version : [gnome] background for titlebar buttons?



Ultra_Man
August 21st, 2010, 01:30 AM
I want my elementary theme to have its icons have a background just like ambiance and radiance. So I copied the radiance one, and also copied the "button through" from the metacity.xml in radiance. But that isn't working.

Here's my elementary metacity.xml

<?xml version="1.0"?>
<metacity_theme>
<info>
<name>elementary</name>
<author>elementart Art Team</author>
<copyright>GPL</copyright>
<date>November 2009</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>

<!-- ::: GEOMETRY ::: -->
<frame_geometry name="normal" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
<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"/>
<aspect_ratio name="button" value="1.0"/>
<distance name="title_vertical_pad" value="0"/>
<border name="title_border" left="2" right="2" top="5" bottom="2"/>
<border name="button_border" left="1" right="1" top="3" bottom="0"/>
</frame_geometry>

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

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

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

<!-- ::: CORNERS OUTLINE::: -->
<draw_ops name="corners_outline">
<!-- top left Dark -->
<line color="shade/gtk:bg[NORMAL]/0.66" x1="1" y1="3" x2="1" y2="4"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="2" y1="2" x2="2" y2="2"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="3" y1="1" x2="3" y2="1"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="4" y1="1" x2="4" y2="1"/>

<!-- top right Dark -->
<line color="shade/gtk:bg[NORMAL]/0.66" x1="width-2" y1="3" x2="width-2" y2="4"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="width-3" y1="2" x2="width-3" y2="2"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="width-4" y1="1" x2="width-4" y2="1"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="width-5" y1="1" x2="width-5" y2="1"/>

<!-- top left White -->
<line color="shade/gtk:bg[NORMAL]/1.00" x1="2" y1="4" x2="2" y2="5"/>
<line color="shade/gtk:bg[NORMAL]/1.02" x1="3" y1="3" x2="3" y2="3"/>
<line color="shade/gtk:bg[NORMAL]/1.08" x1="4" y1="2" x2="4" y2="2"/>
<line color="shade/gtk:bg[NORMAL]/1.14" x1="5" y1="2" x2="5" y2="2"/>

<!-- top right White -->
<line color="shade/gtk:bg[NORMAL]/1.00" x1="width-3" y1="3" x2="width-3" y2="4"/>
<line color="shade/gtk:bg[NORMAL]/1.02" x1="width-4" y1="2" x2="width-4" y2="2"/>
<line color="shade/gtk:bg[NORMAL]/1.08" x1="width-5" y1="1" x2="width-5" y2="1"/>
<line color="shade/gtk:bg[NORMAL]/1.14" x1="width-6" y1="1" x2="width-6" y2="1"/>

</draw_ops>

<!-- ::: BORDER OUTLINE ::: -->
<draw_ops name="border">
<line color="shade/gtk:bg[NORMAL]/0.66" x1="0" y1="0" x2="width" y2="0"/>
<line color="shade/gtk:bg[NORMAL]/1.18" x1="0" y1="1" x2="width" y2="1"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="0" y1="0" x2="0" y2="height"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="width-1" y1="0" x2="width-1" y2="height"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="maxed_border">
<line color="shade/gtk:bg[NORMAL]/1.14" x1="0" y1="0" x2="width" y2="0"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

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

<draw_ops name="titlebar_gradient">
<gradient type="vertical" x="0" y="1" width="width" height="22">
<color value="shade/gtk:bg[NORMAL]/1.06"/>
<color value="shade/gtk:bg[NORMAL]/1.0"/>
</gradient>
</draw_ops>

<draw_ops name="titlebar_maximized">
<include name="titlebar_gradient"/>
<include name="maxed_border"/>
</draw_ops>

<draw_ops name="round_titlebar">
<include name="titlebar_gradient"/>
<include name="border"/>
<include name="corners_outline"/>
</draw_ops>

<draw_ops name="titlebar_shaded">
<include name="border"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="0" y1="height-1" x2="width" y2="height-1"/>
</draw_ops>

<draw_ops name="round_titlebar_shaded">
<include name="border"/>
<include name="corners_outline"/>
<line color="shade/gtk:bg[NORMAL]/0.66" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
</draw_ops>

<!-- ::: TITLES ::: -->
<draw_ops name="title">
<title color="shade/gtk:bg[NORMAL]/1.30" x="3 `max` (width-title_width)/2" y="1 `max` ((height-title_height)/2)+1"/>
<title color="shade/gtk:bg[NORMAL]/0.50" x="3 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>

<draw_ops name="title_unfocused">
<title color="shade/gtk:bg[NORMAL]/1.15" x="4 `max` (width-title_width)/2+1" y="1 `max` ((height-title_height)/2)+1"/>
<title color="shade/gtk:bg[NORMAL]/0.70" x="3 `max` (width-title_width)/2" y="0 `max` ((height-title_height)/2)"/>
</draw_ops>

<!-- Button Trough -->
<draw_ops name="left_left_background_focused_normal">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_left_background_focused_pressed">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_middle_background_focused_normal">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_middle_background_focused_pressed">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_right_background_focused_normal">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_right_background_focused_pressed">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_left_background_unfocused_normal">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_left_background_unfocused_pressed">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_middle_background_unfocused_normal">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_middle_background_unfocused_pressed">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_right_background_unfocused_normal">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="left_right_background_unfocused_pressed">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>

<!-- Button Trough Right -->
<draw_ops name="right_left_background_focused_normal">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_left_background_focused_pressed">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_middle_background_focused_normal">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_middle_background_focused_pressed">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_right_background_focused_normal">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_right_background_focused_pressed">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_left_background_unfocused_normal">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_left_background_unfocused_pressed">
<image filename="trough_left.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_middle_background_unfocused_normal">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_middle_background_unfocused_pressed">
<image filename="trough_middle.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_right_background_unfocused_normal">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>
<draw_ops name="right_right_background_unfocused_pressed">
<image filename="trough_right.png" x="0" y="1" width="object_width" height="object_height"/>
</draw_ops>

<!-- Button Overlays -->
<draw_ops name="menu_button_normal">
<image filename="menu-focus-normal.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>
<draw_ops name="menu_button_prelight">
<image filename="menu-focus.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>
<draw_ops name="menu_button_pressed">
<image filename="menu-pressed.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"
colorize="shade/gtk:bg[SELECTED]/0.85"/>
</draw_ops>
<draw_ops name="menu_button_unfocused">
<image filename="menu-focus-none.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>

<draw_ops name="close_button_normal">
<image filename="close-focus-normal.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>

<draw_ops name="close_button_prelight">
<image filename="close-focus.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>

<draw_ops name="close_button_pressed">
<image filename="close-pressed.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"
colorize="shade/gtk:bg[SELECTED]/0.85"/>
</draw_ops>

<draw_ops name="close_button_unfocused">
<image filename="close-focus-none.svg"
x="(width - object_width) / 2"
y="(height - object_height) / 2"
width="object_width"
height="object_height"/>
</draw_ops>

<draw_ops name="maximize_button_normal">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.74" />
<color value="shade/gtk:bg[NORMAL]/0.80" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
<gradient type="vertical" x="(width - 8) / 2 +3" y="(height - 2) / 2 -2" width="2" height="8">
<color value="shade/gtk:bg[NORMAL]/0.63" />
<color value="shade/gtk:bg[NORMAL]/0.93" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2 +3" x2="(width - 8) / 2 + 4"
y1="(height - 2) / 2 + 6" y2="(height - 2) / 2 + 6"/>
</draw_ops>

<draw_ops name="maximize_button_prelight">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.63" />
<color value="shade/gtk:bg[NORMAL]/0.67" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
<gradient type="vertical" x="(width - 8) / 2 +3" y="(height - 2) / 2 -2" width="2" height="8">
<color value="shade/gtk:bg[NORMAL]/0.51" />
<color value="shade/gtk:bg[NORMAL]/0.80" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2 +3" x2="(width - 8) / 2 + 4"
y1="(height - 2) / 2 + 6" y2="(height - 2) / 2 + 6"/>
</draw_ops>

<draw_ops name="maximize_button_pressed">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.87" />
<color value="shade/gtk:bg[NORMAL]/0.92" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
<gradient type="vertical" x="(width - 8) / 2 +3" y="(height - 2) / 2 -2" width="2" height="8">
<color value="shade/gtk:bg[NORMAL]/0.72" />
<color value="shade/gtk:bg[NORMAL]/1.05" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2 +3" x2="(width - 8) / 2 + 4"
y1="(height - 2) / 2 + 6" y2="(height - 2) / 2 + 6"/>
</draw_ops>

<draw_ops name="maximize_button_unfocused">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.80" />
<color value="shade/gtk:bg[NORMAL]/0.85" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.10"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
<gradient type="vertical" x="(width - 8) / 2 +3" y="(height - 2) / 2 -2" width="2" height="8">
<color value="shade/gtk:bg[NORMAL]/0.70" />
<color value="shade/gtk:bg[NORMAL]/0.98" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.10"
x1="(width - 8) / 2 +3" x2="(width - 8) / 2 + 4"
y1="(height - 2) / 2 + 6" y2="(height - 2) / 2 + 6"/>
</draw_ops>

<draw_ops name="minimize_button_normal">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.70" />
<color value="shade/gtk:bg[NORMAL]/0.80" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
</draw_ops>

<draw_ops name="minimize_button_prelight">

<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.60" />
<color value="shade/gtk:bg[NORMAL]/0.70" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
</draw_ops>

<draw_ops name="minimize_button_pressed">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.90" />
<color value="shade/gtk:bg[NORMAL]/1.00" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.20"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
</draw_ops>

<draw_ops name="minimize_button_unfocused">
<gradient type="vertical" x="(width - 8) / 2" y="(height - 2) / 2 + 1" width="8" height="2">
<color value="shade/gtk:bg[NORMAL]/0.85" />
<color value="shade/gtk:bg[NORMAL]/0.90" />
</gradient>
<line
color="shade/gtk:bg[NORMAL]/1.10"
x1="(width - 8) / 2" x2="(width - 8) / 2 + 7"
y1="(height - 2) / 2 + 3" y2="(height - 2) / 2 + 3"/>
</draw_ops>


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

<!-- ::: FRAME STYLES ::: -->
<frame_style name="normal" geometry="normal">
<piece position="entire_background" draw_ops="round_titlebar"/>
<piece position="title" draw_ops="title_unfocused"/>
<button function="close" state="normal" draw_ops="close_button_unfocused"/>
<button function="close" state="pressed" draw_ops="close_button_pressed"/>
<button function="close" state="prelight" draw_ops="close_button_prelight"/>
<button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
<button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
<button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
<button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
<button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
<button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
<button function="menu" state="prelight" draw_ops="menu_button_prelight"/>
</frame_style>

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

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

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

<frame_style name="normal_maximized" geometry="normal_maximized" parent="normal">
<piece position="entire_background" draw_ops="titlebar_maximized"/>
<button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
<button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
</frame_style>

<frame_style name="focused_maximized" geometry="normal_maximized" parent="focused">
<piece position="entire_background" draw_ops="titlebar_maximized"/>
<button function="maximize" state="normal" draw_ops="maximize_button_normal"/>
<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
<button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
</frame_style>

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

<frame_style name="utility_normal" geometry="utility" parent="normal">
</frame_style>

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

<frame_style name="utility_focused_shaded" geometry="utility" parent="focused_shaded">
<piece position="entire_background" draw_ops="titlebar_shaded"/>
</frame_style>

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

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

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

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

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

</metacity_theme>