# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
pixmap_path "/usr/include/X11R6/pixmaps:./"
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

# Here is a list of all the possible states.  Note that some do not apply to
# certain widgets.
#
# NORMAL - The normal state of a widget, without the mouse over top of
# it, and not being pressed, etc.
#
# PRELIGHT - When the mouse is over top of the widget, colors defined
# using this state will be in effect.
#
# ACTIVE - When the widget is pressed or clicked it will be active, and
# the attributes assigned by this tag will be in effect.
#
# INSENSITIVE - When a widget is set insensitive, and cannot be
# activated, it will take these attributes.
#
# SELECTED - When an object is selected, it takes these attributes.
#
# Given these states, we can set the attributes of the widgets in each of
# these states using the following directives.
#
# fg - Sets the foreground color of a widget.
# fg - Sets the background color of a widget.
# bg_pixmap - Sets the background of a widget to a tiled pixmap.
# font - Sets the font to be used with the given widget.
#

# This sets a style called "button".  The name is not really important, as
# it is assigned to the actual widgets at the bottom of the file.


style "review-button" {

  GtkWidget::focus-line-pattern = "\0\0\0\0\0\0\0\0"
  GtkWidget::focus-width = 0
  GtkButton::default_border = { 0, 0, 0, 0 }
  GtkButton::child-displacement-x = 0
  GtkButton::child-displacement-y = 0
  GtkButton::interior_focus = 0
  GtkButton::child_spacing = 0
  xthickness = 7
  ythickness = 0

  engine "sapwood" {

    image {
        function = FOCUS
	state    = ACTIVE
    }

    image {
        function = FOCUS
	file     = "textarea.png"
	border   = { 16, 16, 15, 15 }
    }

    image {
	function = BOX
	file     = "textarea.png"
  	border   = { 16, 16, 15, 15 }
    }

  }
}

style "getanswerarea-button" {

  GtkWidget::focus-line-pattern = "\0\0\0\0\0\0\0\0"
  GtkWidget::focus-width = 0
  GtkButton::default_border = { 0, 0, 0, 0 }
  GtkButton::child-displacement-x = 0
  GtkButton::child-displacement-y = 0
  GtkButton::interior_focus = 0
  GtkButton::child_spacing = 0
  xthickness = 7
  ythickness = 0

  engine "sapwood" {

    image {
        function = FOCUS
	state    = ACTIVE
    }

    image {
        function = FOCUS
	file     = "getanswerarea.png"
	border   = { 15, 15, 15, 15 }
	
    }

    image {
	function = BOX
	    file     = "getanswerarea.png"
  	border   = { 15, 15, 15, 15 }
  	
    }

  }
}



style "question_answer_frame" {
#  xthickness = 8
#  ythickness = 8
  
  engine "sapwood" {
    image {
	function = BOX
	file     = "textarea.png"
	border   = { 16, 16, 15, 15 }
    }
  }
}


#------ fonts styles -------------
style "review-title-label" {
	font_name = "Nokia Sans 16.0"
	fg[NORMAL] = "#c2c1bf"
}

style "review-answer-label" {
	font_name = "Nokia Sans 25.0"
	fg[NORMAL] = "#000000"
}

style "review-question-label" {
	font_name = "Nokia Sans 25.0"
	fg[NORMAL] = "#000000"
}

style "review-getanswer-label" {
	font_name = "Nokia Sans 40.0"
	fg[NORMAL] = "#FFFFFF"
	fg[ACTIVE] = "#FFFFFF"
	fg[PRELIGHT] = "#FFFFFF"
}

style "button-label" {
	font_name = "Nokia Sans 20.0"
	fg[NORMAL] = "#FFFFFF"
	fg[PRELIGHT] = "#FFFFFF"
	fg[SELECTED] = "#FFFFFF"
}

style "info-window-label" {
	font_name = "Nokia Sans 17.0"
	fg[NORMAL] = "#000000"
}

style "question-window-label" {
	font_name = "Nokia Sans 17.0"
	fg[NORMAL] = "#000000"
}


style "mainwindow"
{
   engine "sapwood"
    {
        image
         {
          function = FLAT_BOX
          file = "background.png"
          border = {359, 359, 215, 215}
          detail = "base"
          }
     }
}


