# DelugeStart ( based upon ANewStart by alecive )
# Licensed under the GPL.
# Requires Murrine v0.91.0

gtk_color_scheme	= "bg_color:#F5F5F5\nselected_bg_color:#8DCCF0\nbase_color:#FFFFFF"         # Background, base
gtk_color_scheme	= "fg_color:#3C4343\nselected_fg_color:#1E2222\ntext_color:#3C4343"         # Foreground, text
#gtk_color_scheme	= "sidebar_color:#DEDEDE"                                                   # Custom colors
gtk_color_scheme	= "tooltip_bg_color:#B7DB67\ntooltip_fg_color:#F5F5F5"                      # Tooltips
gtk_color_scheme	= "theme_color_04:#a9a49c\ntheme_color_26:#292421\ntheme_color_27:#C7C7C7"  # Other colors
#gtk_color_scheme	= "link_color:#08C"                                                         # Hyperlinks

gtk-icon-sizes      = "panel-menu=23,23:panel=21,21:gtk-button=17,17:gtk-large-toolbar=22,22"

gtk-button-images	= 0									  # Disables icons for buttons with text
gtk-toolbar-style	= 0									  # Disables text in toolbar
gtk-auto-mnemonics	= 1									  # Disables lines under menu items

style "default"
{
	xthickness = 1
	ythickness = 1

	GtkArrow::arrow-scaling = 0.6
	GtkComboBox::arrow-scaling = 0.2

	GtkScrolledWindow ::scrollbar-spacing       = 0
	GtkScrolledWindow ::scrollbar-within-bevel  = 0

	GtkScrollbar::slider_width          = 11
	GtkScrollbar::has-backward-stepper  = 0
	GtkScrollbar::has-forward-stepper   = 0
	GtkScrollbar::min-slider-length     = 30

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

	GtkCheckButton::indicator-size = 12

	GtkPaned::handle-size = 6

	GtkRange::trough-border         = 1
	GtkRange::stepper-size          = 12
    GtkRange::trough-under-steppers = 1
	GtkRange::slider-width          = 14

	GtkScale::slider-length         = 14
	GtkScale::slider-width          = 14
	GtkScale::trough-side-details   = 1
	GtkScale::trough-border         = 1

	GtkExpander::expander-size      = 14
	GtkTreeView::expander-size      = 14
	GtkTreeView::indent-expanders   = 0

	GtkMenu::horizontal-offset  = 2
	GtkMenu::vertical-offset    = 2
	GtkMenu::horizontal-padding = 2
	GtkMenu::vertical-padding   = 2

	GtkMenuItem::arrow-spacing = 0

	GtkMenuBar::internal-padding = 2
	GtkMenuBar::shadow_type      = GTK_SHADOW_NONE

	#set to the same as roundness, used for better hotspot selection of tabs
	GtkNotebook::tab-curvature =  3
	GtkNotebook::tab-overlap   = -1

	GtkToolbar::internal-padding   = 2
	GtkToolbar::horizontal-padding = 0
	GtkToolbar::vertical-padding   = 0
	GtkToolbar::shadow_type        = GTK_SHADOW_NONE #gtk.SHADOW_IN, gtk.SHADOW_OUT, gtk.SHADOW_ETCHED_IN or gtk.SHADOW_ETCHED_OUT

	WnckTasklist::fade-overlay-rect = 0
	# The following line hints to gecko (and possibly other appliations)
	# that the entry should be drawn transparently on the canvas.
	# Without this, gecko will fill in the background of the entry.
	# GtkEntry::honors-transparent-bg-hint = 1

	GtkEntry::progress-border = { 2, 2, 2, 2 }

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

	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.04, @bg_color)
	bg[SELECTED]	    = @selected_bg_color
	bg[INSENSITIVE]   = @bg_color
	bg[ACTIVE]        = shade (0.9, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = mix (0.7, @selected_bg_color, @bg_color)
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = @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 "murrine"
	{
		animation           = TRUE  # FALSE = disabled, TRUE = enabled
		arrowstyle          = 1
#		border_shades       = { 1.0, 1.0} # draw a gradient on the border.
#		border_colors       = { "#E6DDD5", "#E6DDD5" }
		colorize_scrollbar  = FALSE  # FALSE = disabled, TRUE = enabled
		comboboxstyle       = 0 # colorize the GtkComboBox below the arrow.
		contrast            = .85  # 0.8 for less contrast, more than 1.0 for more contrast on borders
#		focus_color         = @selected_bg_color
#		glazestyle          = 5     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glazestyle          = 4     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glow_shade          = 1.15  # sets glow amount for buttons or widgets
		glowstyle           = 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = center (vertical), 4 = center (horizontal)
		gradient_shades     = { 1.13, 1.02, 1.00, 1.02 } # default: {1.1,1.0,1.0,1.1}
		highlight_shade     = 1.0   # set highlight amount for buttons or widgets
		lightborder_shade   = 1.2   # sets lightborder amount for buttons or widgets
		lightborderstyle    = 1     # 0 = lightborder on top side, 1 = lightborder on all sides
		listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
		listviewstyle       = 0     # 0 = nothing, 1 = dotted
		menubaritemstyle    = 0     # 0 = menuitem look, 1 = button look
		menubarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
		menuitemstyle       = 1     # 0 = flat, 1 = glassy, 2 = striped
		menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
		prelight_shade      = 1.20  #to select the shade level used in the scrollbar's slider, GtkComboBox with comboboxstyle = 1 and in the prelight state with gradient_colors.
		progressbarstyle    = 0     # 0 = no stripes, 1 = diagonal stripes, 2 = vertical stripes
		reliefstyle	        = 4     # 0 = flat, 1 = inset, 2 = shadow, = 3 for a gradient on shadow, = 4 for a stronger shadow.
		rgba		        = FALSE # FALSE = disabled, TRUE = enabled
		roundness           = 2     # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle      = 0     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
		shadow_shades 	    = { 0.8, 2.2 }
		sliderstyle         = 0     # 0 = nothing added, 1 = handles
		spinbuttonstyle     = 1
		stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles, 2 = squared steppers with a rounded slider
#		textstyle 	    = 1
		trough_shades 	    = {1.1,0.87}
		toolbarstyle	      = 0     # 0 = flat, 1 = glassy, 2 = gradient
		separatorstyle      = 1     # 0 = solid line, 1 = smooth separator
	}
}

