# 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.



##############################
# Keyboard
##############################

#input method window top and left frame
style "osso-input-method-frame"
{
  engine "sapwood" {
    image {
      function = BOX
	state = NORMAL
	detail = "osso-im-frame-top"
	file = "../images/qgn_plat_inputmet_buffer_zone_top.png"
	stretch = TRUE
    }
    image {
      function = BOX
	state = NORMAL
	detail = "osso-im-frame-left"
	file = "../images/qgn_plat_inputmet_buffer_zone_left.png"
	border = {0, 0, 25, 0}
	stretch = TRUE
    }
  }
}
class "OssoIMKeyboard" style "osso-input-method-frame"

#common control buttons
style "osso-input-method-side-button"
{
    engine "sapwood"
    {
        image
        {
            function = BOX
	    state = NORMAL
            file = "../images/qgn_plat_inputmet_button_side_normal.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
	image
        {
            function = BOX
	    state = PRELIGHT
	    shadow = IN
            file = "../images/qgn_plat_inputmet_button_side_pressed.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
	image
        {
            function = BOX
	    state = PRELIGHT
	    shadow = OUT
            file = "../images/qgn_plat_inputmet_button_side_normal.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = ACTIVE
            file = "../images/qgn_plat_inputmet_button_side_pressed.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = SELECTED
            file = "../images/qgn_plat_inputmet_button_side_pressed.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
	    state = INSENSITIVE
            file = "../images/qgn_plat_inputmet_button_side_disabled.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
    }
}
widget "*OssoIMSideButton*" style "osso-input-method-side-button"

#common control toggle buttons
style "osso-input-method-side-toggle-button"
{
    engine "sapwood"
    {
        image
        {
            function = BOX
	    state = NORMAL
            file = "../images/qgn_plat_inputmet_button_side_normal.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
	    state = PRELIGHT
	    shadow = OUT
            file = "../images/qgn_plat_inputmet_button_side_normal.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
	    state = PRELIGHT
	    shadow = IN
            file = "../images/qgn_plat_inputmet_button_side_latched.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = ACTIVE
	    shadow = OUT
            file = "../images/qgn_plat_inputmet_button_side_pressed.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
	}
        image
        {
            function = BOX
	    state = ACTIVE
	    shadow = IN
            file = "../images/qgn_plat_inputmet_button_side_latched.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = SELECTED
            file = "../images/qgn_plat_inputmet_button_side_latched.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
	}
        image
        {
            function = BOX
	    state = INSENSITIVE
            file = "../images/qgn_plat_inputmet_button_side_disabled.png"
            border = { 4, 4, 0, 0 }
            stretch = TRUE
        }
    }
}
widget "*OssoIMSideToggleButton*" style "osso-input-method-side-toggle-button"

#ordinary keys in vkb and special character view
style "osso-input-method-vkb-key" 
{
    GtkButton::child_spacing = 0
    engine "sapwood"
    {
        image
        {
            function = BOX
	    state = NORMAL
            file = "../images/qgn_plat_inputmet_button_key_normal.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = PRELIGHT
            file = "../images/qgn_plat_inputmet_button_key_normal.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = INSENSITIVE
            file = "../images/qgn_plat_inputmet_button_key_disabled.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = ACTIVE
            file = "../images/qgn_plat_inputmet_button_key_pressed.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
    }
}
widget "*osso-im-alpha*" style "osso-input-method-vkb-key"
widget "*osso-im-numeric*" style "osso-input-method-vkb-key"
widget "*osso-im-special*" style "osso-input-method-vkb-key"
widget "*osso-im-space*" style "osso-input-method-vkb-key"
widget "*osso-im-key*" style "osso-input-method-vkb-key"
widget "*osso-im-tele*" style "osso-input-method-vkb-key"
widget "*osso-im-dim*" style "osso-input-method-vkb-key"
			  
#accent dead keys in vkb
style "osso-input-method-accent-key"
{
    engine "sapwood"
    {
        image
        {
            function = BOX
	    state = NORMAL
            file = "../images/qgn_plat_inputmet_button_key_accent_normal.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = PRELIGHT
            file = "../images/qgn_plat_inputmet_button_key_accent_normal.png"
	    border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = ACTIVE
            file = "../images/qgn_plat_inputmet_button_key_pressed.png"
	    border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = SELECTED
            file = "../images/qgn_plat_inputmet_button_key_pressed.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
	}
    }
}
widget "*osso-im-accent*" style "osso-input-method-accent-key"

#special character view tabs
style "osso-input-special-character-view-tabs"
{
  engine "sapwood"
  {
    image 
      {
        function = EXTENSION
	state    = NORMAL
	file     = "../images/qgn_plat_inputmet_tab_special_character_normal.png"
	border   = { 5, 5, 0, 0}
	stretch  = TRUE
	gap_side = BOTTOM
      }
    image
      {
        function = EXTENSION
	state    = ACTIVE
	file     = "../images/qgn_plat_inputmet_tab_special_character_selected.png"
	border   = { 5, 5, 0, 0 }
	stretch  = TRUE
	gap_side = BOTTOM
      }
  }
}
widget "*osso-input-method-special-character-view*" style "osso-input-special-character-view-tabs"

#hwr area logical colors
class "*HildonHWRArea*" style "osso-logical-colors"

#hwr area mixmode background color
style "osso-input-method-hwr-area-mixmode-background" = "osso-logical-colors"
{
  bg[NORMAL] = "HWRAlphaBackgrdColor"
}
widget "*hildonhwrarea_mix*" style "osso-input-method-hwr-area-mixmode-background"

#hwr area punctuationmode background color
style "osso-input-method-hwr-area-puncmode-background" = "osso-logical-colors"
{
  bg[NORMAL] = "HWRPunctBackgrdColor" 
}
widget "*hildonhwrarea_pun*" style "osso-input-method-hwr-area-puncmode-background"

#hwr frame image
style "osso-input-method-hwr-frame"
{
    engine "sapwood"
    {
        image
        {
            function = BOX
            file = "../images/qgn_plat_inputmet_pane_border.png"
            border = { 2, 2, 2, 2 }
            stretch = TRUE
        }
    }
}
widget "*OssoIMHWRFrame*" style "osso-input-method-hwr-frame"

#word completion maximum length
style "osso-input-method-word-completion"
{
  # 408/491 pixels in normal/fullscreen. 105 pixels for space bar
  HildonWordCompletion::max-width = 303
  HildonWordCompletion::max-width-fs = 386
}
class "*HildonWordCompletion*" style "osso-input-method-word-completion"

#word completion prefix button 
style "osso-input-method-word-completion-prefix-button"
{
  engine "sapwood"
    {
      image
	{
	  function = BOX
	    state = NORMAL
	    file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_prefix_normal.png"
	    border = { 5, 5, 0, 0 }
	  stretch = TRUE
	}
      image
	{
	  function = BOX
	    state = PRELIGHT
	    file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_prefix_normal.png"
	    border = { 5, 5, 0, 0 }
	  stretch = TRUE
	}
      image
	{
	  function = BOX
	    state = ACTIVE
	    file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_pressed.png"
	    border = { 5, 5, 0, 0 }
	  stretch = TRUE
	}
    }
}
widget "*hildon-wc-prefix-button*" style "osso-input-method-word-completion-prefix-button"

#word completion candidate buttons
style "osso-input-method-word-completion-candidates"
{
    engine "sapwood"
    {
        image
        {
            function = BOX
	    state = NORMAL
            file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_normal.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
	    state = PRELIGHT
            file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_normal.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
        image
        {
            function = BOX
            state = ACTIVE
            file = "../images/qgn_plat_inputmet_button_keyboard_word_compl_pressed.png"
            border = { 5, 5, 0, 0 }
            stretch = TRUE
        }
    }
}
widget "*hildon-wc-candidate-button*" style "osso-input-method-word-completion-candidates"
