Eclipse 提示框背景色黑色解决方案

Debian下Eclipse提示框背景色为黑色看起来很不舒服,这是因为Eclipse默认使用系统的主题Ambiance。

解决

其实出现这种问题解决起来也很容易,只需要换一个gtk2的主题就能搞定。

sudo apt install murrine-themes gtk-theme-switch
第一个软件包是一个gtk2主题包,第二个软件包是一个主题选择工具

有了这两个包,只需要运行gtk-theme-switch随便选择一个主题就可以解决黑主题的问题了,但是随便选择的有可能不是很美观,所以可以选择多次尝试调整。

调整好以后是这样的。

#注意
Please note, this issue has been resolved in Eclipse as of 8th November 2016. To have this fixed, please download one of the latest integration builds: http://download.eclipse.org/eclipse/downloads/
(The maintenance builds don’t have the patch at the time of writing 2016-11Nov-09Wed).

I wrote a patch that introduced a new preference in Eclipse “Information Background/Text” under General -> Appearance -> Colors and Fonts. This preference generates the correct color on Linux/Gtk (White background, black text).
See: Bug 505738 – Define a information hover color which JDT, CDT or others can use https://bugs.eclipse.org/bugs/show_bug.cgi?id=505738

Subsequently I made Javadoc colors inherit it’s color from that preference. See:
Bug 501742 – Default Javadoc text and background color should use colors consistent with Java editor background/foreground. https://bugs.eclipse.org/bugs/show_bug.cgi?id=501742

As an added bonus, it also works on the Dark Theme:
Bug 505851 – [Dark Theme] Style the HOVER_ colors for the dark theme https://bugs.eclipse.org/bugs/show_bug.cgi?id=505851