[gnome-themes-standard] gtk2: add a style selector for Eclipse tooltips
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] gtk2: add a style selector for Eclipse tooltips
- Date: Sat, 24 Nov 2012 18:19:16 +0000 (UTC)
commit a578f0ae1078989eb6af2aef7ef58ad641493e41
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Nov 24 13:15:44 2012 -0500
gtk2: add a style selector for Eclipse tooltips
Since Eclipse uses hyperlinks inside tooltips, with our default tooltip
style they will be rendered dark blue on black, which is not readable.
Unfortunately, there seems to be no way to just change the hyperlink
color; this patch special-cases those tooltips to use a light background
with dark text color instead.
https://bugzilla.gnome.org/show_bug.cgi?id=688285
themes/Adwaita/gtk-2.0/gtkrc | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/gtkrc b/themes/Adwaita/gtk-2.0/gtkrc
index f2ee783..45134e1 100755
--- a/themes/Adwaita/gtk-2.0/gtkrc
+++ b/themes/Adwaita/gtk-2.0/gtkrc
@@ -1888,6 +1888,16 @@ style "tooltips"
bg[SELECTED] = @tooltip_bg_color
}
+style "eclipse-tooltips"
+{
+ xthickness = 8
+ ythickness = 4
+
+ bg[NORMAL] = shade(1.05, @bg_color)
+ fg[NORMAL] = @text_color
+ bg[SELECTED] = shade(1.05, @bg_color)
+}
+
# Chromium
style "chrome-gtk-frame"
{
@@ -1965,11 +1975,15 @@ widget_class "*<GtkNotebook>*<GtkSpinButton>" style "notebook_spinbutt
widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>" style "entry"
widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkSpinButton>" style "spinbutton"
-widget "*xchat-inputbox" style "entry"
-
# We also need to avoid changing fg color for the inactive notebook tab labels
widget_class "*<GtkNotebook>.<GtkLabel>" style "notebook_tab_label"
+# GTK tooltips
+widget "gtk-tooltip*" style "tooltips"
+
+# Xchat special cases
+widget "*xchat-inputbox" style "entry"
+
# GIMP
# Disable gradients completely for GimpSpinScale
class "GimpSpinScale" style "gimp_spin_scale"
@@ -1981,5 +1995,6 @@ class "ChromeGtkFrame" style "chrome-gtk-frame"
widget_class "*Chrom*Button*" style "button"
widget_class "*<GtkCustomMenu>*<GtkCustomMenuItem>*" style "chrome_menu_item"
-widget "gtk-tooltip*" style "tooltips"
+# Eclipse/SWT
+widget "gtk-tooltips*" style "eclipse-tooltips"
widget "*swt-toolbar-flat" style "null"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]