####################################################################
#
# Geramik
#
#     -- Uses QtPixmap theme.
#
####################################################################

pixmap_path "/usr/share/themes/Geramik/gtk"
module_path "/usr/lib/gtk/themes/engines"

style "EventBox" {
    bg_pixmap[NORMAL]      = "<parent>"
    bg_pixmap[INSENSITIVE] = "<parent>"
    bg_pixmap[PRELIGHT]    = "<parent>"
    bg_pixmap[SELECTED]    = "<parent>"
    bg_pixmap[ACTIVE]      = "<parent>"
}

class "GtkEventBox" style "EventBox"

style "CheckRadioButton" {
    engine "qtpixmap" {
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            file            = "menu_hi-light.png"
            file_color      = "selected"
            file_color_mod  = 55 
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
        }
    }
}

class "GtkRadioButton" style "CheckRadioButton"
class "GtkCheckButton" style "CheckRadioButton"

style "ToggleButton" {
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            shadow          = IN
            file            = "button_down.png"
            file_color      = "button"
            file_color_mod  = 60
            border          = { 7, 7, 7, 7 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            shadow          = OUT
            file            = "button_normal.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 7, 7, 7, 7 }
            stretch         = TRUE
        }
    }
}

class "GtkToggleButton" style "ToggleButton"

style "Button" {
    engine "qtpixmap" {
        image {
        function        = BOX
        recolorable     = TRUE
        state           = NORMAL
        detail          = "buttondefault"
        shadow          = IN
        file            = "default_button_background.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
        }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = NORMAL
        shadow          = OUT
        file            = "button_normal.png"
	file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = PRELIGHT
        shadow          = IN
        file            = "button_highlight.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = PRELIGHT
        shadow          = OUT
        file            = "button_highlight.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = NORMAL
        shadow          = IN
        file            = "default_button_background.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 3, 3, 3, 3 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = INSENSITIVE
        shadow          = IN
        file            = "button_disabled.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = INSENSITIVE
        shadow          = OUT
        file            = "button_disabled.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = SELECTED
        shadow          = IN
        file            = "button_normal.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
    image
      {
        function        = BOX
        recolorable     = TRUE
        state           = ACTIVE
        shadow          = IN
        file            = "button_down.png"
        file_color      = "button"
        file_color_mod  = 30
        border          = { 7,7,7,7 }
        stretch         = TRUE
      }
   }
}

class "GtkButton" style "Button"

style "Notebook" {

    engine "qtpixmap" {
        image {
            function        = EXTENSION
            recolorable     = TRUE
            state           = ACTIVE
            file            = "tab_normal_top.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = BOTTOM
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            state           = ACTIVE
            file            = "tab_normal_bottom.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = TOP
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            state           = ACTIVE
            file            = "extension_active_right.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            gap_side        = RIGHT
        }
        image {
             function        = EXTENSION
             recolorable     = TRUE
             state           = ACTIVE
             file            = "extension_active_left.png"
             file_color      = "button"
             file_color_mod  = 30
             border          = { 2, 2, 2, 2 }
             stretch         = TRUE
             gap_side        = LEFT
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            file            = "tab_selected_top.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = BOTTOM
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            file            = "tab_selected_bottom.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = TOP
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            file            = "extension_right.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            gap_side        = RIGHT
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            file            = "extension_left.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            gap_side        = LEFT
        }
        
        ############################################
        # How to draw boxes with a gap on on side
        # (ie the page of a notebook)
        ############################################

        image {
            function        = BOX_GAP
            recolorable     = TRUE
            file            = "box_gap_top.png"
            border          = { 1, 1, 2, 1 }
            stretch         = TRUE 
            gap_file        = "box_gap_top_focus.png"
            gap_border      = { 1, 1, 0, 0 }
            gap_start_file  = "box_gap_top_start.png"
            gap_start_border= { 0, 0, 0, 1 }
            gap_end_file    = "box_gap_top_end.png"
            gap_end_border  = { 0, 0, 0, 1 }
            gap_side        = TOP
        }
        image {
            function        = BOX_GAP
            recolorable     = TRUE
            file            = "box_gap_bottom.png"
            border          = { 1, 1, 1, 2 }
            stretch         = TRUE
            gap_file        = "box_gap_bottom_focus.png"
            gap_border      = { 1, 1, 0, 0 }
            gap_start_file  = "box_gap_bottom_start.png"
            gap_start_border= { 0, 0, 1, 0 }
            gap_end_file    = "box_gap_bottom_end.png"
            gap_end_border  = { 0, 0, 1, 0 }
            gap_side        = BOTTOM
        }
        image {
            function        = BOX_GAP
            recolorable     = TRUE
            file            = "box_gap_left.png"
            border          = { 2, 1, 1, 1 }
            stretch         = TRUE
            gap_file        = "box_gap_left_focus.png"
            gap_border      = { 0, 0, 1, 1 }
            gap_start_file  = "box_gap_left_start.png"
            gap_start_border= { 0, 1, 0, 0 }
            gap_end_file    = "box_gap_left_end.png"
            gap_end_border  = { 0, 1, 0, 0 }
            gap_side        = LEFT
        }
        image {
            function        = BOX_GAP
            recolorable     = TRUE
            file            = "box_gap_right.png"
            border          = { 1, 2, 1, 1 }
            stretch         = TRUE
            gap_file        = "box_gap_right_focus.png"
            gap_border      = { 0, 0, 1, 1 }
            gap_start_file  = "box_gap_right_start.png"
            gap_start_border= { 1, 0, 0, 0 }
            gap_end_file    = "box_gap_right_end.png"
            gap_end_border  = { 1, 0, 0, 0 }
            gap_side        = RIGHT
        }

        ############################################
        # How to draw the box of a notebook when it 
        # is not attached to a tab
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            file            = "notebook_unattached.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            gap_side        = TOP
        }
    }
}

