
style "basic_layout"
{
    xthickness = 0
    ythickness = 0

    font_name = "DIN Next LT Pro 12"

    GtkWidget::focus-line-width                  = 1
    GtkWidget::focus-padding                     = 1
    GtkWidget::focus-line-pattern                = "\1\1"
    GtkWidget::interior-focus                    = 1
    GtkWidget::internal-padding                  = 0
    GtkWidget::draw-border                       = {0, 0, 0, 0}
    GtkWidget::scroll-arrow-hlength              = 20
    GtkWidget::scroll-arrow-vlength              = 20
    GtkWidget::separator-height                  = 20
    GtkWidget::separator-width                   = 20
    GtkWidget::wide-separators                   = 0

    GtkScrolledWindow::scrollbar-spacing         = 0
    GtkScrolledWindow::scrollbars-within-bevel   = 0

    GtkDialog::action-area-border                = 0
    GtkDialog::button-spacing                    = 10
    GtkDialog::content-area-border               = 0
    GtkDialog::content-area-spacing              = 0

    GtkMessageDialog::message-border             = 20
    GtkMessageDialog::use-separator              = 0

    GtkButtonBox::child-internal-pad-x           = 0
    GtkButtonBox::child-internal-pad-y           = 0
    GtkButtonBox::child-min-heigth               = 40
    GtkButtonBox::child-min-width                = 40

    GtkButton::child-displacement-x              = 0
    GtkButton::child-displacement-y              = 1
    GtkButton::default-border                    = {0, 0, 0, 0}
    GtkButton::default-outside-border            = {0, 0, 0, 0}
    GtkButton::inner-border                      = {5, 5, 5, 5}
    GtkButton::displace-focus                    = 0
    GtkButton::image-spacing                     = 0
    GtkButton::focus-line-pattern                = "\1\1"

    GtkCheckButton::indicator-size               = 13
    GtkCheckButton::indicator-spacing            = 5

    GtkRadioButton::indicator-size               = 10
    GtkRadioButton::indicator-spacing            = 10

    GtkSpinButton::shadow-type                   = GTK_SHADOW_NONE

    GtkToolButton::icon-spacing                  = 5

    GtkEntry::icon-prelight                      = 1
    GtkEntry::inner-border                       = {10, 10, 10, 10}
    #GtkEntry::invisible-char                    = ""
    GtkEntry::progress-border                    = {5, 5, 5, 5}
    GtkEntry::state-hint                         = 1

    GtkExpander::expander-size                   = 10
    GtkExpander::expander-spacing                = 10

    GtkMenuBar::internal-padding                 = 0
    GtkMenuBar::shadow-type                      = GTK_SHADOW_NONE

    GtkMenu::horizontal-padding                  = 0
    GtkMenu::vertical-padding                    = 5
    GtkMenu::horizontal-offset                   = 0
    GtkMenu::vertical-offset                     = 0
    GtkMenu::double-arrows                       = 1
    GtkMenu::arrow-placement                     = GTK_ARROWS_BOTH
    GtkMenu::arrow-scaling                       = 0.7

    GtkMenuItem::horizontal-padding              = 10
    GtkMenuItem::toggle-spacing                  = 10
    GtkMenuItem::selected-shadow-type            = GTK_SHADOW_NONE

    GtkCheckMenuItem::indicator-size             = 20

    GtkSeparatorMenuItem::horizontal-padding     = 5
    GtkSeparatorMenuItem::vertical-padding       = 5
    GtkSeparatorMenuItem::separator-width        = 1
    GtkSeparatorMenuItem::separator-height       = 1
    GtkSeparatorMenuItem::wide-separators        = 1

    GtkOptionMenu::indicator-size                = {20, 20}
    GtkOptionMenu::indicator-spacing             = {10, 10, 10, 10}

    GtkComboBox::appears-as-list                 = 0
    GtkComboBox::arrow-size                      = 20
    GtkComboBox::shadow-type                     = GTK_SHADOW_NONE

    GtkPaned::handle-size                        = 10

    GtkScrollbar::has-forward-stepper            = 0
    GtkScrollbar::has-backward-stepper           = 0
    GtkScrollbar::has-secondary-forward-stepper  = 0
    GtkScrollbar::has-secondary-backward-stepper = 0
    GtkScrollbar::min-slider-width               = 20
    GtkScrollbar::min-slider-length              = 20
    GtkScrollbar::trough-border 		         = 0
    GtkScrollbar::activate-slider 		         = 0

    GtkScrolledWindow::scrollbar-spacing         = 0
    GtkScrolledWindow::scrollbar-within-bevel    = 1
    GtkScrolledWindow::shadow-type               = GTK_SHADOW_NONE

    GtkStatusbar::shadow-type                    = GTK_SHADOW_NONE

    GtkTextView::focus-line-pattern              = "\0"

    GtkToolbar::button-relief                    = GTK_RELIEF_NONE
    GtkToolbar::internal-padding                 = 0
    GtkToolbar::shadow-type                      = GTK_SHADOW_NONE
    GtkToolbar::space-size                       = 10
    GtkToolbar::space-style                      = GTK_TOOLBAR_SPACE_NONE

    GtkTreeView::allow-rules                     = 1
    GtkTreeView::expander-size                   = 12
    GtkTreeView::grid-line-pattern               = "\1\1"
    GtkTreeView::grid-line-width                 = 1
    GtkTreeView::indent-expanders                = 1
    GtkTreeView::tree-line-pattern               = "\1\1"
    GtkTreeView::tree-line-width                 = 1
    GtkTreeView::horizontal-separator            = 5
    GtkTreeView::vertical-separator              = 5

    GtkArrow::arrow-scaling = 0.7

    GtkNotebook::arrow-spacing                   = 0
    GtkNotebook::has-backward-stepper            = 1
    GtkNotebook::has-forward-stepper             = 1
    GtkNotebook::has-secondary-backward-stepper  = 0
    GtkNotebook::has-secondary-forward-stepper   = 0
    GtkNotebook::tab-curvature                   = 0
    GtkNotebook::tab-overlap                     = 0

    engine "" {
        # engine specific settings go here
    }
}

