diff options
author | Jean-Philippe Fleury <contact@jpfleury.net> | 2012-10-27 15:51:35 -0400 |
---|---|---|
committer | Jean-Philippe Fleury <contact@jpfleury.net> | 2012-10-27 15:51:35 -0400 |
commit | 699d209c9828aadf332f8a93c810601df69272d7 (patch) | |
tree | 484afdf4990d3578dbce9098e885b70390c1ea46 /gtk-2.0 | |
parent | c011264f263ed4b7a423f4d330f401cc448a2050 (diff) |
Style GTK2 des applications spécifiques dans un fichier à part + modifs style de Chromium
Diffstat (limited to 'gtk-2.0')
-rw-r--r-- | gtk-2.0/applications.rc | 64 | ||||
-rw-r--r-- | gtk-2.0/gtkrc | 44 |
2 files changed, 65 insertions, 43 deletions
diff --git a/gtk-2.0/applications.rc b/gtk-2.0/applications.rc new file mode 100644 index 0000000..db82014 --- /dev/null +++ b/gtk-2.0/applications.rc @@ -0,0 +1,64 @@ +# Workaround for the evolution ETable (bug #527532) +widget_class "*.<ETable>.<ECanvas>" style "treeview_header" +# Workaround for the evolution ETree +widget_class "*.<ETree>.<ECanvas>" style "treeview_header" + +# Special case the nautilus-extra-view-widget +# ToDo: A more generic approach for all applications that have a widget like this. +widget "*.nautilus-extra-view-widget" style : highest "nautilus_location" + +# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646 +# Note that this work around assumes that the combobox is _not_ in appears-as-list mode. +widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround" +# This is the part of the workaround that fixes the menus +widget "*.gtk-combobox-popup-menu.*" style "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. +widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround" +# GtkCList also uses the fg color to draw text on top of the base colors. +widget_class "*<GtkCList>" style "fg_is_text_color_workaround" +# Nautilus when renaming files, and maybe other places. +widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround" + +# See the documentation of the style. +widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround" + +########################################################################## +# Chromium. +########################################################################## + +style "chromium_toolbar_button" { + engine "clearlooks" { + colorize_scrollbar = TRUE + reliefstyle = 1 + menubarstyle = 2 + toolbarstyle = 1 + animation = FALSE + radius = 3.0 + style = GUMMY + + # Set a hint to disable backward compatibility fallbacks. + hint = "use-hints" + } +} + +style "chrome-hacks" +{ + ChromeGtkFrame::frame-color = "#86abd9" + ChromeGtkFrame::frame-gradient-color = "#8cb0dc" + ChromeGtkFrame::frame-gradient-size = 16 + ChromeGtkFrame::inactive-frame-color = "#dedcda" + ChromeGtkFrame::inactive-frame-gradient-color = "#e3e2e0" + ChromeGtkFrame::incognito-frame-color = "#4b6e99" + ChromeGtkFrame::incognito-frame-gradient-color = shade (1.02, "#4b6e99") + ChromeGtkFrame::incognito-inactive-frame-color = "#d5d3d1" + ChromeGtkFrame::incognito-inactive-frame-gradient-color = shade (1.02, "#d5d3d1") + ChromeGtkFrame::scrollbar-trough-color = shade (0.9, "#edeceb") + ChromeGtkFrame::scrollbar-slider-prelight-color = shade (1.05, "#86abd9") + ChromeGtkFrame::scrollbar-slider-normal-color = "#86abd9" +} + +class "ChromeGtkFrame" style "chrome-hacks" +widget_class "*Chrom*Button*" style "chromium_toolbar_button" + diff --git a/gtk-2.0/gtkrc b/gtk-2.0/gtkrc index 1e61ff9..865db9c 100644 --- a/gtk-2.0/gtkrc +++ b/gtk-2.0/gtkrc @@ -332,22 +332,6 @@ style "evo_new_button_workaround" { } } -style "chrome_gtk_frame" -{ - ChromeGtkFrame::frame-color = @selected_bg_color - ChromeGtkFrame::inactive-frame-color = "#dedcda" - ChromeGtkFrame::frame-gradient-size = 16 - ChromeGtkFrame::frame-gradient-color = shade (0.95,@selected_bg_color) - ChromeGtkFrame::inactive-frame-gradient-color = shade (0.95,"#dedcda") - ChromeGtkFrame::incognito-frame-color = "#4b6e99" - ChromeGtkFrame::incognito-inactive-frame-color = "#e3e2e0" - ChromeGtkFrame::incognito-frame-gradient-color = shade (0.95,"#4b6e99") - ChromeGtkFrame::incognito-inactive-frame-gradient-color = shade (0.95,"#e3e2e0") - ChromeGtkFrame::scrollbar-trough-color = shade (0.9, @bg_color) - ChromeGtkFrame::scrollbar-slider-prelight-color = shade (1.05, @selected_bg_color) - ChromeGtkFrame::scrollbar-slider-normal-color = @selected_bg_color -} - ############################################################################### # The following part of the gtkrc applies the different styles to the widgets. ############################################################################### @@ -417,31 +401,5 @@ widget "gtk-tooltip*" style "tooltips" # Following are special cases and workarounds for issues in applications. ########################################################################## -# Workaround for the evolution ETable (bug #527532) -widget_class "*.<ETable>.<ECanvas>" style "treeview_header" -# Workaround for the evolution ETree -widget_class "*.<ETree>.<ECanvas>" style "treeview_header" - -# Special case the nautilus-extra-view-widget -# ToDo: A more generic approach for all applications that have a widget like this. -widget "*.nautilus-extra-view-widget" style : highest "nautilus_location" - -# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646 -# Note that this work around assumes that the combobox is _not_ in appears-as-list mode. -widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround" -# This is the part of the workaround that fixes the menus -widget "*.gtk-combobox-popup-menu.*" style "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. -widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround" -# GtkCList also uses the fg color to draw text on top of the base colors. -widget_class "*<GtkCList>" style "fg_is_text_color_workaround" -# Nautilus when renaming files, and maybe other places. -widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround" - -# See the documentation of the style. -widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround" - -class "ChromeGtkFrame" style "chrome_gtk_frame" +include "applications.rc" |