How to Change the Color of your Tooltips
With all the customization fun I’ve been having with my Ubuntu Desktop, one thing kept bugging me. There isn’t an easy way to change the color of the tooltips. I think this is important to have a consistent color scheme throughout your desktop so I went to find a solution.
I found the answer on the Ubuntu Forums yet again, posted by mcduck.
UPDATE: This may also work in other distributions, not just Ubuntu, since it is a GTK setting.
UPDATE: This seems to only work in Ubuntu 6.10 or lower. People have reported that it does not work in Feisty Fawn (7.04).
Now, when changing the color of the tooltips, it’s important to note that this will change it for ALL themes.
To change the color of the tooltips, do this:
- gedit ~/.gtkrc-2.0
- Copy and paste the following lines in that file:
style “tooltip” { bg[NORMAL] = “#FFFFFF” }
widget “gtk-tooltips” style “tooltip” - Change the Hex code (#FFFFFF) to whatever color you want.
- Save the file.
- Log out and log back in (or do a CTRL+BACKSPACE). You can probably just do a Desktop Refresh:
killall nautilus gnome-panel
…and it may work. I haven’t tested it, though.
…TESTED: It works. NOTE: You’ll have to change ALL the smart quotes ” to regular quotes after you paste. Just delete them and type in the quotes again. Then do another killall nautilus gnome-panel. (2007.02.12)
Test it by placing your mouse over the Date and Time applet.
Enjoy!
18 Responses to “How to Change the Color of your Tooltips”
Trackbacks / Pingbacks
- - December 1, 2007
- - December 17, 2007
- - June 1, 2009








Works great for me in Feisty Fawn. Thanks a bunch – customization dreams now fully realized.
Thanks for this! It worked fine for me in Feisty Fawn. Note that I used a more liberal assignment:
widget "*ooltip*" style "tooltip"Why the heck are you using gksu for editing gtkrc-2.0?
it is your file and you should have normal permissions for using it.
It just works by using any-editor ~/.gtkrc-2.0
Regards
You’re right! Force of habit.
I’ve updated the post.
you make my day