class "GtkNotebook" style "Notebook"

style "Menu" { 
    engine "qtpixmap" { 
        image {
            function        = BOX
            recolorable     = TRUE
            file            = "menu_background.png"
            file_color      = "window"
            file_color_mod =  25
            border          = { 1, 1, 1, 1 }
            stretch         = FALSE
            overlay_file    = "menu_shadow.png"
            overlay_file_color  = "window"
            overlay_border  = { 3, 3, 3, 3 }
            overlay_stretch = TRUE
       }
   }   
}       
    
class "GtkMenu" style "Menu"

style "MenuItem" {
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            file            = "menu_hi-light.png"
            file_color      = "selected"
            file_color_mod = 55 
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
        }
    }
}

class "GtkMenuItem" style "MenuItem"

style "MenuBar" {
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            file            = "menubar_background.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 1, 1, 1, 1 }
            stretch         = FALSE
        }
    }
}

class "GtkMenuBar" style "MenuBar"

style "OptionMenu" {
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            file            = "menubar_option.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 12, 28, 9, 10 }
            stretch         = TRUE
        }
    }
}

class "GtkOptionMenu" style "OptionMenu"

style "ProgressBar" {
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "bar"
            file            = "progressbar.png"
            file_color      = "selected"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough_horizontal.png"
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
    }
}

class "GtkProgressBar" style "ProgressBar"

style "Ruler" {     
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "vruler"
            file            = "ruler_vertical.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image { 
            function        = BOX
            recolorable     = TRUE
            detail          = "hruler"
            file            = "ruler_horizontal.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
    }   
}

class "GtkRuler" style "Ruler"

style "Window" {   
    engine "qtpixmap" {
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            file            = "window_background.png"
            file_color      = "window"
            file_color_mod = 10
            stretch         = FALSE
        }
    }
}

class "GtkWindow" style "Window"

style "Curve" {
    engine "qtpixmap" { 
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            detail          = "curve_bg"
            file            = "curve_background.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
    } 
}     
  
class "GtkCurve" style "Curve"

