### 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 = "#121212" #This is the color for the sidebar
		
	base[NORMAL]		=  "#121212"

	engine "pixmap"
	{
	image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state 			= SELECTED
      file				= "images/other/menuitem.svg"
      border			= { 3,3,3,3 }
      stretch			= TRUE
    }
}
		
}

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"

style "small-scrollbar" = "scrollbar"
{

	GtkRange	:: slider_width			= 9
	GtkScrollbar::slider-width			        = 12
	GtkScrollbar	:: fixed-slider-length		= 1
	GtkScrollbar	:: min-slider-length		= 50

	GtkScrollbar	:: has-backward-stepper		= 0
	GtkScrollbar	:: has-forward-stepper		= 0

  engine "pixmap"
{

	image
	{
		function	= BOX
		recolorable	= TRUE
		detail		= "trough"
		file		= "/images/scroll/trough-h-small.svg"
		border		= { 7 , 7 , 3 , 3 }
		stretch		= TRUE
		orientation	= HORIZONTAL
	}

	image
	{
		function	= BOX
		recolorable	= TRUE
		detail		= "trough"
		file		= "/images/scroll/trough-v-small.svg"
		border		= { 3 , 3 , 7 , 7 }
		stretch		= TRUE
		orientation	= VERTICAL
	}
  }
}  
  
widget		"*Thunar*Tree*Scrollbar"						style		"small-scrollbar"
widget		"*Thunar*Shortcuts*Scrollbar"						style		"small-scrollbar"
widget		"*FmPlacesView*Scrollbar"						style		"small-scrollbar"
widget		"*FmSidePane*GtkScrolledWindow*Scrollbar"						style		"small-scrollbar"
widget		"*CajaSidePane*Scrollbar"			style "small-scrollbar"

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

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

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

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"


########File Chooser#
widget		"*FileChooserDefault*.GtkHPaned*"  style "sidebar-handle"
widget		"*FileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView*"						style		"notebook-treeview_header"
widget		"*FileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView"					style		"sidebar"
widget		"*FileChooserDefault.*.*.*.*.*.*View*"					style:highest	"treeview"
widget		"*FileChooser*.*.*.*VBox.GtkS*Scroll*"					style		"small-scrollbar"