class "GtkWidget" style : highest "basic_layout"

gtk_color_scheme = "background_space:#1e2328"
gtk_color_scheme = "background_menu:#191e23"
gtk_color_scheme = "background_widgets:#282d32"
gtk_color_scheme = "background_inner_widgets:#30353a"
gtk_color_scheme = "background_table_widgets:#383d42"

gtk_color_scheme = "text_default:#ffffff"
gtk_color_scheme = "text_title:#ffffff"
gtk_color_scheme = "text_inactive:#8f9194"
gtk_color_scheme = "text_label:#7e8184"
gtk_color_scheme = "text_inverted:#1d2227"

gtk_color_scheme = "input_background:#44494d"
gtk_color_scheme = "input_background_active:#7c858c"
gtk_color_scheme = "input_border:#3a3e43"

gtk_color_scheme = "button_background:#3a3e43"
gtk_color_scheme = "button_background_inactive:#44494d"
gtk_color_scheme = "button_border:#626569"

gtk_color_scheme = "pane:#454a4e"

gtk_color_scheme = "accent:#2c90ff"

gtk_color_scheme = "scrollbar_background:#454a4e"
gtk_color_scheme = "scrollbar_scroller:#282d32"
gtk_color_scheme = "scrollbar_scroller_active:#2c90ff"
gtk_color_scheme = "scrollbar_scroller_active_decent:#44494d"

gtk_color_scheme = "red:#dd0000"
gtk_color_scheme = "green:#00dd00"
gtk_color_scheme = "blue:#0000dd"
gtk_color_scheme = "yellow:#dddd00"


style "test-style"
{
    # Background color of text widgets and lists.
    base[ACTIVE]      = @red
    base[INSENSITIVE] = @red
    base[NORMAL]      = @red
    base[PRELIGHT]    = @red
    base[SELECTED]    = @red

    # Background color. This is the background color of windows and buttons.
    bg[ACTIVE]        = @green
    bg[INSENSITIVE]   = @green
    bg[NORMAL]        = @green
    bg[PRELIGHT]      = @green
    bg[SELECTED]      = @green

    # Foreground color. Used for text on buttons. Also used for the button borders in some engines.
    fg[ACTIVE]        = @blue
    fg[INSENSITIVE]   = @blue
    fg[NORMAL]        = @blue
    fg[PRELIGHT]      = @blue
    fg[SELECTED]      = @blue

    # Text color for text input widgets and lists
    text[ACTIVE]      = @yellow
    text[INSENSITIVE] = @yellow
    text[NORMAL]      = @yellow
    text[PRELIGHT]    = @yellow
    text[SELECTED]    = @yellow
}