style "dialogwindow"
{
    engine "pixmap"    
    {
        image
        {
            function = FLAT_BOX
            file = "dialogbkg.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}

style "nothing"
{
  GtkNotebook::inner_left_border = 0
  GtkNotebook::inner_right_border = 0
  GtkNotebook::tab-overlap = 0
  GtkNotebook::arrow-spacing = 6
  GtkNotebook::label-padding = 2

  # Themings for images on different sides of the notebook.
  engine "sapwood"
  {
    image
      {
        function = BOX
        detail   = "notebook"
        border   = { 0, 0, 0, 0 }
        file     = "nothing.png"
      }
  }
}

style "nothingviewport"
{

    xthickness = 0
    ythickness = 0
    GtkScrolledWindow ::scrollbars-within-bevel = 0
    GtkScrolledWindow ::scrollbar-spacing = 0
    GtkScrolledWindow ::inner_left_border = 0
    GtkScrolledWindow ::inner_right_border = 0

    engine "sapwood"
    {
       image
        {
            function = SHADOW
            file = "nothing.png"
            border = {0, 0, 0, 0}
         }
      image
      {
        function = BOX
        border   = { 0, 0, 0, 0 }
        file     = "nothing.png"
      }
    }
}


style "spliter-paned"  {

    GtkPaned::handle_size = 1

    engine "sapwood"
    {
        image
        {
            function    = HANDLE
            file        = "nothing.png"
            overlay_file= "nothing.png"
            orientation = HORIZONTAL
            border      = {0,0,0,0}
            overlay_stretch = TRUE
        }
    }
}


style "warning-notebook"
{
  GtkNotebook::inner_left_border = 0
  GtkNotebook::inner_right_border = 0
  GtkNotebook::tab-overlap = 0
  GtkNotebook::arrow-spacing = 6
  GtkNotebook::label-padding = 2

  # Themings for images on different sides of the notebook.
  engine "sapwood"
  {
    image
      {
        function = BOX
	detail   = "notebook"
          file = "warning_window.png"
          border = {30, 30, 75, 75}
      }
  }
}

style "input-combobox-entry-entry" {

  engine "sapwood"
    {
      image
        {
	  function = SHADOW
	  state    = INSENSITIVE
  	  file = "comboboxarea.png"
	  border   = { 10, 10, 15, 15 }
	}
      image
        {
	  function = FLAT_BOX
        }
      image
        {
	  function = SHADOW
 	  file = "comboboxarea.png"
 	  border   = { 10, 10, 15, 15 }
	}
    }
}
style "input-combobox-entry-button-down" {

	engine "sapwood" {
		image {
			function = FOCUS
		}
		image {
			function = BOX
			file = "combobox_right_bottom.png"
			state = INSENSITIVE
			border = { 10, 10, 15, 15 }
		}
		image {
			function = BOX
			file = "combobox_right_bottom.png"
			border = { 10, 10, 15, 15 }
		}
		image {
			function = TAB
		}
	}
}


style "theme-button" {

  GtkWidget::focus-line-pattern = "\0\0\0\0\0\0\0\0"
  GtkWidget::focus-width = 0
  GtkButton::default_border = { 0, 0, 0, 0 }
  GtkButton::child-displacement-x = 0
  GtkButton::child-displacement-y = 0
  GtkButton::interior_focus = 0
  GtkButton::child_spacing = 0
  xthickness = 7
  ythickness = 0

  engine "pixmap" {

    image {
        function = FOCUS
	state    = ACTIVE
    }

    image {
        function = FOCUS
	file     = "button_theme.png"
	border   = { 20, 20, 20, 20}
    }

    image {
	function = BOX
	file     = "button_theme.png"
	border   = { 20, 20, 20, 20 }
    }

  }
}


widget "*.button_answer" style "review-button"
widget "*.button_getanswer" style "getanswerarea-button"
widget "*.title_label" style "review-title-label"
widget "*.answer" style "nothingviewport"
widget "*.answer_text" style "review-answer-label"
widget "*.question" style "nothingviewport"
widget "*.question_text" style "review-question-label"
widget "*.button_getanswer.GtkLabel" style "review-getanswer-label"
widget "*.button_question" style "review-button"
widget "*.switcher" style "nothing"
widget "*.spliter" style "spliter-paned"
widget "*.answer_frame" style "question_answer_frame"
widget "*.question_frame" style "question_answer_frame"
widget "*.additional" style "theme-button"
widget "*.additionallabel" style "button-label"
widget "*.addcardlabel" style "button-label"
widget_class "*.<GtkComboBoxEntry>.GtkEntry" style  "input-combobox-entry-entry"
widget_class "*.<GtkComboBoxEntry>.GtkToggleButton" style "input-combobox-entry-button-down"
widget "*.label_warning" style "review-question-label"
widget "*.label_ok" style "review-question-label"
widget "*.notebook_wwindows" style "nothing"
widget "*.review" style "theme-button"
widget "*.input" style "theme-button"
widget "*.configure" style "theme-button"
widget "*.exit" style "theme-button"
widget "*.review.GtkLabel" style "button-label"
widget "*.input.GtkLabel" style "button-label"
widget "*.configure.GtkLabel" style "button-label"
widget "*.exit.GtkLabel" style "button-label"
widget "warningwindow" style "mainwindow"
widget "window" style "mainwindow"

widget "question_dialog" style "dialogwindow"
widget "warning_dialog" style "dialogwindow"
widget "information_dialog" style "dialogwindow"
widget "*.questionwindow_button_yes" style "review-button"
widget "*.questionwindow_button_no" style "review-button"
widget "*.questionwindow_label" style "question-window-label"

widget "infowindow" style "dialogwindow"
widget "*.infowindow_button_ok" style "review-button"
widget "*.infowindow_label" style "info-window-label"

widget "*.button_back" style "theme-button"
widget "*.button_back.GtkLabel" style "button-label"



style "input-combobox-entry-arrow"
{
  engine "sapwood"
    {
      image 
        {
          function = ARROW
          state = ACTIVE
          overlay_file = "input_arrow_down.png"
          overlay_stretch = FALSE
        }
      image
        {
          function = ARROW
          state = NORMAL
          overlay_file = "input_arrow_down.png"
          overlay_stretch = FALSE
        }
      image
        {
          function = ARROW
          state    = INSENSITIVE
          overlay_file = "input_arrow_down.png"
          overlay_stretch = FALSE
        }
    }
}

widget_class "*.<GtkComboBoxEntry>.GtkToggleButton.GtkArrow" style "input-combobox-entry-arrow"


style "config-checkboxes" {
    engine "pixmap" {}
    GtkCheckButton::indicator-size = 45
    GtkCheckButton::indicator-spacing = 8
}

style "config-checkbox-label" {
    font_name = "Nokia Sans 13"
}
widget "*.checkbox_fullscreen_mode" style "config-checkboxes"
widget "*.checkbox_start_in_review_mode" style "config-checkboxes"
widget "*.checkbox_fullscreen_mode.GtkLabel" style "config-checkbox-label"
widget "*.checkbox_start_in_review_mode.GtkLabel" style "config-checkbox-label"
widget "*.config_mode_label_theme" style "config-checkbox-label"

style "config-scales" {
    GtkScale::slider-length = 60
    GtkScale::slider-width = 40
    GtkScale::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            orientation = HORIZONTAL
            file = "textarea.png"
            border = {12,12,12,12}
            stretch = TRUE
        }
        image {
            function = SLIDER
            orientation = HORIZONTAL
            file = "textarea.png"
            border = {12,12,12,12}
            stretch = TRUE
        }
    }
}
widget "*.font_size_slider" style "config-scales"

style "config-textsize-label" {
    font_name = "Nokia Sans Bold 12"
}
widget "*.label_text_size" style "config-textsize-label"

style "button-back" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "exit_big.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.to_main_menu_input" style "button-back"
widget "*.to_main_menu" style "button-back"

style "config-button-theme" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
        function = BOX
        file = "theme_button.png"
        border = {0,0,0,0}
        stretch = TRUE
        }
    }
}
widget "*.config_mode_button_theme" style "config-button-theme"



style "delete-card" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "delete_big.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.delete_card" style "delete-card"
widget "*.delete_car" style "delete-card"

style "add-card" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "add_big.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.addcard" style "add-card"
widget "*.to_input" style "add-card"

style "edit-card" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "edit_big.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.edit_card" style "edit-card"

style "grade0" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_0.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade0" style "grade0"

style "grade1" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_1.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade1" style "grade1"

style "grade2" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_2.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade2" style "grade2"

style "grade3" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_3.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade3" style "grade3"

style "grade4" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_4.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade4" style "grade4"

style "grade5" {
    GtkButton::focus-line-width = 0
    engine "pixmap" {
        image {
            function = BOX
            file = "button_5.png"
            border = {0,0,0,0}
            stretch = TRUE
        }
    }
}
widget "*.grade5" style "grade5"
