# Ubuntu Human Colorscheme
#
# Authors:
# Richard Stellingwerff <remenic@gmail.com>
# Daniel Borgmann <daniel.borgmann@gmail.com>
# Billy Cantrell <bvcmdk@yahoo.com>
# Conn O'Griofa <connogriofa@gmail.com>
#
# Feel free to modify and share!

gtk_color_scheme = "fg_color:#101010\nbg_color:#EFEBE7\nbase_color:#FFF\ntext_color:#000\nselected_bg_color:#FFD799\nselected_fg_color:#000\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000\norange_color:#FF6D0C\nmetacity_frame_color:#CC863E\nextra_view_widgets_color:#F5C07F"

gtk-icon-sizes = "panel-menu=24,24"

style "ubuntulooks-default"
{
	GtkButton      ::default_border    = { 0, 0, 0, 0 }
	GtkRange       ::trough_border     = 0
	GtkPaned       ::handle_size       = 6
	GtkRange       ::slider_width      = 15
	GtkRange       ::stepper_size      = 15

	GtkScrollbar   ::min_slider_length = 35
	GtkCheckButton ::indicator_size    = 14
	GtkMenuBar     ::internal-padding  = 0
	GtkTreeView    ::expander_size     = 14
	GtkExpander    ::expander_size     = 16
	GtkScale       ::slider-length     = 31
	# GtkToolbar     ::button-relief     = GTK_RELIEF_NORMAL
	# GtkMenuBar     ::shadow-type       = GTK_SHADOW_OUT
	# GtkScrollbar   ::has-secondary-forward-stepper = 1
	# GtkScrollbar   ::has-secondary-backward-stepper = 1

	GtkButton      ::child-displacement-x = 0
	GtkButton      ::child-displacement-y = 0

	xthickness = 1
	ythickness = 1

	GtkTreeView::odd_row_color = "#F5F2ED"
	GtkTreeView::even_row_color = "#FAF9F7"

	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @text_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @fg_color
	fg[INSENSITIVE]   = darker (@bg_color)

	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.02, @bg_color)
	bg[SELECTED]	  = @metacity_frame_color
	bg[INSENSITIVE]   = shade (0.98, @bg_color)
	bg[ACTIVE]        = shade (0.90, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.90, @bg_color) # selected_bg_color?
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = shade (0.98, @bg_color)

	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[ACTIVE]      = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = darker (@bg_color)

	engine "ubuntulooks" 
	{
		menubarstyle      = 2       # 0 = flat, 1 = sunken, 2 = flat gradient
		menuitemstyle     = 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
		listviewitemstyle = 1       # 0 = flat, 1 = 3d-ish (gradient)
		progressbarstyle  = 1       # 0 = candy bar, 1 = fancy candy bar, 2 = flat
		animation         = FALSE
	}
}

# Evolution (and some deprecated widgets) use bg and fg for its listview instead of 
# base and text like they should, so we override it.
style "evolution-hack" = "ubuntulooks-default"
{	
	bg[ACTIVE]   = shade (0.90, @bg_color)
	bg[SELECTED] = @selected_bg_color
	fg[ACTIVE]   = @text_color
	fg[SELECTED] = @text_color
}

# Bright orange highlights only for selected widgets
style "ubuntulooks-orange" = "ubuntulooks-default"
{
	bg[SELECTED] = @orange_color
}

style "ubuntulooks-wide" = "ubuntulooks-default"
{
	xthickness = 2
	ythickness = 2
}

style "ubuntulooks-wide-orange" = "ubuntulooks-wide"
{
	bg[SELECTED] = @orange_color
}

style "ubuntulooks-wider" = "ubuntulooks-default"
{
	xthickness = 3
	ythickness = 3
}

style "ubuntulooks-wider-orange" = "ubuntulooks-wider"
{
	bg[SELECTED] = @orange_color
}

style "ubuntulooks-button" = "ubuntulooks-wider-orange"
{
	bg[PRELIGHT] = shade (1.02, @bg_color)
	bg[ACTIVE]   = shade (0.90, @bg_color)
}

style "ubuntulooks-notebook" = "ubuntulooks-wide-orange"
{
	bg[NORMAL]      = shade (0.99, @bg_color)
	bg[ACTIVE]      = shade (0.85, @bg_color)
	bg[INSENSITIVE] = shade (0.99, @bg_color)
}

style "ubuntulooks-tasklist" = "ubuntulooks-default"
{
	xthickness = 5
	ythickness = 3
}

style "ubuntulooks-menu" = "ubuntulooks-default"
{
	xthickness = 2
	ythickness = 1
	bg[NORMAL] = shade (1.04, @bg_color)
}

style "ubuntulooks-menubar-item" = "ubuntulooks-button"
{
	fg[PRELIGHT] = @text_color
}

style "ubuntulooks-menu-item" = "ubuntulooks-default"
{
	xthickness     = 2
	ythickness     = 3
	bg[SELECTED]   = @selected_bg_color
	fg[PRELIGHT]   = @selected_fg_color
	text[PRELIGHT] = @text_color
}

style "ubuntulooks-tree" = "ubuntulooks-wide"
{
}

