2

I have Eclipse neon (4.6) as well as STS 3.8.0 (based on eclipse 4.6) installed in my Ubuntu 16.04 LTS. All the tooltips are behaving differently as shown in attached screenshot.

tooltip

Then, I understood that according to this and this, it is a bug with gtk-3.

As mentioned int the given threads, I installed gnome-color-picker and then fixed the tooltip issue. But that changes the tooltips in many other apps which is not much desired.

Then I tried changing the gtk to 2 in eclipse in eclipse.ini file which resulted in missing menu icons and again tooltip issue (this time black background and white text) as shown below.

--launcher.GTK_version
2

menusblack-tool-tip

Is there any permanent fix for this? (other than using gnome-color-picker) Or, when can this issue be fixed in near future in Ubuntu?

P.S : Same issue is noticed in STS-3.8.0 which is based on eclipse 4.6(neon)

Community
  • 1
  • 1
Arun Rahul
  • 565
  • 1
  • 7
  • 24

2 Answers2

0

Here is a fix for you.

This fixes Eclipse tooltip color without falling back to GTK2 and without affecting any other application.

The fix is captured in a script and it can be accessed here.

The script makes a copy of the Ambiance theme, modifies the tooltip color and then writes a launcher for eclipse with this new Theme.

See this Change GTK3 tooltip color only for Eclipse running in Ubuntu


Check this blog and use method2 to enable menu icons if you choose to use GTK2.

Community
  • 1
  • 1
Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68
0

Editing GTK3 theme settings as follows is what worked for me:

This command sets background to pale yellow and foreground to black: 

sudo sed -i 's/@define-color tooltip_bg_color.*;/@define-color tooltip_bg_color #ffffda;/g' /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css && sudo sed -i 's/@define-color tooltip_fg_color.*;/@define-color tooltip_fg_color #000000;/g' /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css

Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439884#c20

vambo
  • 851
  • 1
  • 8
  • 15