Eclipse Java EE IDE for Web Developers tooltip color

柔情痞子 提交于 2019-12-10 09:57:54

问题


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??


回答1:


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:

  • edit tooltip colors in /usr/share/themes/Ambiance/gtk-3.0/setting.ini + gtk-main.css
  • or force Eclipse to use GTK2

I prefer the second choice.

Add

export SWT_GTK3=0

in /etc/profile and restart the system




回答2:


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



回答3:


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



来源:https://stackoverflow.com/questions/31081589/eclipse-java-ee-ide-for-web-developers-tooltip-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!