style "button" {
	engine "pixmap" {
		## default button frame
		image {
			function = BOX
			recolorable = TRUE
			detail = "buttondefault"
			file = "button_default.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## button pressed
		image {
			function = BOX
			recolorable = TRUE
			state = ACTIVE
			shadow = IN
			file = "button_pressed.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## button
		image {
			function = BOX
			recolorable = TRUE
			state = NORMAL
			shadow = OUT
			file = "button_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## mouse over button
		image {
			function = BOX
			recolorable = TRUE
			state = PRELIGHT
			shadow = OUT
			file = "button_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## mouse over pressed toggle button
		image {
			function = BOX
			recolorable = TRUE
			state = PRELIGHT
			shadow = IN
			file = "button_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## insensitive button
		image {
			function = BOX
			recolorable = TRUE
			state = INSENSITIVE
			shadow = OUT
			file = "button_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## insensitive button pressed
		image {
			function = BOX
			recolorable = TRUE
			state = INSENSITIVE
			shadow = IN
			file = "button_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## mouse over check and radio buttons
		image {
			function = FLAT_BOX
			recolorable = TRUE
			state = PRELIGHT
			file = "button_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
	}
}

class "GtkButton" style "button"
class "GtkToggleButton" style "button"
class "GtkCheckButton" style "button"
class "GtkRadioButton" style "button"

style "default" { 
	font = "-*-lucida-medium-r-normal-12-*-100-*-*-p-*-iso8859-1" 
	fg[NORMAL] = { 0.00, 0.00, 0.00 } 
	fg[PRELIGHT] = { 0.00, 0.00, 0.00 } 
	fg[ACTIVE] = { 0.00, 0.00, 0.00 } 
	fg[SELECTED] = { 1.00, 1.00, 1.00 } 
	fg[INSENSITIVE] = { 0.00, 0.00, 0.00 } 
	bg[NORMAL] = { 0.8, 0.8, 0.8 } 
#	bg[NORMAL] = { 1.0, 1.0, 1.0 } 
	bg[PRELIGHT] = { 0.8, 0.8, 0.8 } 
#	bg[PRELIGHT] = { 0.27, 0.69, 0.64 } 
	bg[ACTIVE] = { 0.8, 0.8, 0.8 } 
#	bg[ACTIVE] = { 0.20, 0.50, 0.46 } 
	bg[SELECTED] = { 0.1, 0.1, 0.5 } 
	bg[INSENSITIVE] = { 0.5, 0.5, 0.5 } 
	base[NORMAL] = { 1.0, 1.0, 1.0 } 
	base[PRELIGHT] = { 1.0, 1.0, 1.0 } 
	base[ACTIVE] = { 1.0, 1.0, 1.0 } 
	base[SELECTED] = { 1.0, 1.0, 1.0 } 
	base[INSENSITIVE] = { 0.5, 0.5, 0.5 } 
}

style "widget" { 
	engine "pixmap" {
		## vertical handle
		image {
			function = HANDLE
			recolorable = TRUE
			state = PRELIGHT
			file = "scrollbar_prelight.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = VERTICAL
		}
		image {
			function = HANDLE
			recolorable = TRUE
			state = NORMAL
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = VERTICAL
		}
		## horizontal handle
		image {
			function = HANDLE
			recolorable = TRUE
			state = PRELIGHT
			file = "scrollbar_prelight.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = HORIZONTAL
		}
		image {
			function = HANDLE
			recolorable = TRUE
			state = NORMAL
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = HORIZONTAL
		}
		## horizontal scrollbar slider
		image {
			function = BOX
			recolorable = TRUE
			state = PRELIGHT
			detail = "slider"
			file = "scrollbar_prelight.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = HORIZONTAL
		}
		## horizontal scrollbar slider
		image {
			function = BOX
			recolorable = TRUE
			state = NORMAL
			detail = "slider"
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = HORIZONTAL
		}
		## vertical scrollbar slider
		image {
			function = BOX
			recolorable = TRUE
			state = PRELIGHT
			detail = "slider"
			file = "scrollbar_prelight.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = VERTICAL
		}
		## vertical scrollbar slider
		image {
			function = BOX
			recolorable = TRUE
			state = NORMAL
			detail = "slider"
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			orientation = VERTICAL
		}
		## special flat arrow for menuitems (looks better)
		image {
			function = ARROW
			recolorable = TRUE
			detail = "menuitem"
			file = "arrow_right_flat.png"
			border = { 0, 0, 0, 0 }
			stretch = FALSE
			arrow_direction = RIGHT
		}
		## arrows up
		image {
			function = ARROW
			recolorable = TRUE
			state = INSENSITIVE
			file = "arrow_up_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		image {
			function = ARROW
			recolorable = TRUE
			state = PRELIGHT
			file = "arrow_up_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = OUT
			file = "arrow_up_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = IN
			file = "arrow_up_pressed.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_OUT
			file = "arrow_up_etched_out.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_IN
			file = "arrow_up_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = UP
		}
		## arrows down
		image {
			function = ARROW
			recolorable = TRUE
			state = INSENSITIVE
			file = "arrow_down_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		image {
			function = ARROW
			recolorable = TRUE
			state = PRELIGHT
			file = "arrow_down_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = OUT
			file = "arrow_down_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = IN
			file = "arrow_down_pressed.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_OUT
			file = "arrow_down_etched_out.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_IN
			file = "arrow_down_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = DOWN
		}
		## arrows left
		image {
			function = ARROW
			recolorable = TRUE
			state = INSENSITIVE
			file = "arrow_left_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		image {
			function = ARROW
			recolorable = TRUE
			state = PRELIGHT
			file = "arrow_left_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = OUT
			file = "arrow_left_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = IN
			file = "arrow_left_pressed.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_OUT
			file = "arrow_left_etched_out.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_IN
			file = "arrow_left_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = LEFT
		}
		## arrows right
		image {
			function = ARROW
			recolorable = TRUE
			state = INSENSITIVE
			file = "arrow_right_insensitive.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		image {
			function = ARROW
			recolorable = TRUE
			state = PRELIGHT
			file = "arrow_right_prelight.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = OUT
			file = "arrow_right_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = IN
			file = "arrow_right_pressed.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_OUT
			file = "arrow_right_etched_out.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		image {
			function = ARROW
			recolorable = TRUE
			shadow = ETCHED_IN
			file = "arrow_right_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			arrow_direction = RIGHT
		}
		## check marks
		image {
			function = CHECK
			recolorable = TRUE
			shadow = OUT
			file = "check_out.png"
			stretch = FALSE
		}
		image {
			function = CHECK
			recolorable = TRUE
			shadow = IN
			file = "check_in.png"
			stretch = FALSE
#			overlay_file = "stock_button_apply.png"
#			overlay_stretch = FALSE
		}
		image {
			function = OPTION
			recolorable = TRUE
			shadow = OUT
			file = "option_out.png"
			stretch = FALSE
		}
		image {
			function = OPTION
			recolorable = TRUE
			shadow = IN
			file = "option_in.png"
			stretch = FALSE
#			overlay_file = "stock_button_apply.png"
#			overlay_stretch = FALSE
		}
		## any trough
		image {
			function = BOX
			recolorable = TRUE
			detail = "trough"
			file = "frame_in.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any slider
		image {
			function = SLIDER
			recolorable = TRUE
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any shadow gap
		image {
			function = SHADOW_GAP
			recolorable = TRUE
			file = "frame_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			gap_start_file = "frame_gap_start.png"
			gap_start_border = { 2, 0, 0, 0 }
			gap_end_file = "frame_gap_end.png"
			gap_end_border = { 0, 2, 0, 0 }
			gap_side = TOP
		}
		## progressbar
		image
		{
			function = BOX
			recolorable = TRUE
			detail = "bar"
			file = "scrollbar_prelight.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## notebook extension
		image
		{
			function = EXTENSION
			recolorable = TRUE
			state = ACTIVE
			file = "button_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		image
		{
			function = EXTENSION
			recolorable = TRUE
			file = "extension_top.png"
			border = { 1, 2, 1, 1 }
			stretch = TRUE
			gap_side = BOTTOM
		}
		image
		{
			function = EXTENSION
			recolorable = TRUE
			file = "extension_bottom.png"
			border = { 1, 2, 1, 1 }
			stretch = TRUE
			gap_side = TOP
		}
		image
		{
			function = EXTENSION
			recolorable = TRUE
			file = "extension_right.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			gap_side = LEFT
		}
		image
		{
			function = EXTENSION
			recolorable = TRUE
			file = "extension_left.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
			gap_side = RIGHT
		}
		## box gap top
		image {
			function = BOX_GAP
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_file = "gap_top.png"
			gap_border = { 0, 0, 0, 0 }
			gap_start_file = "gap_start_top.png"
			gap_start_border = { 1, 1, 1, 1 }
			gap_end_file = "gap_end_top.png"
			gap_end_border = { 1, 1, 1, 1 }
			gap_side = TOP
		}
		## box gap bottom
		image {
			function = BOX_GAP
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_file = "gap_bottom.png"
			gap_border = { 0, 0, 0, 0 }
			gap_start_file = "gap_start_bottom.png"
			gap_start_border = { 1, 1, 1, 1 }
			gap_end_file = "gap_end_bottom.png"
			gap_end_border = { 1, 1, 1, 1 }
			gap_side = BOTTOM
		}
		## box gap left
		image {
			function = BOX_GAP
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_file = "gap_left.png"
			gap_border = { 0, 0, 0, 0 }
			gap_start_file = "gap_start_left.png"
			gap_start_border = { 0, 0, 0, 0 }
			gap_end_file = "gap_end_left.png"
			gap_end_border = { 0, 0, 0, 0 }
			gap_side = LEFT
		}
		## box gap right
		image {
			function = BOX_GAP
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_file = "gap_right.png"
			gap_border = { 0, 0, 0, 0 }
			gap_start_file = "gap_start_right.png"
			gap_start_border = { 1, 1, 1, 1 }
			gap_end_file = "gap_end_right.png"
			gap_end_border = { 1, 1, 1, 1 }
			gap_side = RIGHT
		}
		## menu item prelight
		image {
			function = BOX
			recolorable = TRUE
			detail = "menuitem"
			file = "button_normal.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## Paned widget
		image {
			function = BOX
			recolorable = TRUE
			detail = "paned"
			file = "scrollbar_normal.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any hline
		image {
			function = HLINE
			recolorable = TRUE
			file = "frame_in.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any vline
		image {
			function = VLINE
			recolorable = TRUE
			file = "frame_in.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any box shadow out
		image {
			function = BOX
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any box shadow in
		image {
			function = BOX
			recolorable = TRUE
			shadow = IN
			file = "frame_in.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any selection
		image {
			function = FLAT_BOX
			recolorable = TRUE
			state = SELECTED
			file = "flat_selected.png"
			border = { 0, 0, 0, 0 }
			stretch = TRUE
		}
		## entry background
		image {
			function = FLAT_BOX
			recolorable = TRUE
			state = NORMAL
			detail = "entry_bg"
			file = "flat_white.png"
			border = { 0, 0, 0, 0 }
			stretch = TRUE
		}
		## any flat_box
		image {
			function = FLAT_BOX
			recolorable = TRUE
			file = "flat_gray.png"
			border = { 0, 0, 0, 0 }
			stretch = TRUE
		}
		## any shadow out
		image {
			function = SHADOW
			recolorable = TRUE
			shadow = OUT
			file = "frame_out.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any shadow in
		image {
			function = SHADOW
			recolorable = TRUE
			shadow = IN
			file = "frame_in.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
		## any shadow etched out
		image {
			function = SHADOW
			recolorable = TRUE
			shadow = ETCHED_OUT
			file = "frame_etched_out.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## any shadow etched in
		image {
			function = SHADOW
			recolorable = TRUE
			shadow = ETCHED_IN
			file = "frame_etched_in.png"
			border = { 2, 2, 2, 2 }
			stretch = TRUE
		}
		## any box
		image {
			function = BOX
			recolorable = TRUE
			file = "flat_gray.png"
			border = { 0, 0, 0, 0 }
			stretch = TRUE
		}
	}
} 

style "eventbox" {
	bg_pixmap[NORMAL] = "frame_in.png"
	bg_pixmap[INSENSITIVE] = "frame_in.png"
	bg_pixmap[PRELIGHT] = "frame_in.png"
	bg_pixmap[SELECTED] = "frame_in.png"
	bg_pixmap[ACTIVE] = "frame_in.png"
}

# causes Nautilus to crash so uncomment
#class "GtkEventBox" style "eventbox"

class "GtkWidget" style "widget" 