style "wide"
{
	xthickness = 2
	ythickness = 2
}

style "wider"
{
	xthickness = 3
	ythickness = 3
}

style "dark"
{
	#bg[NORMAL] = @bg_color
	#bg[SELECTED] = @selected_bg_color
	#bg[PRELIGHT] = @selected_bg_color
	#bg[ACTIVE] = @selected_bg_color
	#bg[INSENSITIVE] = @bg_color


	#fg[NORMAL] = @bg_color
	#fg[PRELIGHT] = @selected_fg_color
	#fg[SELECTED] = @selected_fg_color
	#fg[ACTIVE] = @selected_fg_color
	#fg[INSENSITIVE] = @selected_fg_color

}

style "button" = "wide"
{
	engine "murrine"
	{
	  roundness = 3
		gradient_shades = { 1.06, 0.95, 1.06, 0.95}
		border_shades   = { .7, .6}
		border_colors   = { @bg_color, @bg_color }

		lightborderstyle  = 1
		lightborder_shade = 1.26

		shadow_shades     = {2.5,2.2}
	  reliefstyle = 4
	}
}

style "entry" {
	xthickness = 3
	ythickness = 3

	bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
	fg[SELECTED] = @text_color

	engine "murrine"
	{
		focus_color = @selected_bg_color
		lightborder_shade = 1.06
		glow_shade        = 1.9
	}
}

style "terminal"
{
	text[NORMAL] = darker(@selected_bg_color)
	base[NORMAL] = @bg_color

	TerminalScreen::background-darkness = 0.99
}

style "toolbar"
{
	ythickness = 0
	engine "murrine"
	{
		gradient_shades = {1.00,0.95,0.95,0.90}
		toolbarstyle = 1
	}
}

style "toolbar-toggle" = "toolbar"
{
	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[ACTIVE]      = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = darker (@bg_color)

	engine "murrine"
	{
		toolbarstyle    = 0
	}
}

style "dark-toolbar" = "dark"
{
	xthickness = 0
	ythickness = 2

	engine "murrine"
	{
		border_shades = {1.2, 1.0} # draw a gradient on the border.
		border_colors = { "#62635E", "#62635E" }
		glowstyle = 0
		gradient_shades = {1.1,1.0,1.0,0.7}
		highlight_shade = 1.0
		lightborder_shade = 1.0
		reliefstyle = 1     # 0 = flat, 1 = inset, 2 = shadow, = 3 for a gradient on shadow, = 4 for a stronger shadow.
	}
}

style "dark-toolbar-sep" = "dark-toolbar"
{
	xthickness = 2
}

style "panel"
{
	xthickness = 0
	ythickness = 0

	bg[NORMAL] = "#E3E3E3" #                         # Default top/bottom panel background
	bg[PRELIGHT] = "#E3E3E3" # @bg_color      # panel prelight

	engine "murrine"
	{
		#border_shades = {1.2, 1.0} 		# draw a gradient on the border.
		#border_colors = { "#2D2416", "#2D2416" }
		roundness = 1
	}
}

style "panel-button" = "panel"
{
	engine "murrine" {
		roundness         = 1
		border_colors     = {"#7C7C7C", "#7C7C7C"}
		border_shades     = {1.0, 1.0} # draw a gradient on the border.
		gradient_shades   = {1.0,1.0,1.0,1.0}
	}
}

# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview-header" = "default"
{
	xthickness = 1
	ythickness = 1

	bg[NORMAL] = "#F2F1F0"
	bg[PRELIGHT] = shade (1.04, "#F2F1F0")
	bg[ACTIVE] = shade (0.96, "#F2F1F0")
	bg[INSENSITIVE] = "#F2F1F0"

	engine "murrine" {
		textstyle = 1
		border_shades = {0.90, 0.78}
		glowstyle = 5
		glazestyle = 1
		contrast = 0.8
		lightborder_shade = 1.16
		textstyle = 1
		glow_shade = 1.0
	}
}

