<?xml version="1.0"?>
<metacity_theme>
	<info>
		<name>Bluecurve</name>
		<author>Garrett LeSage &lt;garrett@redhat.com&gt; Havoc Pennington &lt;hp@redhat.com&gt;</author>
		<copyright>&#194; 2002 Red Hat Inc.</copyright>
		<date>May 29, 2002</date>
		<description>Red Hat Linux default theme</description>
	</info>

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

	<!-- strip borders off the normal geometry -->
	<frame_geometry name="normal_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="0"/>
		<distance name="left_titlebar_edge" value="0"/>
		<distance name="right_titlebar_edge" value="0"/>
	</frame_geometry>

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

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

	<!-- define constants -->
	<constant name="ArrowWidth" value="7"/>
	<constant name="ArrowHeight" value="5"/>
	<constant name="ButtonIPad" value="3"/>
	<constant name="ThickLineWidth" value="3"/>
	<constant name="IconTitleSpacing" value="2"/>
	<constant name="LeftTitleTextPad" value="6"/>
	<constant name="IconShadowOffset" value="1"/>

	<!-- Unfocused thing -->
	<draw_ops name="titlebar_bg_unfocused">
		<gradient type="vertical" x="0" y="0" width="width" height="height">
			<color value="shade/gtk:bg[INSENSITIVE]/1.0"/>
			<color value="shade/gtk:bg[INSENSITIVE]/0.9"/>
		</gradient>
		<line color="shade/gtk:bg[INSENSITIVE]/0.6" x1="0" y1="height-1" x2="width" y2="height-1"/>
		<!-- Highlight on top edge -->
		<line color="shade/gtk:bg[INSENSITIVE]/1.2" x1="0" y1="0" x2="width" y2="0"/>
	</draw_ops>

	<!-- Buttons -->

	<draw_ops name="button_generic_bg_before">
		<!-- gradient from slightly darker than normal to slightly lighter --> 
		<gradient type="diagonal" x="0" y="1" width="width" height="height">
			<color value="shade/gtk:bg[NORMAL]/1.3"/>
			<color value="shade/gtk:bg[NORMAL]/0.9"/>
		</gradient>
		<gradient type="diagonal" x="1" y="1" width="width-2" height="height-2">
			<color value="shade/gtk:bg[NORMAL]/0.85"/>
			<color value="shade/gtk:bg[NORMAL]/1.3"/>
		</gradient>
		<gradient type="diagonal" x="1" y="1" width="1" height="height">
			<color value="shade/gtk:bg[NORMAL]/0.7"/>
			<color value="shade/gtk:bg[NORMAL]/1.3"/>
		</gradient>
		<gradient type="diagonal" x="1" y="1" width="height" height="1">
			<color value="shade/gtk:bg[NORMAL]/0.7"/>
			<color value="shade/gtk:bg[NORMAL]/1.3"/>
		</gradient>
	</draw_ops>

	<draw_ops name="button_generic_bg_before_unfocused">
		<include name="titlebar_bg_unfocused"/>
		<gradient type="vertical" x="0" y="1" width="width" height="height-2" alpha="0.1">
			<color value="shade/gtk:bg[NORMAL]/1.5"/>
			<color value="shade/gtk:bg[NORMAL]/0.95"/>
		</gradient>
	</draw_ops>

	<draw_ops name="button_generic_bg_after">
		<!-- line on bottom edge -->
		<line color="shade/gtk:dark[NORMAL]/0.9" x1="0" y1="height-1" x2="width" y2="height-1"/>
	</draw_ops>

	<draw_ops name="center_button_bg">
		<include name="button_generic_bg_before"/>
		<include name="button_generic_bg_after"/>
		<!-- highlight on top edge -->
		<line color="shade/gtk:bg[NORMAL]/1.2" x1="0" y1="0" x2="width" y2="0"/>
		<!-- dark line to separate from other buttons -->
		<line color="gtk:dark[NORMAL]" x1="width-1" y1="0" x2="width-1" y2="height"/>
	</draw_ops>

	<draw_ops name="center_button_bg_unfocused">
		<include name="button_generic_bg_before_unfocused"/>
	</draw_ops>
	
	<draw_ops name="right_corner_button_bg">
		<include name="button_generic_bg_before"/>
		<include name="button_generic_bg_after"/>
		<!-- highlight on top edge -->
		<line color="shade/gtk:bg[NORMAL]/1.2" x1="0" y1="0" x2="width-5" y2="0"/>
		<!-- do some shading around the edges -->
		<line color="shade/gtk:bg[NORMAL]/1.1" x1="width-3" y1="1" x2="width-4" y2="1"/>
		<line color="shade/gtk:bg[NORMAL]/0.9" x1="width-2" y1="2" x2="width-2" y2="3"/>
		<line color="shade/gtk:bg[NORMAL]/0.85" x1="width-1" y1="4" x2="width-1" y2="height-2"/>
	</draw_ops>

	<draw_ops name="right_corner_button_bg_unfocused">
		<include name="button_generic_bg_before_unfocused"/>
		<!-- highlight on top edge -->
		<line color="shade/gtk:bg[INSENSITIVE]/1.2" x1="0" y1="0" x2="width-5" y2="0"/>
		<!-- do some shading around the edges -->
		<line color="shade/gtk:bg[INSENSITIVE]/1.1" x1="width-3" y1="1" x2="width-4" y2="1"/>
		<line color="shade/gtk:bg[INSENSITIVE]/0.9" x1="width-2" y1="2" x2="width-2" y2="3"/>
		<line color="shade/gtk:bg[INSENSITIVE]/0.85" x1="width-1" y1="4" x2="width-1" y2="height-2"/>
	</draw_ops>

	<draw_ops name="left_corner_button_bg">
		<include name="button_generic_bg_before"/>
		<include name="button_generic_bg_after"/>
		<!-- highlight on top edge -->
		<line color="shade/gtk:bg[NORMAL]/1.2" x1="4" y1="0" x2="width" y2="0"/>
		<!-- shading around the edges -->
		<line color="gtk:dark[NORMAL]" x1="width-1" y1="0" x2="width-1" y2="height"/>
		<line color="shade/gtk:bg[NORMAL]/1.2" x1="2" y1="1" x2="3" y2="1"/>
		<line color="shade/gtk:bg[NORMAL]/1.2" x1="1" y1="2" x2="1" y2="3"/>
		<line color="shade/gtk:bg[NORMAL]/0.85" x1="2" y1="2" x2="3" y2="2"/>
		<line color="shade/gtk:bg[NORMAL]/0.85" x1="2" y1="2" x2="2" y2="3"/>
	</draw_ops>

	<draw_ops name="left_corner_button_bg_unfocused">
		<include name="button_generic_bg_before_unfocused"/>
		<!-- highlight on top edge -->
		<line color="shade/gtk:bg[INSENSITIVE]/1.2" x1="4" y1="0" x2="width" y2="0"/>
		<!-- shading around the edges -->
	</draw_ops>

	<draw_ops name="top_right_corner_outline">
		<!-- fix up the black edging -->
		<line color="#000000" x1="width-5" y1="1" x2="width-4" y2="1"/>
		<line color="#000000" x1="width-3" y1="2" x2="width-3" y2="2"/>
		<line color="#000000" x1="width-2" y1="3" x2="width-2" y2="4"/>
	</draw_ops>

	<draw_ops name="top_left_corner_outline">
		<!-- fix up the black edging -->
		<line color="#000000" x1="4" y1="1" x2="3" y2="1"/>
		<line color="#000000" x1="2" y1="2" x2="2" y2="2"/>
		<line color="#000000" x1="1" y1="3" x2="1" y2="4"/>
	</draw_ops>

	<draw_ops name="bottom_right_corner_outline">
		<!-- fix up the black edging -->
		<line color="#000000" x1="width-5" y1="height-2" x2="width-4" y2="height-2"/>
		<line color="#000000" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
		<line color="#000000" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
	</draw_ops>

	<draw_ops name="bottom_left_corner_outline">
		<!-- fix up the black edging -->
		<line color="#000000" x1="4" y1="height-2" x2="3" y2="height-2"/>
		<line color="#000000" x1="2" y1="height-3" x2="2" y2="height-3"/>
		<line color="#000000" x1="1" y1="height-4" x2="1" y2="height-5"/>
	</draw_ops>

	<draw_ops name="border_rounded">
		<!--
		<line color="#ff0000" x1="0" y1="0" x2="width" y2="height"/>
		<line color="#ff0000" x1="0" y1="height" x2="width" y2="0"/>
		-->
		<!-- Sides -->
		<line color="#000000" x1="width-1" y1="5" x2="width-1" y2="height-5"/>
		<line color="#000000" x1="0" y1="5" x2="0" y2="height-5"/>
		<!-- Top and bottom -->
		<line color="#000000" x1="5" y1="0" x2="width-5" y2="0"/>
		<line color="#000000" x1="5" y1="height-1" x2="width-5" y2="height-1"/>
		<!-- Corners -->
		<include name="top_left_corner_outline"/>
		<include name="top_right_corner_outline"/>
		<include name="bottom_left_corner_outline"/>
		<include name="bottom_right_corner_outline"/>
	</draw_ops>


	<draw_ops name="darken_tint">
		<tint color="shade/gtk:bg[normal]/0.75" alpha="0.5" 
			x="0" y="0" width="width" height="height"/>
	</draw_ops>

	<draw_ops name="prelight_tint">
		<tint color="gtk:bg[PRELIGHT]" alpha="0.4"
			x="1" y="1" width="width-2" height="height-2"/>
	</draw_ops>

	<draw_ops name="minimize_icon">
		<image filename="minimize.png"
			colorize="gtk:fg[NORMAL]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="menu_icon">
		<image filename="menu.png"
			colorize="gtk:fg[NORMAL]"
			alpha="0.7"
			x="(width - object_width - 2) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="maximize_icon">
		<image filename="maximize.png"
			colorize="gtk:fg[NORMAL]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="restore_icon">
		<image filename="restore.png"
			colorize="gtk:fg[NORMAL]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="close_icon">
		<image filename="close.png"
			colorize="gtk:fg[NORMAL]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="minimize_icon_unfocused">
		<image filename="minimize.png"
			colorize="gtk:fg[INSENSITIVE]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="menu_icon_unfocused">
		<image filename="menu.png"
			colorize="gtk:fg[INSENSITIVE]"
			alpha="0.7"
			x="(width - object_width - 2) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="maximize_icon_unfocused">
		<image filename="maximize.png"
			colorize="gtk:fg[INSENSITIVE]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="restore_icon_unfocused">
		<image filename="restore.png"
			colorize="gtk:fg[INSENSITIVE]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="close_icon_unfocused">
		<image filename="close.png"
			colorize="gtk:fg[INSENSITIVE]"
			alpha="0.7"
			x="(width - object_width) / 2"
			y="(height - object_height) / 2"
			width="object_width"
			height="object_height"/>
	</draw_ops>

	<draw_ops name="menu_button">
		<include name="menu_icon" x="2"/>
	</draw_ops>

	<draw_ops name="menu_button_prelight">
		<include name="prelight_tint"/>
		<include name="menu_icon" x="2"/>
		<include name="menu_icon" x="2"/>
	</draw_ops>

	<draw_ops name="menu_button_pressed">
		<include name="darken_tint"/>
		<include name="menu_icon" x="2"/>
	</draw_ops>

	<draw_ops name="menu_button_maximized">
		<include name="menu_icon" x="1"/>
	</draw_ops>

	<draw_ops name="menu_button_maximized_pressed">
		<include name="darken_tint"/>
		<include name="menu_icon" x="1"/>
	</draw_ops>

	<draw_ops name="menu_button_maximized_prelight">
		<include name="prelight_tint"/>
		<include name="menu_icon" x="1"/>
		<include name="menu_icon" x="1"/>
	</draw_ops>

	<draw_ops name="menu_button_unfocused">
		<include name="menu_icon_unfocused" x="2"/>
	</draw_ops>

	<draw_ops name="menu_button_maximized_unfocused">
		<include name="menu_icon_unfocused" x="1"/>
	</draw_ops>

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

	<draw_ops name="minimize_button_prelight">
		<include name="prelight_tint"/>
		<include name="minimize_icon"/>
		<include name="minimize_icon"/>
	</draw_ops>

	<draw_ops name="minimize_button_pressed">
		<include name="darken_tint"/>
		<include name="minimize_icon"/>
	</draw_ops>

	<draw_ops name="minimize_button_unfocused">
		<include name="minimize_icon_unfocused"/>
	</draw_ops>

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

	<draw_ops name="maximize_button_prelight">
		<include name="prelight_tint"/>
		<include name="maximize_icon"/>
		<include name="maximize_icon"/>
	</draw_ops>

	<draw_ops name="maximize_button_pressed">
		<include name="darken_tint"/>
		<include name="maximize_icon"/>
	</draw_ops>

	<draw_ops name="maximize_button_unfocused">
		<include name="maximize_icon_unfocused"/>
	</draw_ops>

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

	<draw_ops name="restore_button_prelight">
		<include name="prelight_tint"/>
		<include name="restore_icon"/>
		<include name="restore_icon"/>
	</draw_ops>

	<draw_ops name="restore_button_pressed">
		<include name="darken_tint"/>
		<include name="restore_icon"/>
	</draw_ops>

	<draw_ops name="restore_button_unfocused">
		<include name="restore_icon_unfocused"/>
	</draw_ops>

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

	<draw_ops name="close_button_prelight">
		<include name="prelight_tint"/>
		<include name="close_icon"/>
		<include name="close_icon"/>
	</draw_ops>

	<draw_ops name="close_button_pressed">
		<include name="darken_tint"/>
		<include name="close_icon"/>
	</draw_ops>

	<draw_ops name="close_button_maximized">
		<include name="close_icon"/>
	</draw_ops>

	<draw_ops name="close_button_maximized_unfocused">
		<include name="close_icon_unfocused"/>
	</draw_ops>

	<draw_ops name="close_button_maximized_pressed">
		<include name="darken_tint"/>
		<include name="close_icon"/>
	</draw_ops>

	<draw_ops name="close_button_maximized_prelight">
		<include name="prelight_tint"/>
		<include name="close_icon"/>
		<include name="close_icon"/>
	</draw_ops>

	<draw_ops name="close_button_unfocused">
		<include name="close_icon_unfocused"/>
	</draw_ops>

	<draw_ops name="outer_bevel">
		<!-- black edging -->
		<rectangle color="#000000"
			x="0" y="0" width="width-1" height="height-1"/>
		<!-- left outside -->
		<line color="blend/gtk:light[NORMAL]/#FFFFFF/0.7"
			x1="1" y1="1" x2="1" y2="height-2"/>
		<!-- left inside -->
		<line color="gtk:dark[NORMAL]"
			x1="left_width-1" y1="top_height-1" x2="left_width-1" y2="height-bottom_height"/>
		<!-- outside of bottom -->
		<line color="blend/gtk:bg[NORMAL]/#000000/0.2"
			x1="2" y1="height-2" x2="width-2" y2="height-2"/>
		<!-- inside of bottom (in two lines, one dark one light) -->
		<line color="gtk:dark[NORMAL]"
			x1="left_width" y1="height-bottom_height" x2="width-right_width" y2="height-bottom_height"/>
		<line color="blend/gtk:light[NORMAL]/#FFFFFF/0.7"
			x1="left_width" y1="height-bottom_height+1" x2="width-right_width" y2="height-bottom_height+1"/>
		<!-- right inside, again in two lines -->
		<line color="gtk:dark[NORMAL]"
			x1="width-right_width" y1="top_height-1" x2="width-right_width" y2="height-bottom_height"/>
		<line color="blend/gtk:light[NORMAL]/#FFFFFF/0.7"
			x1="width-right_width+1" y1="top_height-1" x2="width-right_width+1" y2="height-bottom_height+1"/>
		<!-- right outside -->
		<line color="blend/gtk:bg[NORMAL]/#000000/0.2"
			x1="width-2" y1="top_height-1" x2="width-2" y2="height-2"/>
	</draw_ops>

	<draw_ops name="corners_unfocused">
		<!-- corners (unfocused) -->
		<image filename="bottom_left.png" colorize="shade/gtk:bg[INSENSITIVE]/0.8" x="0" y="height-object_height" width="object_width" height="object_height"/> 
		<image filename="bottom_right.png" colorize="shade/gtk:bg[INSENSITIVE]/0.8" x="width-object_width" y="height-object_height" width="object_width" height="object_height"/>
	</draw_ops>

	<draw_ops name="corners_focused">
		<!-- corners -->
		<image filename="bottom_left.png" colorize="shade/gtk:bg[SELECTED]/1.0" x="0" y="height-object_height" width="object_width" height="object_height"/> 
		<image filename="bottom_right.png" colorize="shade/gtk:bg[SELECTED]/1.0" x="width-object_width" y="height-object_height" width="object_width" height="object_height"/>
	</draw_ops>


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

	<draw_ops name="focus_outline">
		<rectangle color="#000000"
			x="left_width-1" y="top_height-1"
			width="width-left_width-right_width+1"
			height="height-top_height-bottom_height+1"/>
	</draw_ops>

	<draw_ops name="unfocus_background">
		<include name="outer_bevel"/>
	</draw_ops>

	<draw_ops name="focus_background">
		<include name="outer_bevel"/>
	</draw_ops>
	
	<draw_ops name="unfocus_background_resize">
		<include name="outer_bevel"/>
		<include name="corners_unfocused"/>
	</draw_ops>

	<draw_ops name="focus_background_resize">
		<include name="outer_bevel"/>
		<include name="corners_focused"/>
	</draw_ops>

	<draw_ops name="title_gradient">
		<!-- base vertical gradient -->
		<gradient type="vertical" x="0" y="0" width="width" height="height-1">
			<color value="shade/gtk:bg[SELECTED]/1.0"/>
			<color value="shade/gtk:bg[SELECTED]/1.0"/>
		</gradient>
		<!-- stripes -->
		<image filename="white_stripes_tile.png" fill_type="tile" 
			x="1" y="1+1" width="width" height="height-4"
			alpha="0.0:0.9:0.9"/>
		<!-- Image Blocker -->
		<image filename="title-blocker-bottom.png"
			fill_type="tile"
			colorize="gtk:bg[SELECTED]"
			alpha="1.0"
			x="0"
			y="height - object_height"
			width="width"
			height="object_height"/>
		<image filename="title-blocker-right.png"
			fill_type="tile"
			colorize="gtk:bg[SELECTED]"
			alpha="1.0"
			x="width - object_width"
			y="0"
			width="object_width"
			height="height"/>
		<!-- top title shine -->
		<gradient type="diagonal" x="0" y="0" width="width" height="1" alpha="0.2">
			<color value="shade/gtk:bg[SELECTED]/2.0"/>
			<color value="shade/gtk:bg[SELECTED]/1.7"/>
		</gradient>
		<gradient type="vertical" x="0" y="0" width="width" height="1" alpha="0.4">
			<color value="shade/gtk:bg[SELECTED]/2.0"/>
			<color value="shade/gtk:bg[SELECTED]/1.4"/>
		</gradient>
		<!-- Image Shine -->
		<image filename="title-gradient-bottom.png"
			fill_type="tile"
			colorize="shade/gtk:bg[SELECTED]/2.0"
			alpha="0.8"
			x="0"
			y="height - object_height"
			width="width"
			height="object_height"/>
		<!-- bottom seperator line -->
		<line color="shade/gtk:bg[SELECTED]/0.1" x1="0" y1="height-1" x2="width" y2="height-1"/>
	</draw_ops>

	<draw_ops name="title_text_focused_no_icon">
		<clip x="0" y="0" width="width-8" height="height"/>
		<title color="blend/gtk:fg[NORMAL]/gtk:bg[SELECTED]/0.7"
			x="LeftTitleTextPad+1"
			y="(((height - title_height) / 2) `max` 0)+1"/>
		<title color="gtk:fg[SELECTED]"
			x="LeftTitleTextPad"
			y="((height - title_height) / 2) `max` 0"/>
	</draw_ops>

	<draw_ops name="title_text_no_icon">
		<clip x="0" y="0" width="width-8" height="height"/>
		<title color="blend/gtk:fg[INSENSITIVE]/gtk:bg[INSENSITIVE]/0.0"
			x="LeftTitleTextPad"
			y="((height - title_height) / 2) `max` 0"/>
	</draw_ops>

	<draw_ops name="title_normal">
		<include name="titlebar_bg_unfocused"/>
		<include name="title_text_no_icon"/>
		<line color="blend/gtk:bg[INSENSITIVE]/gtk:fg[INSENSITIVE]/0.3" x1="0" y1="0" x2="0" y2="height-2"/>
		<line color="blend/gtk:bg[INSENSITIVE]/gtk:fg[INSENSITIVE]/0.3" x1="width-1" y1="0" x2="width-1" y2="height-2"/>
	</draw_ops>

	<draw_ops name="title_focused">
		<include name="title_gradient"/>
		<include name="title_text_focused_no_icon"/>
		<line color="blend/gtk:bg[SELECTED]/#000000/0.4" x1="0" y1="0" x2="0" y2="height"/>
		<line color="blend/gtk:bg[SELECTED]/#000000/0.4" x1="width-1" y1="0" x2="width-1" y2="height"/>
	</draw_ops>

	<draw_ops name="title_utility">
		<include name="titlebar_bg_unfocused"/>
		<include name="title_text_no_icon"/>
	</draw_ops>

	<draw_ops name="title_utility_focused">
		<include name="title_gradient"/>
		<include name="title_text_focused_no_icon"/>
		<line color="blend/gtk:bg[SELECTED]/#000000/0.4" x1="0" y1="0" x2="0" y2="height"/>
		<line color="blend/gtk:bg[SELECTED]/#000000/0.4" x1="width-1" y1="0" x2="width-1" y2="height"/>
	</draw_ops>

	<draw_ops name="shaded_outline">
		<!-- top line -->
		<line color="#000000" x1="5" y1="0" x2="width-6" y2="0"/>
		<!-- bottom line -->
		<line color="#000000" x1="5" y1="height-1" x2="width-6" y2="height-1"/>
		<!-- left side corner -->
		<line color="#000000" x1="4" y1="height-2" x2="3" y2="height-2"/>
		<line color="#000000" x1="2" y1="height-3" x2="2" y2="height-3"/>
		<line color="#000000" x1="1" y1="height-4" x2="1" y2="height-5"/>
		<!-- right side corner -->
		<line color="#000000" x1="width-5" y1="height-2" x2="width-4" y2="height-2"/>
		<line color="#000000" x1="width-3" y1="height-3" x2="width-3" y2="height-3"/>
		<line color="#000000" x1="width-2" y1="height-4" x2="width-2" y2="height-5"/>
	</draw_ops>

	<draw_ops name="shaded_bevel">
		<!-- bottom shading line -->
		<gradient type="vertical" x="0" y="height-2" width="width" height="1" alpha="0.15">
			<color value="#000000"/>
			<color value="#000000"/>
		</gradient>
		<!-- left side corner -->
		<line color="shade/gtk:bg[NORMAL]/1.1" x1="3" y1="height-3" x2="3" y2="height-3"/>
		<line color="shade/gtk:bg[NORMAL]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
		<!-- right side corner -->
		<line color="shade/gtk:bg[NORMAL]/0.8" x1="width-5" y1="height-3" x2="width-4" y2="height-3"/>
		<line color="shade/gtk:bg[NORMAL]/0.8" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
	</draw_ops>

	<draw_ops name="shaded_bevel_unfocused">
		<!-- bottom shading line -->
		<gradient type="vertical" x="0" y="height-2" width="width" height="1" alpha="0.15">
			<color value="#000000"/>
			<color value="#000000"/>
		</gradient>
		<!-- left side corner -->
		<line color="shade/gtk:bg[INSENSITIVE]/1.1" x1="3" y1="height-3" x2="3" y2="height-3"/>
		<line color="shade/gtk:bg[INSENSITIVE]/1.3" x1="2" y1="height-4" x2="2" y2="height-5"/>
		<!-- right side corner -->
		<line color="shade/gtk:bg[INSENSITIVE]/0.8" x1="width-5" y1="height-3" x2="width-4" y2="height-3"/>
		<line color="shade/gtk:bg[INSENSITIVE]/0.8" x1="width-3" y1="height-4" x2="width-3" y2="height-5"/>
	</draw_ops>

	<draw_ops name="shaded_bevel_maximized_unfocused">
		<!-- bottom shading line -->
		<gradient type="vertical" x="0" y="height-2" width="width" height="1" alpha="0.15">
			<color value="#000000"/>
			<color value="#000000"/>
		</gradient>
		<!-- black edging -->
		<rectangle color="#000000"
			x="0" y="0" width="width-1" height="height-1"/>
	</draw_ops>

	<draw_ops name="shaded_bevel_maximized">
		<!-- bottom shading line -->
		<gradient type="vertical" x="0" y="height-2" width="width" height="1" alpha="0.15">
			<color value="#000000"/>
			<color value="#000000"/>
		</gradient>
		<!-- black edging -->
		<rectangle color="#000000"
			x="0" y="0" width="width-1" height="height-1"/>
	</draw_ops>

	<draw_ops name="focused_title_shaded">
		<include name="shaded_bevel"/>
		<include name="shaded_outline"/>
	</draw_ops>

	<draw_ops name="unfocused_title_shaded">
		<include name="shaded_bevel_unfocused"/>
		<include name="shaded_outline"/>
	</draw_ops>

	<draw_ops name="focused_title_maximized_shaded">
		<include name="shaded_bevel_maximized"/>
	</draw_ops>

	<draw_ops name="unfocused_title_maximized_shaded">
		<include name="shaded_bevel_maximized_unfocused"/>
	</draw_ops>

	<frame_style name="default_unfocused" geometry="normal">
		<piece position="entire_background" draw_ops="unfocus_background"/>
		<piece position="title" draw_ops="title_normal"/>

		<!-- Button backgrounds -->
		<button function="left_left_background" state="normal" draw_ops="left_corner_button_bg_unfocused"/>
		<button function="left_middle_background" state="normal" draw_ops="center_button_bg_unfocused"/>
		<button function="left_right_background" state="normal" draw_ops="center_button_bg_unfocused"/>
		<button function="right_left_background" state="normal" draw_ops="center_button_bg_unfocused"/>
		<button function="right_middle_background" state="normal" draw_ops="center_button_bg_unfocused"/>
		<button function="right_right_background" state="normal" draw_ops="right_corner_button_bg_unfocused"/>

		<!-- we don't specify for prelight, so normal is used -->
		<button function="minimize" state="normal" draw_ops="minimize_button_unfocused"/>
		<button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
		<button function="maximize" state="normal" draw_ops="maximize_button_unfocused"/>
		<button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
		<button function="menu" state="normal" draw_ops="menu_button_unfocused"/>
		<button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
		<button function="close" state="normal" draw_ops="close_button_unfocused"/>
		<button function="close" state="pressed" draw_ops="close_button_pressed"/>

		<button function="minimize" state="prelight" draw_ops="minimize_button_prelight"/>
		<button function="maximize" state="prelight" draw_ops="maximize_button_prelight"/>
		<button function="menu" state="prelight" draw_ops="menu_button_prelight"/>
		<button function="close" state="prelight" draw_ops="close_button_prelight"/>
	</frame_style>

	<frame_style name="default_focused" geometry="normal" parent="default_unfocused">
		<piece position="entire_background" draw_ops="focus_background"/>
		<piece position="title" draw_ops="title_focused"/>
		
		<!-- Button backgrounds -->
		<button function="left_left_background" state="normal" draw_ops="left_corner_button_bg"/>
		<button function="left_middle_background" state="normal" draw_ops="center_button_bg"/>
		<button function="left_right_background" state="normal" draw_ops="center_button_bg"/>
		<button function="right_left_background" state="normal" draw_ops="center_button_bg"/>
		<button function="right_middle_background" state="normal" draw_ops="center_button_bg"/>
		<button function="right_right_background" state="normal" draw_ops="right_corner_button_bg"/>

		<!-- Button icons -->
		<button function="minimize" state="normal" draw_ops="minimize_button"/>
		<button function="maximize" state="normal" draw_ops="maximize_button"/>
		<button function="menu" state="normal" draw_ops="menu_button"/>
		<button function="close" state="normal" draw_ops="close_button"/>
	</frame_style>

	<frame_style name="normal_unfocused" geometry="normal" parent="default_unfocused">
		<piece position="overlay" draw_ops="border_rounded"/>
	</frame_style>

	<frame_style name="normal_focused" geometry="normal" parent="default_focused">
		<piece position="overlay" draw_ops="border_rounded"/>
	</frame_style>

	<frame_style name="maximized_unfocused" geometry="normal_maximized" parent="default_unfocused">
		<piece position="entire_background" draw_ops="blank"/>
		<button function="menu" state="normal" draw_ops="menu_button_maximized_unfocused"/>
		<button function="close" state="normal" draw_ops="close_button_maximized_unfocused"/>
		<button function="maximize" state="normal" draw_ops="restore_button_unfocused"/>
		<button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
		<button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
	</frame_style>

	<frame_style name="maximized_focused" geometry="normal_maximized" parent="default_focused">
		<button function="left_left_background" state="normal" draw_ops="center_button_bg"/>
		<button function="right_right_background" state="normal" draw_ops="center_button_bg"/>
		<button function="maximize" state="normal" draw_ops="restore_button"/>
		<button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
		<button function="maximize" state="prelight" draw_ops="restore_button_prelight"/>
		<button function="menu" state="normal" draw_ops="menu_button_maximized"/>
		<button function="menu" state="pressed" draw_ops="menu_button_maximized_pressed"/>
		<button function="menu" state="prelight" draw_ops="menu_button_maximized_prelight"/>
		<button function="close" state="normal" draw_ops="close_button_maximized"/>
		<button function="close" state="pressed" draw_ops="close_button_maximized_pressed"/>
		<button function="close" state="prelight" draw_ops="close_button_maximized_prelight"/>
	</frame_style>

	<frame_style name="normal_focused_resize" geometry="normal" parent="normal_focused">
		<piece position="entire_background" draw_ops="focus_background_resize"/>
	</frame_style>

	<frame_style name="normal_unfocused_resize" geometry="normal" parent="normal_unfocused">
		<piece position="entire_background" draw_ops="unfocus_background_resize"/>
	</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>

	<!-- shaded states -->
	<frame_style name="normal_unfocused_shaded" geometry="normal" parent="normal_unfocused">
	</frame_style>

	<frame_style name="normal_focused_shaded" geometry="normal" parent="normal_focused">
	</frame_style>

	<frame_style name="maximized_unfocused_shaded" geometry="normal_maximized" parent="maximized_unfocused">
		<piece position="overlay" draw_ops="unfocused_title_maximized_shaded"/>
	</frame_style>

	<frame_style name="maximized_focused_shaded" geometry="normal_maximized" parent="maximized_focused">
		<piece position="overlay" draw_ops="focused_title_maximized_shaded"/>
	</frame_style>

	<frame_style name="utility_unfocused_shaded" geometry="utility" parent="utility_unfocused">
		<piece position="overlay" draw_ops="unfocused_title_shaded"/>
	</frame_style>

	<frame_style name="utility_focused_shaded" geometry="utility" parent="utility_focused">
		<piece position="overlay" draw_ops="focused_title_shaded"/>
	</frame_style>

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

	<frame_style_set name="normal">
		<frame focus="yes" state="normal" resize="both" style="normal_focused_resize"/>
		<frame focus="no" state="normal" resize="both" style="normal_unfocused_resize"/>
		<frame focus="yes" state="maximized" style="maximized_focused"/>
		<frame focus="no" state="maximized" style="maximized_unfocused"/>
		<frame focus="yes" state="shaded" style="normal_focused_shaded"/>
		<frame focus="no" state="shaded" style="normal_unfocused_shaded"/>
		<frame focus="yes" state="maximized_and_shaded" style="maximized_focused_shaded"/>
		<frame focus="no" state="maximized_and_shaded" style="maximized_unfocused_shaded"/>
	</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"/>
		<!-- this is a bunch of crack since utility windows shouldn't be maximized -->
		<frame focus="yes" state="maximized" style="utility_focused"/>
		<frame focus="no" state="maximized" style="utility_unfocused"/>
		<frame focus="yes" state="shaded" style="utility_focused_shaded"/>
		<frame focus="no" state="shaded" style="utility_unfocused_shaded"/>
		<frame focus="yes" state="maximized_and_shaded" style="utility_focused_shaded"/>
		<frame focus="no" state="maximized_and_shaded" style="utility_unfocused_shaded"/>
	</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_icon"/>
	<menu_icon function="maximize" state="normal" draw_ops="maximize_icon"/>
	<menu_icon function="unmaximize" state="normal" draw_ops="restore_icon"/>
	<menu_icon function="minimize" state="normal" draw_ops="minimize_icon"/>

</metacity_theme>
