# Fedora Nodoka gtkrc, based on Aqualooks
#
# Authors:
# Daniel Geiger <dgeiger_343@yahoo.com>
# Martin Sourada <martin.sourada@seznam.cz>
#
# Uses the Nodoka theme engine, forked from Murrine theme engine

##########
# PANELS 
##########
include "panel.rc" # This includes the file that handles panel theming. Gradient panel backgrounds are enabled by default for this setting. Please edit panel.rc if you don't want gradient backgrounds in your panels, or plan to use transparent/custom panels.

style "bold-panel-menu"
{
	font_name = "Bold"

	engine "clearlooks" {
	radius = 2.0
	}
}

style "bold-panel-slab"
{
	font_name = "Bold"
}
widget "*Panel*slab-main-menu-panel-button*" style "bold-panel-slab"
widget "*gimmie*" style "bold-panel-slab"
widget "*Panel*MenuBar*" style "bold-panel-menu"

gtk_color_scheme = "fg_color:#000000\nbg_color:#d4d4d4\nbase_color:#ffffff\ntext_color:#000000\nselected_bg_color:#0c90c7\nselected_fg_color:#ffffff\ntooltip_bg_color:#e2e2e2\ntooltip_fg_color:#000"

style "fedora-default"
{

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

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

	GtkScale::slider-length		= 28
	GtkScale::trough-side-details = 1

	GtkPaned::handle_size		= 6
	GtkEntry::honors-transparent-bg-hint = 1
	GtkEntry::progress-border = { 2, 2, 2, 2 }

	GtkScrollbar::min_slider_length	= 40
	GtkCheckButton::indicator_size	= 13
  	GtkRadioButton::indicator_size	= 13
	GtkMenuBar::internal-padding	= 0
	GtkTreeView::expander_size	= 14
	GtkExpander::expander_size	= 16

	xthickness			= 1
	ythickness			= 1

	fg[NORMAL]       	=  @fg_color
	fg[ACTIVE]       	=  @fg_color
	fg[PRELIGHT]     	=  @fg_color
	fg[SELECTED]     	=  @selected_fg_color
	fg[INSENSITIVE]  	=  shade (3.0,@fg_color)

	bg[NORMAL]       	=  @bg_color
	bg[ACTIVE]        	=  shade (1.0233,@bg_color)
	bg[PRELIGHT]      	=  mix(0.92, shade (1.1,@bg_color), @selected_bg_color)
	bg[SELECTED]      	=  @selected_bg_color
	bg[INSENSITIVE]  	=  shade (1.03,@bg_color)

	base[NORMAL]     	=  @base_color
	base[ACTIVE]     	=  shade (0.65,@base_color)
	base[PRELIGHT]   	=  @base_color
	base[SELECTED]    	=  @selected_bg_color
	base[INSENSITIVE]	=  shade (1.025,@bg_color)
	
	text[NORMAL]     	=  @text_color
	text[ACTIVE]      	=  shade (0.95,@base_color)
	text[PRELIGHT]   	=  @text_color
	text[SELECTED]   	=  @selected_fg_color
	text[INSENSITIVE]	=  mix (0.675,shade (0.95,@bg_color),@fg_color)

	engine "nodoka"
	{
#		scrollbar_color		= shade (1.040897799, "#008DD7")
		animation		= TRUE # FALSE = disabled, TRUE = enabled
#		contrast		= 1.0
#		gradients		= FALSE
#		hilight_ratio		= 0.909090909
		listviewheaderstyle	= 1 # 0 = flat, 1 = gradient, 2 = raised
		listviewstyle		= 1 # 0 = nothing, 1 = dotted
		menubarstyle		= 3 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		toolbarstyle		= 2 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		roundness		= 3 # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle		= 1 # 0 = nothing, 1 = circles, 2 = bars
		stripes			= TRUE # enable or disable stripes in progressbars
		bullet_color		= "#0c90c7"
		focus_fill		= TRUE # enable or disable focus overlay fill
		focus_inner		= FALSE	# TRUE = secondary focus ring inside, FALSE = secondary focus ring outside widgets
	}

}

# 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" = "fedora-default"
{	
	bg[ACTIVE]	= @bg_color
}

style "evolution-hack-tree" = "fedora-default"
{	
	bg[ACTIVE]	= shade (0.8, @bg_color)
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
	fg[ACTIVE]	= @text_color
	fg[SELECTED]	= @selected_fg_color
}

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

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

style "fedora-button" = "fedora-wider"
{
	bg[NORMAL]   =  shade (1.09,@bg_color)
	bg[ACTIVE]   =  shade (0.85,@bg_color)
	bg[PRELIGHT] =  mix(0.93, shade (1.13,@bg_color), @selected_bg_color)
}

