#################################################### 
# GTK CHECKBUTTON
#
# Copyright 2004,2005 Nokia Oyj
#
# TODO : Check whether the focus is needed.
#
# This file has the themeing of check buttons.
# The shadow IN or OUT state specifies whether
# the check box is actually checked.
#
# Shadow ETCHED_IN state is used for indeterminate
# check box state.
#
#################################################### 

style "osso-checkbutton"
{
  GtkCheckButton::indicator-size = 26
  GtkCheckButton::indicator-spacing = 2
  
  ythickness = 0

  engine "sapwood"
  {
    image
    {
      function        = CHECK
      shadow          = OUT
      state           = NORMAL
      overlay_file    = "../images/qgn_plat_check_box_empty_normal.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = IN
      state           = NORMAL
      overlay_file    = "../images/qgn_plat_check_box_selected_normal.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = OUT
      state           = PRELIGHT
      overlay_file    = "../images/qgn_plat_check_box_empty_normal.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = IN
      state           = PRELIGHT
      overlay_file    = "../images/qgn_plat_check_box_selected_normal.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = OUT
      state           = ACTIVE
      overlay_file    = "../images/qgn_plat_check_box_empty_focused.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = IN
      state           = ACTIVE
      overlay_file    = "../images/qgn_plat_check_box_selected_focused.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = OUT
      state           = SELECTED
      overlay_file    = "../images/qgn_plat_check_box_empty_focused.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = IN
      state           = SELECTED
      overlay_file    = "../images/qgn_plat_check_box_selected_focused.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = OUT
      state           = INSENSITIVE
      overlay_file    = "../images/qgn_plat_check_box_empty_disabled.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      shadow          = IN
      state           = INSENSITIVE
      overlay_file    = "../images/qgn_plat_check_box_selected_disabled.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
    }
    image
    {
      function        = CHECK
      overlay_file    = "../images/qgn_plat_check_box_indeterminate_disabled.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
      shadow          = ETCHED_IN
      state           = INSENSITIVE
    }
    image
    {
      function        = CHECK
      overlay_file    = "../images/qgn_plat_check_box_indeterminate_normal.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
      shadow          = ETCHED_IN
    }
    image
    {
      function        = CHECK
      overlay_file    = "../images/qgn_plat_check_box_indeterminate_focused.png"
      overlay_border  = { 0, 0, 0, 0 }
      overlay_stretch = TRUE
      shadow          = ETCHED_IN
      state= ACTIVE
    }
    image
    {
      function        = FOCUS
      file    	       = "../images/qgn_plat_focus_active.png"
      border  	       = { 2, 2, 2, 2 }
      stretch 	       = TRUE
    }
  }
}
class "GtkCheckButton" style "osso-checkbutton"

widget_class "*.GtkCheckButton.GtkLabel" style "osso-SystemFont"
