Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is related to the recurring "white on black tooltips" question. Until yesterday I was able to change tooltip colors (and fix UI element padding) using a specific gtkrc file for eclipse, as suggested by this blog post.

My gtkrc looks like (slightly reformatted)

gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\n

and I run eclipse with the command

GTK2_RC_FILES=~/.themes/eclipse.gtkrc eclipse

This worked fine for 11.10 and still works on 12.04, with the exception of tooltip colors, i.e. eclipse starts with the tweaked UI elements but still uses the default white on black tooltips.

Editing the system-wide gtkrc file at


as suggested by this answer works fine, but I'd rather not do it and besides I still have no clue as to why eclipse will pick up all my modifications to gtkrc except the gtk-color-scheme setting. Does anyone know what's wrong?

share|improve this question
i suspect this is related to a switch from gtk2 to gtk3, but i couldn't say for sure – RobotHumans Apr 29 '12 at 23:45

Check content of gtk-3.0/gtk.css in selected theme directory. As aking1012 said already, GTK3 used instead of GTK2.

share|improve this answer
Could be, but then how would I go about using an application specific gtkrc? – agnul May 2 '12 at 11:55

Add this to your gtkrc (either ~/.gtkrc-2.0 or your custom eclipse one):

style "gnome-color-chooser-tooltips"
  bg[NORMAL] = "#FFFFAF"
  fg[NORMAL] = "#000000"
widget "gtk-tooltip*" style "gnome-color-chooser-tooltips"

This is what gnome-color-chooser does, it works.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.