style "fedora-notebook" = "fedora-wide"
{
	bg[NORMAL] =  shade (1.08,@bg_color)
	fg[ACTIVE] =  shade (0.30, @bg_color)
	bg[ACTIVE] =  shade (0.92,@bg_color)
}

style "fedora-menubar" = "fedora-default"
{
#	bg[NORMAL]	= mix (0.8, lighter(@bg_color), shade(1.040897799, @selected_bg_color))
	fg[PRELIGHT] 	 =  @selected_fg_color
	text[PRELIGHT] =  @selected_fg_color
}

style "fedora-panel-menubar" = "fedora-menubar"
{
	fg[PRELIGHT]	= @selected_fg_color
	text[PRELIGHT]	= @selected_fg_color
}

style "fedora-menu" = "fedora-default"
{
	xthickness	= 2

	bg[NORMAL] = shade (1.15,@bg_color)
}

style "fedora-menu-item" = "fedora-menu"
{
	xthickness	= 3
	ythickness	= 3

 	fg[PRELIGHT] 	 =  @selected_fg_color
	text[PRELIGHT] =  @selected_fg_color
}

style "fedora-tree" = "fedora-wide"
{
	bg[NORMAL]   =  shade (1.10,@bg_color)
 	bg[PRELIGHT] = shade (1.30,@bg_color)
 	bg[ACTIVE]   =  mix(0.85,  shade (1.05,@bg_color), @selected_bg_color)
}

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

style "fedora-tooltips"
{
	xthickness	= 4
	ythickness	= 4

	bg[NORMAL]	= @tooltip_bg_color
	fg[NORMAL]	= @tooltip_fg_color
}

style "fedora-progressbar" = "fedora-wide"
{
  	bg[NORMAL]      = shade (0.80, @bg_color)
  	bg[SELECTED]    = @selected_bg_color
	fg[PRELIGHT]	= @selected_fg_color
}

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

style "fedora-status" = "fedora-wide"
{
	GtkStatusbar	::shadow-type	= GTK_SHADOW_IN
}

style "fedora-entry" = "fedora-button"
{
	GtkWidget	::focus-line-width	= 2
	GtkEntry	::shadow-type		= GTK_SHADOW_IN

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

style "fedora-scrollbar" = "fedora-button"
{
	text[NORMAL]		= shade (0.2, @bg_color)
	text[PRELIGHT]		= shade (0.2, @bg_color)
	text[ACTIVE]		= @text_color
}

style "fedora-scale" = "fedora-button"
{

	GtkRange	::trough-side-details	= 0
	GtkRange	::slider_width		= 16

	bg[SELECTED]    = shade (1.1, @selected_bg_color)
	fg[PRELIGHT]	= shade(1.1946, @selected_fg_color)
}

style "fedora-checkbutton" = "fedora-button"
{
	bg[PRELIGHT]	= @bg_color
}

style "fedora-spin-button" = "fedora-entry"
{
}

# widget styles
class "GtkWidget"	style "fedora-default"
class "GtkButton"	style "fedora-button"
class "GtkCombo"	style "fedora-combo"
class "GtkRange"	style "fedora-wide"
class "GtkFrame"	style "fedora-wide"
class "GtkMenu"		style "fedora-menu"
class "GtkEntry"	style "fedora-entry"
class "GtkMenuItem"	style "fedora-menu-item"
class "GtkNotebook"	style "fedora-notebook"
class "GtkProgressBar"	style "fedora-progressbar"
class "GtkMenuBar"	style "fedora-menubar"
class "GtkStatusbar"	style "fedora-status"
class "GtkScrollbar"	style "fedora-scrollbar"
class "GtkHBox"		style "fedora-wider"
class "GtkScale"	style "fedora-scale"
class "GtkCheckButton"	style "fedora-checkbutton"
class "GtkSpinButton"	style "fedora-spin-button"

widget_class "*MenuItem.*"		style "fedora-menu-item"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton"	style "fedora-combo"
widget_class "*.GtkCombo.GtkButton"	style "fedora-combo"
widget_class "*.GtkComboBox.GtkFrame"	style "fedora-wider"

# tooltips stuff
widget "gtk-tooltip*"			style "fedora-tooltips"

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

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox"	style "fedora-notebook"
widget_class "*.GtkNotebook.*.GtkViewport"	style "fedora-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "fedora-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "fedora-notebook"

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

#panel bg hack
widget "*Panel*Menu*"		style "fedora-panel-menubar"

#evolution new button workaround (should be fixed in Evo 2.24)
style "fedora-evo-new-button-workaround"
{
	engine "nodoka"
	{
		toolbarstyle = 0
	}
}

widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "fedora-evo-new-button-workaround"

widget_class "*.<GtkProgress>"   	style "fedora-progressbar"

