Oct 1, 2012

How to fix unreadable Eclipse tooltips in Ubuntu 12.04

[Originally posted on G+ on May 7th 2012]

Similarly to what happened in earlier versions of Ubuntu, the default tooltip colors of the Ambiance theme (Ubuntu default) results in unreadable Eclipse tooltips (black foreground text on black background).

In earlier versions of Ubuntu you could edit the Ambiance theme via Gnome control panel and change the tooltip colors. Unluckily, the new "Appearance" settings dialog of Ubuntu 12.04 allows you to select the theme but you cannot tweak its colors anymore.

So here is how you can fix the problem.
Install gnome-color-chooser:
sudo apt-get install gnome-color-chooser 
run the tool and switch to the Specific tab. Activate the Tooltip group and set your tooltip colors (I use black foreground on white background). Then, at the bottom of the dialog select the value Theme Default for the profile combo and press apply. The next time you start Eclipse it will honour your tooltip colors.

For those who may be interested, gnome-color-chooser will change your ~/.gtkrc-2.0 file.

Related Posts:

  • Global JNDI support in Virgo Server 3.5 for Tomcat This rather long post analyses four solutions to the problem of using data sources, and more in general JNDI in Virgo, the 4th being the one I recommend and decided to use, which consists in leveraging Tomcat's built-in J… Read More
  • Virgo Tools 1.5Since September 2015 I am a committer of the open source Eclipse Virgo project. I have written several posts in the past about the Eclipse Virgo OSGi application server, and after having helped the project team with patches … Read More
  • Sonar and PDE Build[Originally posted on G+ on the 17th of January 2012] I finally completed the integration of #Sonar (http://www.sonarsource.org) in our PDEBuild (http://eclipse.org/pde/pde-build/) based build system. Requirements I wa… Read More
  • First contact with Virgo Server, Virgo Tools, Eclipse Link[Updated version of a post originally shared on G+ on the 22nd of June 2012] My team and I have been working on an OSGi enterprise prototype since April 2012. We decided to use Eclipse Virgo Tomcat Server as our applicatio… Read More
  • Eclipse and the Ubuntu global menu[Originally shared on G+ the 7th of August 2012] For those working with Eclipse on Ubuntu, if you don't like the fact that the Eclipse menu does not blend into Unity's global menubar, you may want to try this hack https:/… Read More

5 comments:

  1. Great! This helped me easily and quickly. :o)
    Regards,
    Alex

    ReplyDelete
  2. I followed this, choosing black text on yellow background. Then this caused my Firefox hover-over text to be an unreadable white on a yello background. Hmm not sure why.

    ReplyDelete
    Replies
    1. I am sorry for the issue, I did not experience this problem. My only suggestion is to try experimenting with other colours.

      Delete
  3. Thank you - worked for Ubuntu 14.04 as well.

    ReplyDelete
  4. Thanks! It worked very well.
    tooltip_fg_color:#000000
    tooltip_bg_color:#f5f5c5

    ReplyDelete