Eclipse Java EE IDE for Web Developers tooltip col

2019-05-10 13:29发布

I am using Eclipse Java EE IDE for Web Developers version 4.5.0 (Mars). But the tooltip background is black. How can I change it?? I am using xubuntu 14.04

P.S. The tooltip background at the system level is white, using gnome color chooser. And I set The Java doc view background at (general -> appearance -> colors and fonts) to white And also none of the Appearance color options at (Java -> editor) are black! Is it a bug in the new version of eclipse??

3条回答
啃猪蹄的小仙女
2楼-- · 2019-05-10 14:21

The export SWT_GTK3=0 trick did not work for me.

However, the answer listed here worked after trying several other solutions (Eclipse Mars 4.5.2, Ubuntu 14.04.3). I did have to edit one additional file though (gtk-main.css). So edit these files:

/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-3.0/gtk-main.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
查看更多
Explosion°爆炸
3楼-- · 2019-05-10 14:24

Same problem.

I assume this is because Eclipse 4.5 uses GTK3 by default (gtkrc-2.0 settings will not be used).

So you can:

I prefer the second choice.

Add

export SWT_GTK3=0

in /etc/profile and restart the system

查看更多
不美不萌又怎样
4楼-- · 2019-05-10 14:24

I have verified that

export SWT_GTK3=0

is a viable, albeit suboptimal, workaround in Ubuntu 16.10 and Eclipse 4.6.1 when the desktop appearance uses the BlueMenta themes, with no additional tweaks required.

Tweaking the gtk-3.0 css files didn't work for me.

Other users have had better luck with the scripts in this project

查看更多
登录 后发表回答