style "Default" {   
    engine "qtpixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "slider"
            state           = PRELIGHT
            file            = "scrollbar_horizontal_highlight.png"
            file_color      = "selected"
            border          = { 10, 10, 6, 7 }
            stretch         = TRUE
            orientation     = HORIZONTAL
            overlay_file    = "scrollbar_horizontal_thumb_highlight.png"
            overlay_file_color = "selected"
            overlay_stretch = FALSE
            file_color_mod = 70
            overlay_file_color_mod = 70
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "slider"
            file            = "scrollbar_horizontal.png"
            file_color      = "selected"
            border          = { 10, 10, 6, 7 }
            stretch         = TRUE
            orientation     = HORIZONTAL
            overlay_file    = "scrollbar_horizontal_thumb.png"
            overlay_file_color = "selected"
            overlay_stretch = FALSE
            file_color_mod = 70
            overlay_file_color_mod = 70
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "slider"
            state           = PRELIGHT
            file            = "scrollbar_vertical_highlight.png"
            file_color      = "selected"
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
            overlay_file    = "scrollbar_vertical_thumb_highlight.png"
            overlay_file_color = "selected"
            overlay_stretch = FALSE
            file_color_mod = 70
            overlay_file_color_mod = 70
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "slider"
            file            = "scrollbar_vertical.png"
            file_color      = "selected"
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
            overlay_file    = "scrollbar_vertical_thumb.png"
            overlay_file_color = "selected"
            overlay_stretch = FALSE
            file_color_mod = 70
            overlay_file_color_mod = 70
        }

        ############################################
        # Troughs 
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough_vertical.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough_horizontal.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }

        ############################################
        # Handlebox
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "handlebox_bin"
            file            = "button_normal.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }

        ############################################
        # Paned Widgets
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "paned"
            file            = "paned.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }

        ############################################
        # Tooltips 
        ############################################

        image { 
            function        = FLAT_BOX
            recolorable     = TRUE
            detail          = "tooltip"
            file            = "tooltip.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }

        ############################################
        # Selected text in entries, text widget, 
        # lists and trees 
        ############################################

        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            detail          = "viewportbin"
            file            = "background.png"
            stretch         = FALSE
        }

        ############################################
        # Arrows 
        ############################################

        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            file            = "arrow_up_normal.png"
            stretch         = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "arrow_up_normal.png"
            stretch         = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            file            = "arrow_up_clicked.png"
            stretch         = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            file            = "arrow_down_normal.png"
            stretch         = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "arrow_down_normal.png"
            stretch         = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            file            = "arrow_down_clicked.png"
            stretch         = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            file            = "arrow_left_normal.png"
            stretch         = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "arrow_left_normal.png"
            stretch         = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            file            = "arrow_left_clicked.png"
            stretch         = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            file            = "arrow_right_normal.png"
            stretch         = FALSE
            arrow_direction = RIGHT 
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "arrow_right_normal.png"
            stretch         = FALSE
            arrow_direction = RIGHT 
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            file            = "arrow_right_clicked.png"
            stretch         = FALSE
            arrow_direction = RIGHT 
        }

        ############################################
        # Hline and Vline Widgets 
        ############################################

        image {
            function        = HLINE
            recolorable     = TRUE
            file            = "horizontal_line.png"
            border          = { 0, 0, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = VLINE
            recolorable     = TRUE
            file            = "vertical_line.png"
            border          = { 1, 1, 0, 0 }
            stretch         = TRUE
        }

        ############################################
        # Check Marks 
        ############################################

        image {
            function        = CHECK
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "check_out.png" 
            file_color      = "button"
            file_color_mod  = 30
            overlay_stretch = FALSE
        }
        image {
            function        = CHECK
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "check_in.png" 
            file_color      = "button"
            file_color_mod  = 30
            overlay_stretch = FALSE
        }

        ############################################
        # Option Marks 
        ############################################

        image {
            function        = OPTION
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "option_out.png"
            overlay_file_color      = "button"
            overlay_file_color_mod  = 30
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }
        image {
            function        = OPTION
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "option_in.png"
            overlay_file_color      = "button"
            overlay_file_color_mod  = 30
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }

        ############################################
        # Scrollbars
        ############################################

        image {
            function        = SLIDER
            recolorable     = TRUE
            file            = "scrollbar_horizontal.png"
            file_color      = "selected"
            border          = { 10, 10, 6, 7 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            file            = "scrollbar_vertical.png"
            file_color      = "selected"
            border          = { 6, 7, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }

        ############################################
        # The Handle on Handleboxes
        ############################################

        image {
            function        = HANDLE
            recolorable     = TRUE
            file            = "handle_bar.png"
            file_color      = "button"
            file_color_mod  = 30
            border          = { 10, 5, 5, 10 }
            stretch         = TRUE
            overlay_file    = "handle_vert_thumb.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
            orientation     = VERTICAL
        }


        ############################################
        # How to draw shadows in general 
        ############################################

        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = IN
            file            = "shadow_in.png"
            border          = { 1, 1, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = OUT
            file            = "shadow_out.png"
            border          = { 1, 1, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = ETCHED_IN
            file            = "etched.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = ETCHED_OUT
            file            = "etched.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }

        ############################################
        # How to draw shadows with a gap on one side 
        ############################################

        image {
            function        = SHADOW_GAP
            recolorable     = TRUE
            file            = "frame_gap.png"
            border          = { 2, 2, 2, 2 }
            stretch         = FALSE
            gap_start_file  = "frame_gap_top_start.png"
            gap_start_border= { 0, 0, 1, 1 }
            gap_end_file    = "frame_gap_top_end.png"
            gap_end_border  = { 0, 2, 1, 1 }
            gap_side        = TOP
        }

        ############################################
        # How to draw boxes that have not already
        # been covered
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            shadow          = IN
            file            = "other_box.png"
            file_color      = "button"
            file_color_mod = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            file            = "other_box.png"
            file_color      = "button"
            file_color_mod = 30
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
    }
}

class "GtkWidget" style "Default"