style "ubuntulooks-frame-title" = "ubuntulooks-default"
{
	fg[NORMAL] = shade (4.00, @fg_color)
}

style "ubuntulooks-tooltips" = "ubuntulooks-default"
{
	xthickness = 4
	ythickness = 4
	bg[NORMAL] = @tooltip_bg_color
	fg[NORMAL] = @tooltip_fg_color
}

style "ubuntulooks-progressbar" = "ubuntulooks-wide-orange"
{
	xthickness    = 2
	ythickness    = 2
	fg[PRELIGHT]  = @base_color
}

style "ubuntulooks-treeview" = "ubuntulooks-wide-orange"
{
	xthickness    = 2
	ythickness    = 2
	fg[NORMAL]  = @text_color
	fg[SELECTED]  = @base_color
}

style "ubuntulooks-combo" = "ubuntulooks-button"
{
}

style "ubuntulooks-check" = "ubuntulooks-button"
{
}

style "ubuntulooks-range" = "ubuntulooks-wide-orange"
{
}

style "metacity-frame" = "ubuntulooks-default"
{
	bg[SELECTED] = @metacity_frame_color
}

style "extra-view-widgets" = "ubuntulooks-default"
{
	bg[NORMAL] = @extra_view_widgets_color
}

style "panel"
{
	bg[SELECTED] = @selected_bg_color
}

# widget styles
class "GtkWidget"      					style "ubuntulooks-default"
class "GtkButton"      					style "ubuntulooks-button"
class "GtkCombo"    					style "ubuntulooks-button"
class "GtkRange"       					style "ubuntulooks-range"
class "GtkFrame"       					style "ubuntulooks-wide"
class "GtkMenu"        					style "ubuntulooks-menu"
class "GtkEntry"       					style "ubuntulooks-wider-orange"
class "GtkMenuItem"    					style "ubuntulooks-menu-item"
class "GtkNotebook"    					style "ubuntulooks-notebook"
class "GtkProgressBar" 					style "ubuntulooks-progressbar"
class "GtkTreeView" 					style "ubuntulooks-treeview" # Really fixes GtkProgressBar in TreeView mode
class "MetaFrames"     					style "metacity-frame"
class "GtkWindow"      					style "metacity-frame"

class "GtkCheckButton" 					style "ubuntulooks-check"
class "GtkRadioButton" 					style "ubuntulooks-check"

widget_class "*MenuItem.*" 				style "ubuntulooks-menu-item"
widget_class "*MenuItem.*ProgressBar*" 			style "ubuntulooks-progressbar"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton" 			style "ubuntulooks-combo"
widget_class "*.GtkCombo.GtkButton"    			style "ubuntulooks-combo"

# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" 		style "ubuntulooks-tasklist"
widget "gtk-tooltip*" 					style "ubuntulooks-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton" 			style "ubuntulooks-tree"
widget_class "*.GtkCTree.GtkButton" 			style "ubuntulooks-tree"
widget_class "*.GtkList.GtkButton" 			style "ubuntulooks-tree"
widget_class "*.GtkCList.GtkButton" 			style "ubuntulooks-tree"
widget_class "*.GtkFrame.GtkLabel" 			style "ubuntulooks-frame-title"

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" 		style "ubuntulooks-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" 		style "ubuntulooks-notebook"

# these should really use base and text colors instead
widget_class "*GtkCTree*" 				style "evolution-hack"
widget_class "*GtkList*" 				style "evolution-hack"
widget_class "*GtkCList*" 				style "evolution-hack"
widget_class "*.ETree.*" 				style "evolution-hack"

widget "*.nautilus-extra-view-widget" 			style:highest "extra-view-widgets"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "ubuntulooks-text-is-fg-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"   		style "ubuntulooks-text-is-fg-color-workaround"

style "ubuntulooks-menuitem-text-is-fg-color-workaround"
{
	text[NORMAL]        = @fg_color
	text[PRELIGHT]      = @selected_fg_color
	text[SELECTED]      = @selected_fg_color
	text[ACTIVE]        = @fg_color
	text[INSENSITIVE]   = darker (@bg_color)
}

widget "*.gtk-combobox-popup-menu.*"   			style "ubuntulooks-menuitem-text-is-fg-color-workaround"

# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "ubuntulooks-fg-is-text-color-workaround"
{
	fg[NORMAL]      = @text_color
	fg[PRELIGHT]    = @text_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
	fg[INSENSITIVE] = darker (@bg_color)
}

widget_class "*<GtkListItem>*" 				style "ubuntulooks-fg-is-text-color-workaround"

# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.

widget_class "*<GtkCList>" 				style "ubuntulooks-fg-is-text-color-workaround"

# Theme panel elements
widget "*PanelWidget*" 					style "panel"
widget "*PanelApplet*" 					style "panel"
widget "*fast-user-switch*"				style "panel"
class "PanelApp*" 					style "panel"
class "PanelToplevel*" 					style "panel"
widget_class "*Mail*" 					style "panel"
widget_class "*notif*" 					style "panel"
widget_class "*Notif*" 					style "panel"
