# -*- coding: utf-8 -*-
#
# This application is released under the GNU General Public License 
# v3 (or, at your option, any later version). You can find the full 
# text of the license under http://www.gnu.org/licenses/gpl.txt
# By using, editing and/or distributing this software you agree to 
# the terms and conditions of this license.
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#!colors
style "gtk-colors" {
    bg[NORMAL]      = "#222"
    bg[PRELIGHT]    = shade (1.8, "#222")
    bg[ACTIVE]      = shade (1.4, "#222")
    bg[SELECTED]    = shade (1.4, "#222")
    bg[INSENSITIVE] = shade (0.8, "#222")

    fg[NORMAL]      = shade (0.8, "#DDD")
    fg[PRELIGHT]    = "#DDD"
    fg[ACTIVE]      = shade (0.8, "#DDD")
    fg[SELECTED]    = shade (0.6, "#DDD")
    fg[INSENSITIVE] = shade (0.4, "#DDD")
}
style "gtk-commons" {
    base[NORMAL]    = shade (1.0, "#222")
    base[PRELIGHT]  = shade (0.8, "#DDD")
    base[ACTIVE]    = shade (0.2, "#DDD")
    base[SELECTED]  = mix(0.7, "#71A7ED", "#DDD")

    bg[NORMAL]      = "#222"
    bg[PRELIGHT]    = mix(0.7, "#71A7ED", "#DDD")
    bg[ACTIVE]      = shade (0.6, "#DDD")
    bg[SELECTED]    = "#222"

    fg[NORMAL]      = shade (0.6, "#DDD")
    fg[PRELIGHT]    = "#222"
    fg[ACTIVE]      = shade (0.6, "#DDD")
    fg[SELECTED]    = mix(0.7, "#71A7ED", "#DDD")

    text[NORMAL]    = shade (0.8, "#DDD")
    text[PRELIGHT]  = "#222"
    text[ACTIVE]    = mix(0.7, "#71A7ED", "#DDD")
    text[SELECTED]  = "#222"
}
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#!buttons
style "gtk-buttons" {
    xthickness = 0
    ythickness = 0

    GtkButton::inner-border     = { 8, 6, 4, 4 }
    engine "pixmap" {    
        image {
            function            = BOX
            recolorable         = TRUE
            state               = PRELIGHT
            file                = "gtk-button-prelight.png"
            border              = { 2, 2, 2, 2 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = NORMAL
            file                = "gtk-button-normal.png"
            border              = { 2, 2, 2, 2 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = ACTIVE
            file                = "gtk-button-active.png"
            border              = { 2, 2, 2, 2 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = INSENSITIVE
            file                = "gtk-button-normal.png"
            border              = { 2, 2, 2, 2 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = SELECTED
            file                = "gtk-button-normal.png"
            border              = { 2, 2, 2, 2 }
            stretch             = TRUE
        }
    }
}
widget_class "*<GtkEventBox>.<GtkVBox>.<GtkHBox>.<GtkButton>" style "gtk-buttons"
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#!breadcrumbs
style "gtk-breadcrumbs" {
    xthickness = 0
    ythickness = 0

    GtkButton::inner-border     = { 7, 17, 3, 0 }
    engine "pixmap"
    {    
        image {
            function            = BOX
            recolorable         = TRUE
            state               = PRELIGHT
            file                = "gtk-breadcrumb-prelight.png"
            border              = { 0, 12, 0, 0 }
            stretch             = TRUE
        }      
        image {
            function            = BOX
            recolorable         = TRUE
            state               = NORMAL
            file                = "gtk-breadcrumb-normal.png"
            border              = { 0, 12, 0, 0 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = ACTIVE
            file                = "gtk-breadcrumb-normal.png"
            border              = { 0, 12, 0, 0 }
            stretch             = TRUE
        }
        image {
            function            = BOX
            recolorable         = TRUE
            state               = INSENSITIVE
            file                = "gtk-breadcrumb-normal.png"
            border              = { 0, 12, 0, 0 }
            stretch             = TRUE
        }
        image
        {
            function            = BOX
            recolorable         = TRUE
            state               = SELECTED
            file                = "gtk-breadcrumb-normal.png"
            border              = { 0, 12, 0, 0 }
            stretch             = TRUE
        }
    }
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkHBox>.<GtkButton>"
    style "gtk-breadcrumbs"

style "gtk-breadcrumb-end" {
    xthickness = 0
    ythickness = 0

    GtkButton::inner-border = { 0, 12, 0, 0 }

    engine "pixmap" {
        image {
            function        = BOX
            file            = "gtk-breadcrumb-end.png"
            border          = { 0, 12, 0, 0 }
            stretch         = TRUE
        }
    }
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkHBox>.<GtkToggleButton>"
    style "gtk-breadcrumb-end"

style "gtk-breadcrumb-labels"  {
    font_name = "Droid Sans 8"

    fg[NORMAL]      = shade (0.3, "#DDD")
    fg[PRELIGHT]    = mix(0.3, "#71A7ED", "#222")
    fg[ACTIVE]      = shade (0.3, "#DDD")
    fg[SELECTED]    = mix(0.7, "#71A7ED", "#DDD")
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkHBox>.<GtkButton>.<GtkLabel>"
    style "gtk-breadcrumb-labels"
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#!sliders
style "gtk-slider" {
    GtkScale::slider-length         = 12
    GtkScale::slider-width          = 12
    GtkScale::trough-border         = 1
    GtkScale::trough-side-details   = 0
}
style "gtk-scale" {
    bg[NORMAL]      = shade (0.7, "#DDD")
    bg[PRELIGHT]    = shade (0.9, "#DDD")
    bg[SELECTED]    = mix(0.9, "#71A7ED", "#222")
    base[SELECTED]  = mix(0.9, "#71A7ED", "#222")
}
style "gtk-hscale" = "gtk-slider" {
    engine "pixmap" {
        image {
            function        = BOX
            detail          = "trough"
            file            = "gtk-scale.png"
            border          = { 4, 4, 0, 0 }

        }    
        image {
            function        = SLIDER
            overlay_file    = "gtk-knob.png"
            overlay_stretch = FALSE
        }
    }
}
style "gtk-vscale" = "gtk-slider" {
    engine "pixmap" {
        image {
            function        = BOX
            detail          = "trough"
            file            = "gtk-vscale.png"
            border          = { 0, 0, 4, 4 }
        }    
        image {
            function        = SLIDER
            overlay_file    = "gtk-knob.png"
            overlay_stretch = FALSE
        }
    }
}
widget_class "*<GtkEventBox>.*<GtkScale>"      style "gtk-vscale"
widget_class "*<GtkEventBox>.*<GtkHScale>"     style "gtk-hscale"
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#!widgets
widget_class "<GtkWindow>.<GtkVBox>*<GtkEventBox>*" style "gtk-colors"

style "gtk-panels" = "gtk-colors" {
    bg_pixmap[NORMAL] = "gtk-bg.png"    
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkHBox>.<GtkEventBox>" style "gtk-panels"

style "gtk-entry"  {
    xthickness = 0
    ythickness = 1
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkEntry>" style "gtk-entry"

style "gtk-labels" {
    font_name = "Droid Sans 8"

    fg[NORMAL] = shade (0.6, "#DDD")
}
widget_class "<GtkWindow>.<GtkVBox>.<GtkEventBox>*<GtkLabel>" style "gtk-labels"

style "gtk-status" {
    font_name = "Droid Sans 8"

    fg[NORMAL] = shade (0.5, "#DDD")
}
widget_class "*<GtkHBox>.<GtkEventBox>.<GtkHBox>.<GtkLabel>" style "gtk-status"

style "gtk-listview" {
    #font_name = "Droid Moospace 8"

    base[NORMAL]  = shade (1.1, "#DDD")
    bg[NORMAL]    = shade (1.1, "#DDD")
}
#widget_class "*<GtkTreeView>" style "gtk-listview"
#widget_class "*<GtkScrollbar>" style "gtk-listview"

style "gtk-treecolumns" {
    font_name = "Droid Sans 8"

    #bg[NORMAL]     = shade (1.0, "#DDD")
    fg[NORMAL]     = shade (0.4, "#DDD")
}
widget_class "*<GtkTreeView>*<GtkButton>*" style "gtk-treecolumns"

style "gtk-noresizegrip" {
    GtkWindow::resize-grip-height = 0
    GtkWindow::resize-grip-width  = 0
}
widget_class "<GtkWindow>*" style "gtk-noresizegrip"

widget_class "<GtkWindow>*"     style "gtk-colors"
widget_class "<GtkWindow>*"     style "gtk-labels"

widget_class "*<GtkScrollbar>"  style "gtk-commons"
widget_class "*<GtkTreeView>"   style "gtk-commons"
widget_class "*<GtkTextView>"   style "gtk-commons"

widget_class "*<GtkTreeView>*<GtkLabel>" style "gtk-labels"
