### Sidebars and styling 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 = 2 #Adds spacing between icons and text
	GtkTreeView	:: horizontal_separator	= 14 #Padding to the left
	GtkTreeView	:: vertical_separator = 1 #Padding between each place
	GtkTreeView	:: image-spacing = 2

	GtkTreeView	:: even-row-color = "#5c5c5c" #This is the color for the sidebar

	base[NORMAL]		= "#5c5c5c"
	text[NORMAL]		= @text_color
	text[SELECTED]		= @selected_fg_color
	text[ACTIVE]		= shade(0.94, @selected_fg_color)

	font_name 		= "* Bold 8"

	engine "pixmap"
	{
	image
	{
	    function                    = FOCUS
	    file			= "images/other/null.png"
	    border			= { 1, 1, 1, 1 }
	    stretch			= TRUE
        }
       
    
    image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state 			= NORMAL
      file				= "images/other/delorean-dark-light20-bg.png"
      border			= { 0,0,0,0 }
      stretch			= TRUE
    }
    image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state				= SELECTED
      file				= "images/other/sidebar-menuitem.svg"
      border			= { 4,2,2,2 }
      stretch			= TRUE
    } 
  }
}

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




style "pcman_sidebar"
{
	GtkWidget	:: focus-padding = 0 #Takes away space between Trash and Bookmarks
	GtkWidget	:: focus_line_width = 2 #Adds spacing between icons and text
	GtkTreeView	:: horizontal_separator	= 14 #Padding to the left
	GtkTreeView	:: vertical_separator = 1 #Padding between each place
	GtkTreeView	:: image-spacing = 2

	GtkTreeView	:: even-row-color = "#333333" #This is the color for the sidebar

	base[NORMAL]		= "#333333"
	text[NORMAL]		= @text_color
	text[SELECTED]		= @selected_fg_color
	text[ACTIVE]		= shade(0.90, @selected_fg_color)

	font_name 		= "* Bold 8"

	engine "pixmap"
	{
	image
	{
	    function                    = FOCUS
	    file			= "images/other/null.png"
	    border			= { 1, 1, 1, 1 }
	    stretch			= TRUE
        }
	image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state 			= SELECTED
      file				= "images/other/sidebar-menuitem-2.svg"
      border			= { 4,2,2,2 }
      stretch			= TRUE
    }
  }
}

widget_class	"*FmPlacesView*"			style 		"pcman_sidebar"
widget_class	"*FmDirTreeView"			style 		"pcman_sidebar"
class		 "*ThunarTreeView"			style		"pcman_sidebar"
widget_class "*<ThunarShortcutsPane>*<ThunarShortcutsView>"  style  "pcman_sidebar"
widget_class "*CajaSidePane*"				style "pcman_sidebar"
#Sidebar Treeview Header Buttons
style "sidebar_treeview_header" = "treeview_header"
{
}

widget_class "*FileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.<GtkTreeView>*<GtkButton>*"      style "sidebar_treeview_header"

### Toolbar image removal ###
style "no_toolbar"
{
		engine "pixmap"
{
	image
	{
		function			= BOX
		file				= "images/other/null.png"
		border				= { 0,0,0,0 }
		stretch				= TRUE
		detail              = "toolbar"
	}
  }
}

widget_class "*Thunar*GtkToolbar"	            style "no_toolbar"
widget_class "*Fm*GtkToolbar"					style "no_toolbar"

# Fix the bg color for the entrys nolonger on toolbar 
widget_class "*Thunar*<GtkToolbar>*<GtkEntry>"	style "entry"
widget_class "*Fm*<GtkToolbar>*<GtkEntry>"	style "entry"

### ScrolledWindow Removal ###
style "scrolled-sidebar"
{

        xthickness      = 2
        ythickness      = 2

        engine "pixmap"
	{
        image
        {
        function		= SHADOW
                file			= "images/frames/scrolledwindow-sidebar.svg"
                border			= { 2,2,2,2 }
                stretch			= TRUE
        }
        }
}

widget		"*FileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow"    style  "scrolled-sidebar"
widget_class "*Thunar*<GtkScrolledWindow>"  style  "scrolled-sidebar"

