include "../icons/iconrc"
gtk-icon-sizes = "panel-menu=24,24:gtk-menu=16,16"

style "default" {
	GtkWidget::interior_focus = 5
	GtkButton::default_border = {0, 0, 0, 0}
	GtkButton::default_outside_border = {0, 0, 0, 0}

	GtkRange::trough_border = 0
	GtkWidget::focus_padding = 1

	GtkPaned::handle_size = 7
  
	GtkRange::slider_width = 15
	GtkRange::stepper_size = 15
	GtkScrollbar::min_slider_length = 30
	GtkCheckButton::indicator_size = 12
	GtkRadioButton::indicator_size = 12
	GtkMenuBar::internal-padding = 0

	GtkButton::child_displacement_x = 0
	GtkButton::child_displacement_y = 0

	GtkMenuItem::selected_shadow_type = GTK_SHADOW_OUT

	bg[NORMAL] = "#f5f5f5"
	bg[PRELIGHT] = "#fcfcfc"
	bg[SELECTED] = "#669922"
	bg[ACTIVE] = "#e7e7e7"
	bg[INSENSITIVE] = "#e7e7e7"

	fg[NORMAL] = "#000000"
	fg[PRELIGHT] = "#000000"
	fg[SELECTED] = "#ffffff"
	fg[ACTIVE] = "#000000"
	
	base[SELECTED] = "#669922"
	base[ACTIVE] = "#88bb22"
	text[SELECTED] = "#ffffff"
	
	engine "smooth" {
		tab_style = square

		line {
			style = flat
			thickness = 0
		}

		grip {
			#style = mac_buds_in
			style = none
			fill {
				style = shaded
				hdirection = vertical
				vdirection = horizontal
				shade1 = 1.3
				shade2 = 0.9
			}
		}

		trough {
			fill {
				style = smooth
			}
		}

		arrow {
			style = cleanice
			solid = TRUE
		        etched = FALSE
		}

		check {
			style = clean
			motif = FALSE

			fill {
				style = shaded
				hdirection = fdiagonal
				vdirection = fdiagonal
				shade1 = 1.3
				shade2 = 0.9
			}
		}
	}

} widget_class "*" style "default"

style "tooltips" {
	bg[NORMAL] = "#ffffff"
	bg[PRELIGHT] = "#ffffff"
	bg[SELECTED] = "#ffffff"
	bg[ACTIVE] = "#ffffff"
	bg[INSENSITIVE] = "#ffffff"
}

style "handle" {
	#bg[NORMAL] = "#f5f5f5"

	engine "smooth" {
		line {
			style = smooth
			thickness = 0
		}

		grip {
			style = none
			fill {
				style = shaded
				hdirection = vertical
				vdirection = horizontal
				shade1 = 1.0
				shade2 = 0.95
			}
		}
	}
}

style "menubar" {
	engine "smooth" {
		line {
			style = bevel
			thickness = 0
		}
	}
}

style "menu" {
	engine "smooth" {
		line {
			style = flat
			thickness = 1
		}

		arrow {
			style = cleanice
			solid = TRUE
		}
	}
}

style "toolbar" {
	engine "smooth" {
		line {
			style = bevel
			thickness = 0
		}

		grip {
			#style = mac_buds_in
			style = none
			toolbar_overlap = TRUE
		}
	}
}

style "button" {
	fg[PRELIGHT] = "#000000"
	bg[PRELIGHT] = "#ffffff"
	bg[ACTIVE] = "#d7d7d7"

	engine "smooth" {
		fill {
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.3
			shade2 = 0.9
		}

		line {
			style = flat
			thickness = 1
		}

		check {
			style = cleanice
			motif = FALSE

			fill {
				style = shaded
				hdirection = fdiagonal
				vdirection = fdiagonal
				shade1 = 1.3
				shade2 = 0.9
			}
		}

		option {
			style = round
			motif = FALSE
			fill {
				style = shaded
				hdirection = fdiagonal
				vdirection = fdiagonal
				shade1 = 1.3
				shade2 = 0.9
			}
		}

		trough {
			fill {
				style = solid
			}
			
			line {
				style = none
			}
		}

		arrow {
			style = cleanice
			solid = TRUE
		}
	}
}

