# 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=16,16 : gtk-menu=16,16 : gtk-button=16,16 : gtk-small-toolbar=16,16 : gtk-large-toolbar=16,16 : gtk-dialog=32,32 : gtk-dnd=32,32"

style "ubuntulooks-default"
{
	# base class for everything
        # setting this to 0 has *very* tight packing. 1-2 looks better.
	GtkWidget      ::focus_padding        = 0

	GtkButton      ::child-displacement-x = 1
	GtkButton      ::child-displacement-y = 1
	GtkButton      ::default-border       = { 0, 0, 0, 0 }
	GtkButton      ::default-outside-border={ 0, 0, 0, 0 }

	GtkButtonBox   ::child_min_width      = 0
	GtkButtonBox   ::child_min_heigth     = 0
	GtkButtonBox   ::child_internal_pad_x = 0
	GtkButtonBox   ::child_internal_pad_y = 0

	GtkPaned       ::handle_size       = 4

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

	GtkScrollbar   ::min_slider_length = 30
	GtkScrolledWindow::scrollbar_spacing = 0
	GtkCheckButton ::indicator_size    = 14
	GtkMenuBar     ::internal-padding  = 0

	GtkMenu        ::horizontal-padding   = 0
	GtkMenu        ::vertical-padding     = 0

	GtkOptionMenu  ::indicator_size       = 0
	GtkOptionMenu  ::indicator_spacing    = 0


	GtkTreeView    ::expander_size     = 11
	GtkTreeView    ::expander_spacing  = 0
	GtkTreeView    ::vertical-separator = 0
	GtkTreeView    ::horizontal-separator = 0

	GtkExpander    ::expander_size     = 11
	GtkExpander    ::expander_spacing  = 0
	GtkScale       ::slider-length     = 23
	GtkScale       ::value_spacing     = 0

	GtkToolbar     ::internal-padding  = 0
	GtkToolbar     ::space-size        = 10

	# GtkToolbar     ::button-relief     = GTK_RELIEF_NORMAL
	# GtkMenuBar     ::shadow-type       = GTK_SHADOW_OUT
	# GtkScrollbar   ::has-secondary-forward-stepper = 1
	# GtkScrollbar   ::has-secondary-backward-stepper = 1


	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 = 0
	ythickness = 0
}

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

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

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

style "ubuntulooks-button" = "ubuntulooks-wider-orange"
{
	xthickness   = 0
	ythickness   = 0

	bg[PRELIGHT] = shade (1.02, @bg_color)
	bg[ACTIVE]   = shade (0.90, @bg_color)
}

style "ubuntulooks-notebook" = "ubuntulooks-wide-orange"
{
	xthickness = 0
	ythickness = 0

	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 = 0
	ythickness = 0
}

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

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

style "ubuntulooks-menu-item" = "ubuntulooks-default"
{
	xthickness     = 1
	ythickness     = 1

	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    = 0
	ythickness    = 0
	fg[PRELIGHT]  = @base_color
}

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

# style are overriden again.
style "ubuntulooks-treeview-header" = "ubuntulooks-default"
{
	xthickness = 0
	ythickness = 0
}

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"