### Scrollbars in Sidebars ###
style "small-scrollbar"
{
  engine "pixmap"
{
	image
	{
		function	= BOX
		recolorable	= TRUE
		detail		= "trough"
		file		= "images/scroll/trough-h-sidebar.svg"
		border		= { 1,1,3,1 }
		stretch		= TRUE
		orientation	= HORIZONTAL
	}
	image
	{
		function	= BOX
		recolorable	= TRUE
		detail		= "trough"
		file		= "images/scroll/trough-v-sidebar.svg"
		border		= { 3,1,1,1 }
		stretch		= TRUE
		orientation	= VERTICAL
	}
	# Sliders

    image
    {
      function				= SLIDER
      state           		= NORMAL
      file					= "images/scroll/slider-h-sidebar.svg"
      border				= { 5,5, 4, 4 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }
    image
    {
      function				= SLIDER
      state           		= ACTIVE
      file					= "images/scroll/slider-h-sidebar-active.svg"
      border				= { 5, 5, 4, 4 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }
    image
    {
      function				= SLIDER
      state           		= PRELIGHT
      file					= "images/scroll/slider-h-sidebar-prelight.svg"
      border				= { 5, 5, 4, 4 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }

# X Verticals

    image
    {
      function				= SLIDER
      state           		= NORMAL
      file					= "images/scroll/slider-v-sidebar.svg"
	  border				= { 4,4,5,5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
    image
    {
      function				= SLIDER
      state           		= ACTIVE
      file					= "images/scroll/slider-v-sidebar-active.svg"
      border				= { 4, 4, 5, 5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
    image
    {
      function				= SLIDER
      state           		= PRELIGHT
      file					= "images/scroll/slider-v-sidebar-prelight.svg"
      border				= { 4, 4, 5, 5}
      stretch				= TRUE
      orientation			= VERTICAL

    }
  }
}

widget		"**FmPlacesView*GtkScrollbar"						style		"small-scrollbar"
widget		"**FmSidePane*GtkScrolledWindow*Scrollbar"						style		"small-scrollbar"
widget		"*Thunar*Tree*Scrollbar"						style		"small-scrollbar"
widget		"*Thunar*Shortcuts*Scrollbar"						style		"small-scrollbar"
widget		"*CajaSidePane*Scrollbar"			style "small-scrollbar"
widget		"*FileChooser*.*.*.*VBox.GtkS*Scroll*"					style		"small-scrollbar"

## File Manager IconViews ##
style "caja-icon-view"
{
	xthickness 					= 0
	ythickness 					= 0

}

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] = "#393939"
}

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"

### Thunar Location Buttons ###
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"

### Sidebar Handles ###
style "sidebar-handle"
{
	GtkPaned::handle-size = 5
}

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

###
style "pcman_sidebar-handle" 
{
	GtkPaned::handle-size = 5

	bg[NORMAL]		= @base_color
	engine "pixmap" {
		image {
			function	= HANDLE
			recolorable	= TRUE
			file		= "images/handles/pcman_handle.svg"
			stretch		= TRUE
			border 		= { 0, 0, 0, 0 }
			overlay_file    		= "images/handles/pane-separator-grip-vertical.svg"
            overlay_stretch 		= FALSE
		}
	}
}

widget		"*FmMainWin*FmTabPage*"		style "pcman_sidebar-handle"



style "pcmanfm-sidebutton"
{
	
	fg[PRELIGHT]        = @selected_fg_color
    engine "pixmap"
    {

	# Text-entry
	image
	{
		function	= BOX
		recolorable	= TRUE
		state		= PRELIGHT
		shadow		= OUT
		file		= "/images/other/null.png"
		border		={ 0 ,0, 0 ,0}
		stretch		= TRUE
	}

	image
	{
		function	= BOX
		recolorable	= TRUE
		state		= PRELIGHT
		shadow		= IN
		file		= "images/other/null.png"
		border		= { 0 ,0, 0 ,0}
		stretch		= TRUE
	}
	image
	{
		function	= BOX
		state		= ACTIVE
		file		= "images/other/null.png"
		border		= { 0 ,0, 0 ,0}
		stretch		= TRUE
	}
    }
}


widget          "*FmMainWin*FmSidePane*GtkButton*" style "pcmanfm-sidebutton"

# caja main window

style "caja-view" {
	base[NORMAL] = "#393939"
	text[NORMAL] = @fg_color
	fg[NORMAL] = @fg_color
}

widget_class "*Caja*View*"                     style "caja-view"
