 ### Sidebar for Thunar, PCmanfm Caja, and FileChooser##


style "sidebar" 
{
	xthickness = 0	#For Thunar
	ythickness = 0  #For Thunar

	GtkWidget	:: focus-padding = 0 #Takes away space between Trash and Bookmarks
	GtkWidget	:: focus_line_width = 1 #Adds spacing between icons and text
	GtkTreeView	:: horizontal_separator	= 12 #Padding to the left
	GtkTreeView	:: vertical_separator = 2 #Padding between each place
	GtkTreeView	:: image-spacing = 6
	
	GtkTreeView	:: even-row-color = @base_color #This is the color for the sidebar
		
	base[NORMAL]		=  @base_color
        bg[SELECTED]            =  "#005181"		
}

class		 "*ThunarTreeView"			style		"sidebar"
widget_class	"*FmPlacesView*"		style 		"sidebar"
widget_class	"*FmDirTreeView"			style 		"sidebar"
widget_class "*<ThunarShortcutsPane>*<ThunarShortcutsView>"  style  "sidebar"
widget_class "*CajaSidePane.*"                 style "sidebar"
widget_class "*Caja*Places*Sidebar*"           style "sidebar"
widget_class "*Caja*Side*.GtkWidget"           style "sidebar"
widget_class "*Caja*Side*Title*"               style "sidebar"


style "caja-icon-view"
{
	xthickness 					= 0
	ythickness 					= 1
}

widget_class "*FMIconView"				style "caja-icon-view"
widget_class "*FMListView"				style "caja-icon-view"
widget_class "*Caja*View*"                     style "caja-icon-view"

style "thunar-fm-iconview" 
{
	text[NORMAL] = @text_color
	fg[NORMAL] = @text_color
}

widget	"*Thunar*ExoIconView*"				style:highest	"thunar-fm-iconview"
widget	"*FmStandardView*View"				style:highest	"thunar-fm-iconview"
#widget	"*Caja*FMIconView*FMIconContainer"				style:highest	"thunar-fm-iconview"	

style "thunar-location-buttons"
{
  ThunarLocationButtons::spacing = 0
}

class "ThunarLocationButtons" style "thunar-location-buttons"

style "thunar_pathbar_style"
{
  xthickness	= 3
  ythickness	= 4
}

widget_class	"*ThunarLocationButton*Button*"				style:highest	"thunar_pathbar_style"
widget_class "*CajaPathBar.*ToggleButton*" 			style:highest "thunar_pathbar_style"

style "pcmanfm-handle"
{
	GtkPaned::handle-size = 1
}

style "sidebar-handle"
{
	GtkPaned::handle-size = 3
}

widget		"*FmMainWin*FmTabPage*"		style "pcmanfm-handle"
widget		"*Thunar*GtkHPaned*"		style "sidebar-handle"
widget	    "*CajaNavigationWindow*GtkHPaned*"		style "sidebar-handle"

style "caja-handle" {
	GtkPaned::handle-size = 2
	
	engine "pixmap" {
		# for the thin gray line separating the sidepane and viewpane
		image {
			function	= HANDLE
			recolorable	= TRUE
			file		= "Handles/handle-caja.png"
			stretch		= TRUE
			border		= { 0, 0, 0, 0 }
		}
	}
}

widget "*Caja*Splitter"                        style "caja-handle"

style "caja-statusbar"
{
	xthickness = 0
	engine "pixmap"
	{
	    image
	    {
		function		= RESIZE_GRIP
		recolorable		= TRUE
		state			= NORMAL
		detail			= "statusbar"
		overlay_file	= "Handles/resize_grip.png"
		overlay_border	= {0,0,0,0 }
		overlay_stretch	= FALSE
	    }
	}
}

widget_class "*Caja*Statusbar*"                style "caja-statusbar"

style "caja-location"
{
	bg[NORMAL]  = mix (0.60, shade (1.05, @bg_color), @bg_color)
}

widget "*.caja-extra-view-widget"              style : highest "caja-location"


########File Chooser#
widget		"*FileChooserDefault*.GtkHPaned*"  style "sidebar-handle"

widget		"*FileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView"					style		"sidebar"

### Styles pluma. Removes the ugly frame etc. ###

style "pluma-frame" {	
	engine "pixmap" {
 		image {
			function = SHADOW
		}
	}
}

style "pluma-statusbar" {	
	ythickness = 0
}

style "pluma-notebook" {
	xthickness = 0 # Width of tabs and notebook borders.
	ythickness = 1 # Height of tabs and notebook borders.
}

widget_class "*Pluma*.<GtkFrame>*"		style "pluma-frame"
widget_class "*Pluma*.<GtkNotebook>"		style "pluma-notebook"
widget_class "*Pluma*.<GtkStatusbar>*"		style "pluma-statusbar"
