# Phlat-Dub
# by Todd Morgan
# Based on my Phlat-DIY design using "Indubstrial" colors
# Simple and fast 
# -----
# Small adoptions by Robert Staudinger

style "default"
{

#------------------------------------------
# Gtk controls - widget customization
#------------------------------------------
	GtkButton::default_border = {0, 0, 0, 0}
  	GtkButton::default_outside_border = {0, 0, 0, 0}
	GtkCheckButton::indicator_size    = 13
	GtkMenuBar::shadow-type = none
	GtkRadioButton::indicator_size    = 12
	GtkRange::trough_border           = 0
	GtkRange::slider_width            = 15
	GtkRange::stepper_size            = 15
	GtkRange::stepper_spacing         = 0
	GtkScrollbar::min_sliderlength = 30
	GtkPaned::handle_size = 6
	GtkToolbar::shadow-type = none
  	GtkScrollbar::has_backward_stepper = 1
	GtkScrollbar::has_secondary_forward_stepper = 0
	GtkScrollbar::has_forward_stepper = 1
	GtkScrollbar::has_secondary_backward_stepper = 0
	GtkScrollbar::min_slider_length = 30

#------------------------
# Color Information
#------------------------
	bg[NORMAL]      = "#eeeeee"
	bg[PRELIGHT]	= "#ffffff"
	bg[ACTIVE]	= "#d9d9d9"
	bg[INSENSITIVE] = "#d9d9d9"
	bg[SELECTED]    = "#6b92bd"

	fg[PRELIGHT]    = "#202020"

	base[SELECTED]  = "#6b92bd"

	text[SELECTED]  = "#ffffff"

#-------------------------
# Smooth Customization
#-------------------------

	engine "smooth"
	{
		fill 
		{
			#------------------------------
			# Solid Buttons - No gradiant
			#------------------------------
			style=solid     
    		}
	
    		line 
		{
        		style=flat
        		thickness=2
    		}
	
    		grip 
		{
        		#style=dots
			xpadding = 3 
          		ypadding = 3 
			
			# Maybe you prefer lines instead of dots
			style= midlines

			# How many dots or lines
			count= 3

			spacing= 2 #Space between dots/lines
			toolbar_overlap= FALSE
    		}
	
    		check 
		{
        		style=clean
			motif = FALSE
    		}
	
    		option 
		{
			style	= circle
			motif	= FALSE
		}
	
    		arrow 
		{
			# Triangle Arrows
      			style = cleanice

			# Bluecurve Style Arrows
			# style=wonderland
      			solid = TRUE
      			etched = FALSE
    		}

		button 
		{
			fill 
			{
				style = shaded
				hdirection = vertical
				vdirection = horizontal
				shade1 = 1.05
				shade2 = 0.95
			}
		}

    		tab_style = default #round
  	}
} 

style "menu"
{
	bg[PRELIGHT]    = "#6b92bd"
	bg[SELECTED]    = "#6b92bd"

	fg[PRELIGHT]  = "#ffffff"
	fg[SELECTED]  = "#ffffff"
}

style "menuitem"
{
	bg[NORMAL]      = "#eeeeee"
	bg[PRELIGHT]	= "#6b92bd"
	bg[ACTIVE]	= "#d9d9d9"
	bg[INSENSITIVE] = "#d9d9d9"
	bg[SELECTED]    = "#6b92bd"

	fg[PRELIGHT]    = "#202020"

	base[SELECTED]  = "#6b92bd"

	fg[PRELIGHT]  = "#ffffff"
	text[SELECTED]  = "#ffffff"

	engine "smooth"
	{
		fill 
		{
			style = shaded
			hdirection = vertical
			vdirection = horizontal
			shade1 = 1.0
			shade2 = 0.85
    		}
    		arrow 
		{
			# Triangle Arrows
      			style = cleanice

			# Bluecurve Style Arrows
			# style=wonderland
      			solid = TRUE
      			etched = FALSE
		}
    		check 
		{
        		style=clean
			motif = FALSE
    		}
	
    		option 
		{
			style	= circle
			motif	= FALSE
		}
	}
}

style "notebook"
{
   bg[NORMAL] = "#f6f6f6"
}

style "infobar" {
	bg[NORMAL]      = "#eeeeee"
	bg[PRELIGHT]	= "#6b92bd"
	bg[ACTIVE]	= "#d9d9d9"
	bg[INSENSITIVE] = "#d9d9d9"
	bg[SELECTED]    = "#6b92bd"

	fg[PRELIGHT]    = "#202020"

	base[SELECTED]  = "#6b92bd"

	text[SELECTED]  = "#ffffff"
}

style "scrollbar" {

  GtkRange::trough_border = 0

 engine "smooth"
  {
    fill {
	style = shaded
	hdirection = vertical
	vdirection = horizontal
	shade2 = 1.05
	shade1 = 0.95
    }

    line {
        style=flat
        thickness=1
    }

    arrow {
      style = cleanice
      solid = TRUE
      etched = FALSE
    }

       line {
            style=flat
            thickness=1
        }

    grip {
	#style=dots
	xpadding = 3 
	ypadding = 3 
			
	# Maybe you prefer lines instead of dots
	style= midlines

	# How many dots or lines
	count= 5

	spacing= 2 #Space between dots/lines
	toolbar_overlap= FALSE

	    fill {
		style = shaded
		hdirection = vertical
		vdirection = horizontal
		shade1 = 1.05
		shade2 = 0.95
	    }
    }
  }
}

style "scales"  {
  GtkRange::trough_border           = 0
  GtkRange::slider-width = 13
  GtkScale::slider-length = 29
  engine "smooth"
  {	
   real_sliders = FALSE
    fill {
	style = shaded
	hdirection = vertical
	vdirection = horizontal
	shade1 = 1.05
	shade2 = 0.95
    }

    line {
        style=flat
        thickness=0
    }

     trough {
          xpadding = 3
          ypadding = 3
          show_value = TRUE
    }

     grip {
          style= midlines
          count = 3
          spacing = 2
          xpadding =3
          ypadding = 3
      }
  }
} 
widget_class "*Scale*" style "scales"
class "*Scale*" style "scales"

widget_class "*" style "default"
widget_class "*Panel*" style "menu"

widget_class "*Menu*"style "menu"
class "*Menu*"style "menu"

# shaded menuitems
#widget_class "*MenuItem*"style "menuitem"
#class "*MenuItem*"style "menuitem"

widget_class "*GtkNotebook" style "notebook"
widget_class "*GtkFrame" style "notebook"

# doesn't work, want opposite gradient in scrollbar grip and background
widget_class "*Scrollbar*" style "scrollbar"
class "*Scrollbar*" style "scrollbar"

#does not work
class "*Progress*"		style "infobar"
widget_class "*Progress*"		style "infobar"
