# This file is part of sdk-default-theme-config
# 
# Copyright (C) 2005 Nokia Corporation.
# 
# Contact: Ferenc Szekely <ferenc.szekely@nokia.com> 
# 
# This work is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 2.0 License.
# To view a copy of this license,
# visit http://creativecommons.org/licenses/by-nc-sa/2.0/
# or send a letter to Creative Commons,
# 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.


#################################################### 
# GTK CHECKBUTTON
#
# 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"

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