style "progressbar"
{
	xthickness = 0
	ythickness = 0


	bg[ACTIVE] = @bg_color
	fg[PRELIGHT] = @selected_fg_color

	engine "murrine" {
		trough_shades = {0.9, 0.98}
		roundness = 2
		lightborderstyle = 1
		lightborder_shade = 1.26
		border_shades = {0.8, 0.8}
		gradient_shades = {0.95, 1.1, 0.95, 1.1}
		#trough_border_shades = {0.9, 0.9}
	}
}

style "statusbar"
{
	ythickness = 0
	xthickness = 0
}

style "comboboxentry"
{
  ythickness = 3
	xthickness = 3

	engine "murrine"
	{
		contrast = .8
	}
}

style "spinbutton"
{
}

style "scale"
{
	bg[ACTIVE] = @bg_color
	bg[PRELIGHT] = shade(1.1, @bg_color)
	fg[PRELIGHT] = @selected_fg_color

	engine "murrine" {
		trough_shades = {0.9, 0.98}
		roundness = 6
		lightborderstyle = 1
		lightborder_shade = 1.26
		border_shades = {0.8, 0.8}
		gradient_shades = {0.95, 1.1, 0.95, 1.1}
		#trough_border_shades = {0.9, 0.9}
		highlight_shade = 1.02
		contrast = 1.1
		reliefstyle = 1
	}
}

style "frame"
{
}

style "frame-title" = "frame"
{
	fg[NORMAL] = lighter (@fg_color)
}

style "font"
{
	font_name="9"
}
widget_class "*" style "font"

#########################################
# Matches
#########################################

# default style is applied to every widget
class "GtkWidget"    style "default"

# Increase the x/ythickness in some widgets
class "GtkRange"     style "default"
class "GtkFrame"     style "frame"
class "GtkSeparator" style "wide"
class "GtkEntry"     style "entry"
class "GtkStatusbar" style "statusbar"

widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
widget_class "*<GtkCombo>*" style "comboboxentry"

# Toolbar default: light
class "*HandleBox" style "toolbar"
class "GtkToolbar"   style "toolbar"
widget_class "*HandleBox" style "toolbar"
widget_class "*<GtkToolbar>.*"   style "toolbar"

#
# Toolbar exceptions:
# Browser-type and viewer-type applications get a dark toolbar.
# Everything below the toolbar for these apps are the content. This will make
# a separation on function (toolbar) and content (client area)

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
style "text-is-fg-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = mix (0.8, @fg_color, '#ffffff')
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}

style "text-is-fg-color-workaround-dark"
{
	#Make it work with this theme!
	text[NORMAL] = @bg_color
	text[PRELIGHT] = mix (1.0, @bg_color, '#ffffff')
}

# Workaround style for menus where the text color is used instead of the fg color.
style "menuitem-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)
}

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
widget_class "*.<GtkComboBox>.<GtkCellView>"style "text-is-fg-color-workaround"
# This is the part of the workaround that fixes the menus
widget "*.gtk-combobox-popup-menu.*" style "menuitem-text-is-fg-color-workaround"

widget "*fullscreen-toolbar" style "dark-toolbar"
widget "*fullscreen-toolbar.*" style "dark-toolbar"
widget "*fullscreen-toolbar*.GtkComboBox.GtkCellView"   style "text-is-fg-color-workaround-dark"

class "GtkSpinButton"  style "spinbutton"
class "GtkScale"       style "scale"
class "GtkVScale"      style "scale"
class "GtkHScale"      style "scale"
class "GtkButton"      style "button"

# General matching following, the order is choosen so that the right styles override each other
# eg. progressbar needs to be more important then the menu match.

widget_class "*<GtkFrame>"  			style "frame"
widget_class "*.<GtkFrame>.<GtkLabel>" 		style "frame-title"

widget_class "*<GtkStatusbar>*"  		style "wider"
widget_class "*<GtkProgressBar>"       		style "progressbar"

# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" 	style "treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    	style "treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     	style "treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    	style "treeview-header"

###################################################
# Special cases and work arounds
###################################################

# 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 "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 "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 "fg-is-text-color-workaround"

style "dialog" = "dark"
{
    bg[NORMAL] = mix(0.4, @selected_bg_color, shade(0.7, @bg_color))
    fg[NORMAL] = shade(0.5, @fg_color)
    text[NORMAL] = shade(0.5, @text_color)
}
style "dialog-button" = "dark"
{
    bg[NORMAL] = shade(0.15, @bg_color)
    bg[PRELIGHT] = shade(0.18, @bg_color)
}

include"styles/checkradiobutton"
include"styles/menu-menubar"
include"styles/notebook"
include"styles/scrollbar"
include"styles/tooltips"

style "gnome-color-chooser-combobox"
{
  text[NORMAL] = @fg_color
  text[PRELIGHT] = mix (0.8, @fg_color, '#ffffff')
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style "gnome-color-chooser-combobox"
class "TerminalScreen" style "terminal"
