[gnome-themes-standard/gnome-3-6] 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/gnome-3-6] gtk2: add a style selector for Eclipse tooltips
- Date: Sat, 24 Nov 2012 18:20:55 +0000 (UTC)
commit dd8a2d30920e3e19b4f9f9ae8e54b6b4b49dabc3
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 124e22e..64904ac 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]