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:

  1. gedit ~/.gtkrc-2.0
  2. Copy and paste the following lines in that file:

    style “tooltip” { bg[NORMAL] = “#FFFFFF” }
    widget “gtk-tooltips” style “tooltip”

  3. Change the Hex code (#FFFFFF) to whatever color you want.
  4. Save the file.
  5. 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!

Tags:

18 responses to “How to Change the Color of your Tooltips”

  1. Bryan Ledford says :

    Works great for me in Feisty Fawn. Thanks a bunch – customization dreams now fully realized.

  2. Caleb Cullen says :

    Thanks for this! It worked fine for me in Feisty Fawn. Note that I used a more liberal assignment:
    widget "*ooltip*" style "tooltip"

  3. Mario G.H. says :

    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

  4. Kevin Guertin says :

    You’re right! Force of habit. 🙂 I’ve updated the post.

  5. dr0ide says :

    you make my day🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: