Pages : 1
#1 Le 21/11/2008, à 16:24
- Xarkam
Petite modif de gtkrc Clearlooks
Salut, je vous met ici mon gtkrc Clearlooks modifié.
J'ai juste changé la couleur de survol des boutons ne trouvant pas celle par défaut de ce thème très visible.
La couleur utilisée est la couleur dominante (bleu par défaut)
gtk_color_scheme = "fg_color:#000\nbg_color:#E6E7E8\nbase_color:#fff\ntext_color:#000\nselected_bg_color:#86ABD9\nselected_fg_color:#fff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
style "clearlooks-default"
{
GtkButton ::default_border = { 0, 0, 0, 0 }
GtkRange ::trough_border = 0
GtkPaned ::handle_size = 6
GtkRange ::slider_width = 15
GtkRange ::stepper_size = 15
GtkScrollbar ::min_slider_length = 30
GtkCheckButton ::indicator_size = 14
GtkMenuBar ::internal-padding = 0
GtkTreeView ::expander_size = 14
GtkExpander ::expander_size = 16
GtkScale ::slider-length = 15
# GtkToolbar ::button-relief = GTK_RELIEF_NORMAL
# GtkMenuBar ::shadow-type = GTK_SHADOW_OUT
# GtkScrollbar ::has-secondary-forward-stepper = 1
# GtkScrollbar ::has-secondary-backward-stepper = 1
GtkButton ::child-displacement-x = 1
GtkButton ::child-displacement-y = 1
GtkMenu ::horizontal_padding = 0
GtkMenu ::vertical_padding = 0
WnckTasklist ::fade-overlay-rect = 0
xthickness = 1
ythickness = 1
fg[NORMAL] = @fg_color #"#000000" # black
fg[PRELIGHT] = @fg_color #"#000000" # black
fg[SELECTED] = @selected_fg_color #"#ffffff" # white
fg[ACTIVE] = @fg_color #"#000000" # black
fg[INSENSITIVE] = darker (@bg_color) #"#b5b3ac" # dark beige
bg[NORMAL] = @bg_color # "#ede9e3"
bg[PRELIGHT] = shade (1.02, @bg_color) #"#f9f7f3" # very light beige
bg[SELECTED] = @selected_bg_color # "#5598d7" # deepsky
bg[INSENSITIVE] = @bg_color # "#efebe5" # beige
bg[ACTIVE] = shade (0.9, @bg_color) #"#dcd4c9" #"#d7d3ca" # dark beige
base[NORMAL] = @base_color # "#ffffff" # white
base[PRELIGHT] = shade (0.95, @bg_color) # "#5f8ec4" # dark beige
base[ACTIVE] = shade (0.9, @selected_bg_color) # "#a69f91" # darker deepsky
base[SELECTED] = @selected_bg_color # "#5598d7" # deepsky
base[INSENSITIVE] = @bg_color # "#e8e5de" # beige
text[NORMAL] = @text_color # "#000000" # black
text[PRELIGHT] = @text_color # "#000000" # black
text[ACTIVE] = @selected_fg_color # "#ffffff" # white
text[SELECTED] = @selected_fg_color # "#ffffff" # white
text[INSENSITIVE] = darker (@bg_color) # "#b5b3ac" # dark beige
engine "clearlooks"
{
#scrollbar_color = "#76acde"
colorize_scrollbar = TRUE
menubarstyle = 2 # 0 = flat, 1 = sunken, 2 = flat gradient
toolbarstyle = 1 # 0 = flat, 1 = enable effects
animation = TRUE
style = GUMMY
}
}
style "clearlooks-wide" = "clearlooks-default"
{
xthickness = 2
ythickness = 2
}
style "clearlooks-wider" = "clearlooks-default"
{
xthickness = 3
ythickness = 3
}
style "clearlooks-button" = "clearlooks-wider"
{
bg[NORMAL] = shade (1.05, @bg_color) # "#f6f4f1"
# bg[INSENSITIVE] = shade (1.04, @bg_color) # "#f2efeb"
bg[PRELIGHT] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
# bg[PRELIGHT] = shade (1.08, @bg_color) # "#faf9f8"
bg[ACTIVE] = shade (0.85, @bg_color)
}
style "clearlooks-notebook" = "clearlooks-wide"
{
# bg[NORMAL] = "#efebe5"
# bg[INSENSITIVE] = "#efebe5"
bg[NORMAL] = shade (1.04, @bg_color)
engine "clearlooks"
{
style = GLOSSY
}
}
style "clearlooks-tasklist" = "clearlooks-default"
{
xthickness = 5
ythickness = 3
}
style "clearlooks-toolbar" = "clearlooks-wide"
{
bg[NORMAL] = shade (1.02, @bg_color)
}
style "clearlooks-menu" = "clearlooks-default"
{
xthickness = 0
ythickness = 0
bg[NORMAL] = shade (1.08, @bg_color) # "#f9f7f3"
}
style "clearlooks-menubar-item" = "clearlooks-default"
{
xthickness = 2
ythickness = 3
fg[PRELIGHT] = @selected_fg_color
engine "clearlooks" {
radius = 3.0
style = GUMMY
}
}
style "clearlooks-menu-item" = "clearlooks-default"
{
xthickness = 2
ythickness = 3
fg[PRELIGHT] = @selected_fg_color
engine "clearlooks" {
radius = 0.0
style = GUMMY
}
}
style "clearlooks-tree" = "clearlooks-default"
{
xthickness = 2
ythickness = 1
}
style "clearlooks-frame-title" = "clearlooks-default"
{
fg[NORMAL] = lighter (@fg_color) # "#404040"
}
style "clearlooks-tooltips" = "clearlooks-default"
{
xthickness = 4
ythickness = 4
# bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
bg[NORMAL] = @tooltip_bg_color
fg[NORMAL] = @tooltip_fg_color
}
style "clearlooks-progressbar" = "clearlooks-wide"
{
xthickness = 1
ythickness = 1
# fg[PRELIGHT] = "#ffffff"
}
style "clearlooks-combo" = "clearlooks-button"
{
}
style "clearlooks-menubar" = "blackrock-default"
{
# bg[NORMAL] = "#bacedb"
}
style "clearlooks-scale" = "clearooks-button"
{
GtkRange::trough-side-details = 1
}
style "nautilus-location" {
bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
}
widget "*.nautilus-extra-view-widget" style:highest "nautilus-location"
# widget styles
class "GtkWidget" style "clearlooks-default"
class "GtkButton" style "clearlooks-button"
class "GtkScale" style "clearlooks-scale"
class "GtkCombo" style "clearlooks-button"
class "GtkRange" style "clearlooks-wide"
class "GtkFrame" style "clearlooks-wide"
class "GtkSeparator" style "clearlooks-wide"
class "GtkMenu" style "clearlooks-menu"
class "GtkEntry" style "clearlooks-wider"
class "GtkNotebook" style "clearlooks-notebook"
class "GtkToolbar" style "clearlooks-toolbar"
#class "GtkMenuBar" style "clearlooks-menubar"
widget_class "*.<GtkMenuItem>*" style "clearlooks-menu-item"
widget_class "*.<GtkMenuBar>.*" style "clearlooks-menubar-item"
# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "clearlooks-combo"
widget_class "*.GtkCombo.GtkButton" style "clearlooks-combo"
# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "clearlooks-tasklist"
widget "gtk-tooltip*" style "clearlooks-tooltips"
# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "clearlooks-tree"
widget_class "*.GtkCTree.GtkButton" style "clearlooks-tree"
widget_class "*.GtkList.GtkButton" style "clearlooks-tree"
widget_class "*.GtkCList.GtkButton" style "clearlooks-tree"
widget_class "*.GtkFrame.GtkLabel" style "clearlooks-frame-title"
# This is not perfect, it could be done better
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>" style "clearlooks-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "clearlooks-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>" style "clearlooks-notebook"
class "GtkProgressBar" style "clearlooks-progressbar"
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "clearlooks-text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>" style "clearlooks-text-is-fg-color-workaround"
style "clearlooks-menuitem-text-is-fg-color-workaround"
{
text[NORMAL] = @fg_color
text[PRELIGHT] = @selected_fg_color
text[SELECTED] = @selected_fg_color
text[ACTIVE] = @fg_color
text[INSENSITIVE] = darker (@bg_color)
}
widget "*.gtk-combobox-popup-menu.*" style "clearlooks-menuitem-text-is-fg-color-workaround"
# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "clearlooks-fg-is-text-color-workaround"
{
fg[NORMAL] = @text_color
fg[PRELIGHT] = @text_color
fg[ACTIVE] = @selected_fg_color
fg[SELECTED] = @selected_fg_color
fg[INSENSITIVE] = darker (@bg_color)
}
widget_class "*<GtkListItem>*" style "clearlooks-fg-is-text-color-workaround"
# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.
widget_class "*<GtkCList>" style "clearlooks-fg-is-text-color-workaround"
Osames Manager
---
Asus Rampage V Extrême | Intel i7 5820K | Corsair 16GB DDR4 | NVIDIA GeForce 770GTX
Utilisateur d'Ubuntu, Debian, et Windows
Hors ligne
Pages : 1