0

Starting to use Eclipse 2018-12, the code preview flyout from content-assist has an unreadable foreground/background combination as in the following screen shot:

enter image description here

I found the Appearance->Color and Fonts->Content Assist preference, but this only takes care of the right part shown above with the white backgrond. (Similarly, if I hover over an element in the editor, the tooltip is also some unreadable dark color on black background.)

This is on Ubuntu. In my active theme I find

@define-color theme_tooltip_bg_color #fbeaa0;

which is clearly not black. The hint about tooltip comes from some of the ultra-old answers like https://superuser.com/a/198589/345087, https://stackoverflow.com/a/38135826/2954288, https://stackoverflow.com/a/3572010/2954288, https://askubuntu.com/a/101913/367444, but these don't seem to apply anymore.

Does anyone know how to fix this with the most recent Eclipse release?

EDIT: I should add that the black window is shown only for Template Proposals Java/Java Type/Java Non Type Proposals are all good.

Harald
  • 4,575
  • 5
  • 33
  • 72

2 Answers2

1

In Window > Preferences: General > Appearance > Colors and Fonts you have to change the color Basic > Information background color, not the Basic > Content Assist background color for that.

Only in Java templates, this preference is not used probably due to a bug in Eclipse 2018-12. Please report it to Eclipse JDT. Thanks for reporting it to Eclipse (as Eclipse bug 543110).

howlger
  • 31,050
  • 11
  • 59
  • 99
  • To bad, but this applies only to my comment about the "hover over java element", which can indeed be changed this way. – Harald Dec 31 '18 at 13:33
  • It works for me for the black area that is shown in your screenshot not only for infos shown on hover. Does it work with a new workspace? – howlger Dec 31 '18 at 15:39
  • No, even in a fresh workspace with no settings changed, the template information bit keeps its black background. – Harald Jan 01 '19 at 13:43
  • @Harald That looks to me like a bug that hasn't been reported yet (see my edited answer). – howlger Jan 01 '19 at 14:37
1

Window > Preferences: General > Appearance > Colors and Fonts

Set the javadoc background to white - // discovered on photon through experimentation

Stephen L.
  • 64
  • 3