[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

gtk2/gtk2-engines changed tooltip colors in F7



So, it appears that gtk2-2.10.12-2.fc7 or gtk2-engines-2.10.2-1.fc7
changes the default background color for tooltips. If you're running F7
updates-testing you've probably noticed that your tooltips are now gray
instead of yellow. Check the upstream GNOME bug that caused this change:
http://bugzilla.gnome.org/show_bug.cgi?id=412982

We should probably change the default theme to preserve the normal
tooltip color until upstream sorts it out. 

Our default theme inherits from Clearlooks, so that's the theme we need
to change. For some reason, while Clearlooks is included in the
gnome-themes SRPM, it's removed during packaging - gtk2-engines is the
package that actually provides Clearlooks. Confusing!

Anyway - attached is a patch for gtk2-engines that preserves the old
tooltip colors. Patch can be applied in the spec with -p1, or on your
system with:

cd /usr/share/themes
sudo patch -p2 < ~/gtk-engines-2.10.2-keep-default-tooltip-color.patch

Hope that helps.

-w

--- gtk-engines-2.10.2/themes/Clearlooks/gtk-2.0/gtkrc.keep-default-tooltip-color	2007-06-07 11:42:05.000000000 -0400
+++ gtk-engines-2.10.2/themes/Clearlooks/gtk-2.0/gtkrc	2007-06-07 11:42:43.000000000 -0400
@@ -154,6 +154,13 @@ style "clearlooks-scale" = "clearooks-bu
 	GtkRange::trough-side-details = 1
 }	
 
+# force tooltips to match old hardcoded defaults
+style "clearlooks-tooltips" = "clearlooks-default"
+{
+  bg[NORMAL] = "#ffffbf"
+  fg[NORMAL] = "#000000"
+}
+
 # widget styles
 class "GtkWidget"    style "clearlooks-default"
 class "GtkButton"    style "clearlooks-button"
@@ -190,3 +197,5 @@ widget_class "*.GtkFrame.GtkLabel" style
 widget_class "*.GtkNotebook.*.GtkEventBox" style "clearlooks-notebook"
 widget_class "*.GtkNotebook.*.GtkViewport" style "clearlooks-notebook"
 
+# tooltips
+widget "gtk-tooltips" style "clearlooks-tooltips"

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]