style "basic-colors"
{
    # Background color of text widgets and lists.
    base[ACTIVE]      = @input_background_active
    base[INSENSITIVE] = @input_background
    base[NORMAL]      = @input_background
    base[PRELIGHT]    = @input_background
    base[SELECTED]    = @accent

    # Background color. This is the background color of windows and buttons.
    bg[ACTIVE]        = @background_widgets
    bg[INSENSITIVE]   = @background_widgets
    bg[NORMAL]        = @background_widgets
    bg[PRELIGHT]      = @background_widgets
    #bg[SELECTED]      = @background_widgets

    # Foreground color. Used for text on buttons. Also used for the button borders in some engines.
    fg[ACTIVE]        = @text_default
    fg[INSENSITIVE]   = @text_default
    fg[NORMAL]        = @text_default
    fg[PRELIGHT]      = @text_default
    fg[SELECTED]      = @text_default

    # Text color for text input widgets and lists
    text[ACTIVE]      = @text_default
    text[INSENSITIVE] = @text_inactive
    text[NORMAL]      = @text_default
    text[PRELIGHT]    = @text_default
    text[SELECTED]    = @text_default
}

class "GtkWidget" style : highest "basic-colors"


style "rafcon-toolbar" {
    bg[NORMAL]        = @background_menu
}
widget "*.toolbar*" style : highest "rafcon-toolbar"
widget "*.top_menu_hbox.*" style : highest "rafcon-toolbar"


style "widget-colors" {
    bg[INSENSITIVE]   = @background_inner_widgets
    bg[NORMAL]        = @background_inner_widgets
}
widget_class "*.<GtkNotebook>.*" style : highest "widget-colors"


style "rafcon-notebook" {
    bg[ACTIVE]        = @background_widgets
    bg[INSENSITIVE]   = @button_background_inactive
    bg[NORMAL]        = @accent
    bg[PRELIGHT]      = @accent
    bg[SELECTED]      = @accent
}
widget_class "*Notebook" style : highest "rafcon-notebook"
widget "*.tab_label" style : highest "rafcon-notebook"

style "rafcon-space" {
    bg[ACTIVE]        = @accent
    bg[INSENSITIVE]   = @background_space
    bg[NORMAL]        = @background_space
    bg[PRELIGHT]      = @accent
    bg[SELECTED]      = @accent
}
widget_class "*Paned"  style : highest "rafcon-space"
widget "*logic_vpaned"  style : highest "rafcon-space"
widget "*data_vpaned"  style : highest "rafcon-space"
class "GtkWindow"  style : highest "rafcon-space"


style "rafcon-button"
{
    bg[INSENSITIVE]   = @button_background_inactive
    bg[NORMAL]        = @button_background
    bg[SELECTED]        = @accent
    bg[PRELIGHT]        = @accent
    bg[ACTIVE]        = @accent
    base[INSENSITIVE]      = @button_background_inactive
    base[NORMAL]      = @button_background
    base[SELECTED]      = @input_background_active
    base[PRELIGHT]      = @input_background_active
    base[ACTIVE]      = @input_background_active
}
widget_class "*.<GtkButton>" style : highest "rafcon-button"
widget_class "*.<GtkMenuItem>" style : highest "rafcon-button"


style "icons" = "test-style"{
    base[NORMAL] = @background_widgets
    bg[ACTIVE]   = @accent
    bg[SELECTED] = @accent
    bg[PRELIGHT] = @accent
    text[NORMAL] = @text_default
    text[ACTIVE] = @text_default
    text[PRELIGHT] = @text_default
    text[SELECTED] = @text_default
}
widget_class "*IconView*" style : highest "icons"


style "sidebar-hide-button" {
    GtkButton::inner-border                      = {0, 0, 0, 0}
    bg[ACTIVE]        = @accent
    bg[INSENSITIVE]   = @background_space
    bg[NORMAL]        = @background_space
    bg[PRELIGHT]      = @accent
    bg[SELECTED]      = @accent
}
widget "*left_bar_hide_button" style : highest "sidebar-hide-button"
widget "*left_bar_return_button" style : highest "sidebar-hide-button"
widget "*right_bar_hide_button" style : highest "sidebar-hide-button"
widget "*right_bar_return_button" style : highest "sidebar-hide-button"
widget "*console_hide_button" style : highest "sidebar-hide-button"
widget "*console_return_button" style : highest "sidebar-hide-button"


