# 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>
# Roberto Gordo Saez <roberto.gordo@gmail.com>
#
# Feel free to modify and share!

gtk_color_scheme = "fg_color:#000000\nbg_color:#ffffff\nbase_color:#ffffff\ntext_color:#000000\nselected_bg_color:#729fcf\nselected_fg_color:#fff\ntooltip_bg_color:#f0f0b0\ntooltip_fg_color:#000000\ntheme_color:#729fcf\nextra_view_widgets_color:#729fcf"

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

style "ubuntulooks-default"
{
	GtkButton      ::default_border    = { 0, 0, 0, 0 }
	GtkRange       ::trough_border     = 0
	GtkPaned       ::handle_size       = 12
	GtkRange       ::slider_width      = 18
	GtkRange       ::stepper_size      = 23

	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 = 3
	ythickness = 3

	GtkTreeView::odd_row_color = "#f0f0e0"
	GtkTreeView::even_row_color = "#ffffff"

	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]      = @bg_color
	#bg[SELECTED]	  = @dark_theme_color # #d6722d
	bg[SELECTED]	  = @selected_bg_color
	bg[INSENSITIVE]   = "#f0f0f0"
	bg[ACTIVE]        = "#d8d8d8"

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = @base_color
	base[ACTIVE]      = "#d8d8d8"
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = "#f0f0f0"

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

	font_name = "Bitstream Vera Sans 14"

	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 "deprecated" = "ubuntulooks-default"
{
	fg[ACTIVE]   = @text_color
	fg[SELECTED] = @text_color
}

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

style "ubuntulooks-button" = "ubuntulooks-default"
{
	bg[NORMAL] = "#e8e8e8"
	bg[ACTIVE] = @selected_bg_color
	xthickness = 6
	ythickness = 5
}

style "ubuntulooks-notebook" = "ubuntulooks-wide"
{
	bg[NORMAL] = "#e8e8e8"
	bg[ACTIVE] = @selected_bg_color
}

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

style "ubuntulooks-menu" = "ubuntulooks-default"
{
	xthickness = 12
	ythickness = 4
	bg[NORMAL] = "#f0f0f0"
}

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

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

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

style "ubuntulooks-frame-title" = "ubuntulooks-default"
{
	fg[NORMAL] = "#404040"
}

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

style "ubuntulooks-progressbar" = "ubuntulooks-default"
{
	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"
{
}

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

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

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

style "ubuntulooks-entry" = "ubuntulooks-default"
{
	xthickness = 3
	ythickness = 3
	font_name = "Bitstream Vera Sans 16"
}

# 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-entry"
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 "deprecated"
widget_class "*GtkList*" 				style "deprecated"
widget_class "*GtkCList*" 				style "deprecated"
widget_class "*.ETree.*" 				style "deprecated"

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"
