1
0
mirror of https://github.com/gryf/OneStepBack.git synced 2025-12-19 04:20:21 +01:00
Files
OneStepBack/gtk-2.0/gtkrc
2017-07-12 16:32:32 +03:00

325 lines
9.0 KiB
Plaintext

#======================================#
# OneStepBack theme: gtk2 part #
# jpsb: July 2015 - May 2017 #
#======================================#
#======================================#
# Color definitions
#======================================#
gtk-color-scheme = "white_color:#ffffff
lighter_color:#d8d8d8
base_color:#a8a8a8
darker_color:#787878
black_color:#000000
scale_color: #4b6983
menuitem_active_color:#d8d8d8
button_active_color:#787878
"
#======================================#
# Styles
#======================================#
style "default" {
base[NORMAL] = @lighter_color
text[NORMAL] = @black_color
bg[NORMAL] = @base_color
fg[NORMAL] = @black_color
base[PRELIGHT] = @lighter_color
text[PRELIGHT] = @black_color
bg[PRELIGHT] = @base_color
fg[PRELIGHT] = @black_color
base[SELECTED] = @darker_color
text[SELECTED] = @lighter_color
bg[SELECTED] = @darker_color
fg[SELECTED] = @lighter_color
base[ACTIVE] = @darker_color
text[ACTIVE] = @lighter_color
bg[ACTIVE] = @button_active_color
fg[ACTIVE] = @black_color
base[INSENSITIVE] = @darker_color
text[INSENSITIVE] = @black_color
bg[INSENSITIVE] = @base_color
fg[INSENSITIVE] = @darker_color
GtkWidget::focus-line-width = 0
GtkWidget::link-color = @black_color
GtkWidget::visited-link-color = @darker_color
GtkScrollbar::min-slider-length = 30
GtkScrollbar::has_backward_stepper = 0
GtkScrollbar::has_forward_stepper = 1
GtkScrollbar::has_secondary_forward_stepper = 0
GtkScrollbar::has_secondary_backward_stepper = 1
}
style "scalebar-scrollbar" {
bg[NORMAL] = @base_color
fg[NORMAL] = @black_color
bg[PRELIGHT] = @lighter_color
bg[ACTIVE] = @darker_color
engine "pixmap" {
image {
function = SLIDER
state = NORMAL
file = "../img/scrollbar_horizontal.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image {
function = SLIDER
state = INSENSITIVE
file = "../img/scrollbar_horizontal.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image {
function = SLIDER
state = PRELIGHT
file = "../img/scrollbar_horizontal.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image {
function = SLIDER
state = ACTIVE
file = "../img/scrollbar_horizontal.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = HORIZONTAL
}
image {
function = SLIDER
state = NORMAL
file = "../img/scrollbar_vertical.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
image {
function = SLIDER
state = INSENSITIVE
file = "../img/scrollbar_vertical.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
image {
function = SLIDER
state = PRELIGHT
file = "../img/scrollbar_vertical.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
image {
function = SLIDER
state = ACTIVE
file = "../img/scrollbar_vertical.png"
border = { 2, 2, 2, 2 }
stretch = TRUE
overlay_file = "../img/scrollbar_thumb.png"
overlay_stretch = FALSE
orientation = VERTICAL
}
}
}
style "progressbar" {
bg[NORMAL] = @darker_color
fg[NORMAL] = @scale_color # XXX
bg[PRELIGHT] = @scale_color # XXX
fg[PRELIGHT] = @black_color
}
style "menuitem" {
text[NORMAL] = @black_color
bg[NORMAL] = @darker_color
fg[NORMAL] = @black_color
text[PRELIGHT] = @black_color
bg[PRELIGHT] = @menuitem_active_color
fg[PRELIGHT] = @black_color
fg[SELECTED] = @black_color # fg menu sélectionné libre office
}
style "check-radio" {
bg[PRELIGHT] = @base_color
base[INSENSITIVE] = @lighter_color
text[INSENSITIVE] = @darker_color
fg[INSENSITIVE] = @base_color
}
style "menubar" {
fg[PRELIGHT] = @black_color # menu sélectionné geogebra
fg[SELECTED] = @black_color # menu sélectionné thunderbird
}
style "paned" {
bg[PRELIGHT] = @base_color # séparateurs mobiles hover
}
style "gimp-loadingbar" {
bg[PRELIGHT] = @scale_color # loadingbar de gimp !
}
style "notebook" {
bg[ACTIVE] = @darker_color # pour variantes de couleur
}
#======================================#
# Styles for testing
#======================================#
style "red" {
base[NORMAL] = "red"
text[NORMAL] = "red"
fg[NORMAL] = "red"
bg[NORMAL] = "red"
base[PRELIGHT] = "red"
text[PRELIGHT] = "red"
bg[PRELIGHT] = "red"
fg[PRELIGHT] = "red"
base[SELECTED] = "red"
text[SELECTED] = "red"
bg[SELECTED] = "red"
fg[SELECTED] = "red"
base[ACTIVE] = "red"
text[ACTIVE] = "red"
bg[ACTIVE] = "red"
fg[ACTIVE] = "red"
base[INSENSITIVE] = "red"
text[INSENSITIVE] = "red"
bg[INSENSITIVE] = "red"
fg[INSENSITIVE] = "red"
}
style "test" {
base[NORMAL] = "aqua"
text[NORMAL] = "green"
bg[NORMAL] = "magenta"
fg[NORMAL] = "blue"
base[PRELIGHT] = "green"
text[PRELIGHT] = "red"
bg[PRELIGHT] = "lime"
fg[PRELIGHT] = "maroon"
base[SELECTED] = "navy"
text[SELECTED] = "green"
bg[SELECTED] = "olive"
fg[SELECTED] = "purple"
base[ACTIVE] = "red"
text[ACTIVE] = "green"
bg[ACTIVE] = "teal"
fg[ACTIVE] = "yellow"
base[INSENSITIVE] = "purple"
text[INSENSITIVE] = "green"
bg[INSENSITIVE] = "yellow"
fg[INSENSITIVE] = "aqua"
}
#======================================#
# Widgets
#======================================#
class "*" style "default"
widget_class "*Scale*" style "scalebar-scrollbar"
widget_class "*Scrollbar*" style "scalebar-scrollbar"
widget_class "*ProgressBar*" style "progressbar"
widget_class "*MenuItem*" style "menuitem"
widget_class "*MenuBar*" style "menubar"
widget_class "*Paned*" style "paned"
class "GtkCheck*" style "check-radio"
class "GtkRadio*" style "check-radio"
widget_class "*Gimp*Paned*Bar*" style "gimp-loadingbar"
widget_class "*Notebook*" style "notebook"
#widget_class "*Link*" style "red"
#widget_class "*Button*" style "red"
#widget_class "*ComboBox*" style "red"
#widget_class "*Separator*" style "red"
#widget_class "*Entry*" style "red"
#widget_class "*ToolButton*" style "red"
#widget_class "*Option*" style "red"
#widget_class "*ScaleButton*" style "red"
#widget_class "*List*" style "red"
#widget_class "*Notebook*" style "test"
#widget_class "*Frame*" style "red"
#widget_class "*Label*" style "red"
#widget_class "*Window" style "red"
# jpsb le 12 sept 2015: bug curieux: la barre d'avancement de xsane ne respecte la couleur demandée qu'après un redémarrage du thème, sinon la couleur est lime !
# qt4 et flèches d'ascenseurs incompatible avec engine "pixmap"
# barre de prog qt4
#======================================#
# tweaks
#======================================#
# avoid wrong background color in rox when switching theme
style "rox"
{
base[NORMAL] = @base_color
bg[NORMAL] = @base_color
}
widget_class "*ViewCollection*" style "rox"