style "rafcon-scrollbar" {
    bg[INSENSITIVE]   = @scrollbar_background
    bg[ACTIVE]        = @scrollbar_background
    bg[NORMAL]        = @scrollbar_scroller
    bg[PRELIGHT]      = @scrollbar_scroller_active
    bg[SELECTED]      = @scrollbar_background
}
widget_class "*Scrollbar*" style : highest "rafcon-scrollbar"


style "rafcon-scrollbar-decent" = "scrollbar" {
    #bg[PRELIGHT]      = @scrollbar_scroller_active_decent
    bg[PRELIGHT]      = shade(0.5, @scrollbar_scroller_active_decent)
}
widget "*graphical_editor_scroller*" style : highest "rafcon-scrollbar-decent"


style "text-view-background" {
    bg[NORMAL]        = @input_background
    base[NORMAL]      = @input_background
}
widget "*console_scroller.GtkTextView" style : highest "text-view-background"
widget "*description_scroller.GtkTextView" style : highest "text-view-background"


style "main-widget-background" {
    bg[NORMAL]        = @background_widgets
}
widget "*.graphical_editor_title_wrapper" style : highest "main-widget-background"
widget "*.left_sidebar_viewport" style : highest "main-widget-background"
widget "*.state_editor_eventbox" style : highest "main-widget-background"
widget "*.lower_right_sidebar" style : highest "main-widget-background"

style "widget-title" {
    bg[NORMAL]        = @background_menu
}
widget "*label_wrapper" style : highest "widget-title"
widget "*.label_wrapper" style : highest "widget-title"
widget "*.label_wrapper?" style : highest "widget-title"
widget "*.source_editor_title_wrapper" style : highest "widget-title"
widget "*.outcomes_title_wrapper" style : highest "widget-title"
widget "*.transitions_title_wrapper" style : highest "widget-title"
widget "*.data_ports_title_wrapper" style : highest "widget-title"
widget "*.data_flows_title_wrapper" style : highest "widget-title"
widget "*.data_linkage_title_wrapper" style : highest "widget-title"
widget "*.logical_linkage_title_wrapper" style : highest "widget-title"
widget "*.description_title_wrapper" style : highest "widget-title"
widget "*.semantic_data_title_wrapper" style : highest "widget-title"


style "rafcon-trees" {
    GtkTreeView::expander-size                   = 12
    #GtkTreeView::grid-line-pattern               = "\777\1"
}
widget "*.library_tree" style : highest "rafcon-trees"
widget "*.history_tree" style : highest "rafcon-trees"
widget "*.state_machine_tree" style : highest "rafcon-trees"


style "active-dropdown-entry" {
    base[SELECTED]    = @accent
    text[ACTIVE]      = @text_inverted
    text[INSENSITIVE] = @text_inverted
    text[NORMAL]      = @text_inverted
    text[PRELIGHT]    = @text_inverted
    text[SELECTED]    = @text_default
}
widget_class "GtkWindow.GtkScrolledWindow.GtkTreeView" style : highest "active-dropdown-entry"

style "tab-button" {
    bg[ACTIVE]        = @input_background
    bg[PRELIGHT]      = @input_background
    bg[SELECTED]      = @input_background
}
widget "*tab_label.*" style : highest "tab-button"


style "tree-views" {
    text[INSENSITIVE] = @text_label      # files
    text[NORMAL]      = @text_default    # folder
    text[SELECTED]    = @text_default    # folder selected
    GtkTreeView::even-row-color = @input_background
    GtkTreeView::odd-row-color  = @input_background_active
}
widget_class "*Tree*" style : highest "tree-views"

style "dropdown-list" {
    GtkComboBox::appears-as-list = 1
}
widget "*.state_type_combo" style : highest "dropdown-list"

style "sidebar-replacement"
{
    bg[INSENSITIVE]   = @background_space
    base[INSENSITIVE]      = @background_space
}
widget "*.left_bar_replacement" style : highest "sidebar-replacement"
widget "*.right_bar_replacement" style : highest "sidebar-replacement"