style "menu-item" {
	text[PRELIGHT] = "#000000"
	fg[PRELIGHT] = "#ffffff"
	bg[PRELIGHT] = "#669922"
	base[PRELIGHT] = "#ffffff"

	engine "smooth" {
		fill {
			style = shaded
			hdirection = horizontal
			vdirection = horizontal
			shade1 = 1.05
			shade2 = 0.85
		}

		line {
			style = flat 
			thickness = 1
		}

		check {
			style = cleanice
			motif = FALSE
			fill {
				style = shaded
				hdirection = fdiagonal
				vdirection = fdiagonal
				shade1 = 1.3
				shade2 = 0.9
			}
		}

		option {
			style = clean
			motif = FALSE
			fill {
				style = shaded
				hdirection = fdiagonal
				vdirection = fdiagonal
				shade1 = 1.3
				shade2 = 0.9
			}
		}

		arrow {
			style = cleanice
			solid = TRUE
		}
	}
}

style "scrollbar" {
	bg[PRELIGHT] = "#ffffff"

	GtkRange::trough_border = 0
	GtkRange::slider_width = 15
	GtkRange::stepper_size = 15
	GtkRange::stepper_spacing = 0

	engine "smooth" {
		fill {
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.3
			shade2 = 0.9
		}

		line {
			style = flat
			thickness = 1
		}

		trough {
			fill {
				style = solid
			}
			line {
				style = none
				thickness = 0
			}
		}

		grip {
			#style = mac_buds_in
			style = none
			#line {
			#	style = flat
			#	thickness = 1
			#}
		}

		arrow {
			style = cleanice
			solid = TRUE
			xpadding = 1
			ypadding = 1
		}
	}
}

style "hscales"  {
	bg[PRELIGHT] = "#c4c4c4"

	GtkRange::trough_border = 0
	GtkRange::slider-width = 15
	GtkScale::slider-length = 10

	engine "smooth" {	
		line {
			style = flat
			thickness = 1
		}

		fill {
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.3
			shade2 = 0.9
		}

		trough {
			xpadding = 2
			ypadding = 1
			show_value = TRUE
			fill {
				style = solid
			}
		}

		grip {
			#style = mac_buds_in
			style = none
		}

		real_sliders = FALSE
	}
}

style "vscales"  {
	bg[PRELIGHT] = "#c4c4c4"

	GtkRange::trough_border	= 0
	GtkRange::slider-width	= 15
	GtkScale::slider-length	= 10

	engine "smooth" {
		line {
			style = flat
			thickness = 1
		}

		fill {
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.3
			shade2 = 0.9
		}

		trough {
			xpadding = 1
			ypadding = 2
			show_value = TRUE
			fill {
				style = solid
			}
		}

		grip {
			#style = mac_buds_in
			style = none
		}

		real_sliders = FALSE
	}
}

style "infobar" {
	bg[PRELIGHT] = "#669922"

	xthickness = 1
	ythickness = 2

	engine "smooth" {
		line {
			style = flat
			thickness = 1
		}

		fill {
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.3
			shade2 = 0.9
		}

		trough {
			fill {
				style = solid
			}
		}
	}
}

class "*Progress*" style "infobar"
widget_class "*Progress*" style "infobar"
class "*BonoboDockItem" style "handle"
class "*HandleBox" style "handle"
class "*Toolbar" style "toolbar"

class "GtkMenuBar" style "menubar"
widget_class "GtkMenuBar" style "menubar"
class "GtkMenu" style "menu"
class "*MenuItem*" style "menu-item"
widget_class "*MenuItem*" style "menu-item"
class "GtkStatusbar" style "menubar"

class "*Button*" style "button"
widget_class "*Button*" style "button"
class "*OptionMenu*" style "button"
widget_class "*OptionMenu*" style "button"
class "*Button*" style "button"
widget_class "*Button*" style "button"
class "*OptionMenu*" style "button"
widget_class "*OptionMenu*" style "button"
class "*RadioButton*" style "button"
widget_class "*RadioButton*" style "button"
class "*CheckButton*" style "button"
widget_class "*CheckButton*" style "button"

widget_class "*Scrollbar*" style "scrollbar"
class "*Scrollbar*" style "scrollbar"
widget_class "*HScale*" style "hscales"
class "*HScale*" style "hscales"
widget_class "*VScale*" style "vscales"
class "*VScale*" style "vscales"

class "*Paned" style "scrollbar"
widget_class "*Paned" style "scrollbar"

class "GtkTooltips" style "tooltips"
