#################################################### 
# GTK NOTEBOOK (Multipage stuff)
#
# Copyright 2004,2005 Nokia Oyj
#
# BOX_GAP functions is used to draw the image for
# the opened page frame. This has two possible
# detail fields - "notebook" and "notebook_show_arrow".
# The "notebook" is used when the arrows to cycle
# through the tabs are not present and
# "notebook_show_arrow" is used when they are present.
#
#################################################### 

# Tabbed windows
style "osso-notebook"
{
  GtkNotebook::inner_left_border = 0
  GtkNotebook::inner_right_border = 0
  GtkNotebook::tab-overlap = 0
  GtkNotebook::arrow-spacing = 6
  GtkNotebook::label-padding = 12
  GtkWidget::scroll-arrow-hlength = 20
  GtkWidget::scroll-arrow-vlength = 30

  # Themings for images on different sides of the notebook.
  engine "sapwood"
  {
    # Top theming.
    image 
      {
        function = EXTENSION
	state    = ACTIVE
	file     = "../images/qgn_plat_notebook_tab_passive.png"
	border   = { 12, 12, 0, 0 }
	stretch  = TRUE
	gap_side = BOTTOM
      }
    image
      {
        function = EXTENSION
	file     = "../images/qgn_plat_notebook_tab_active.png"
	border   = { 12, 12, 0, 0 }
	stretch  = TRUE
	gap_side = BOTTOM
      }
    # Content area theming when arrows are not present.
    image
      {
        function = BOX_GAP
	detail   = "notebook"
        file     = "../images/qgn_plat_notebook_tab_area_border.png"
        border   = { 10, 10, 0, 20 }
        stretch  = TRUE
      }
    # Content area theming when arrows are present.
    image
      {
        function = BOX_GAP
	detail   = "notebook_show_arrow"
        file     = "../images/qgn_plat_notebook_tab_area_border_arrow_space.png"
        border   = { 38, 38, 10, 10 }
        stretch  = TRUE
      }
      
    # Arrows left
    image
      {
        function        = ARROW
        state           = INSENSITIVE
	arrow_direction = LEFT
	overlay_file    = "../images/qgn_plat_notebook_button_previous_disabled.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
    image
      {
        function        = ARROW
        shadow          = IN
	arrow_direction = LEFT
	overlay_file    = "../images/qgn_plat_notebook_button_previous_pressed.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
    image
      {
        function        = ARROW
        shadow          = OUT
	arrow_direction = LEFT
	overlay_file    = "../images/qgn_plat_notebook_button_previous.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
    
    # Arrows right
    image
      {
        function        = ARROW
        state           = INSENSITIVE
	arrow_direction = RIGHT
	overlay_file    = "../images/qgn_plat_notebook_button_next_disabled.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
    image
      {
        function        = ARROW
        shadow          = IN
	arrow_direction = RIGHT
	overlay_file    = "../images/qgn_plat_notebook_button_next_pressed.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
    image
      {
        function        = ARROW
        shadow          = OUT
	arrow_direction = RIGHT
	overlay_file    = "../images/qgn_plat_notebook_button_next.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = TRUE
      }
  }
}
class "GtkNotebook" style "osso-notebook"

widget_class "*.GtkNotebook.GtkLabel" style "osso-ButtonFont"
