Bug 507073: [content assist] Use fitting colors for Content assist's
additional info pane

Part 1:
HTMLPrinter should use default JFace colours suitable for presenting
information rather than that of tooltips (INFO_*).
The reason is on Gtk, tooltips have black background and white text,
making it hard to read information. (See screenshot in bug).

This makes Code-completion's javadoc window have suitable colours
on gtk again (See screen shot in bug).

On Windows/Cocoa, there is no change in behaviour. This is Gtk specific.

Test (gtk):
- Launch child Eclipse
- Type "Obj", then ctrl+space (keep pressing ctrl+space till "Object"
  appears as an option)
- Inspect javadoc popup.

Before: Black background/white text
After: White background/black text:

NOTE:
- This may make some darktheme elements appear white-ish in some cases.
Part 2 (see bug) addresses the case for the javadoc info additional
plane on Dark theme.
For other elements, similar strategies should be used to call
HTMLPrinter with colours suitable for darktheme.

Change-Id: I8b11d1db9c472693d1322f7a714e0a4e60650c95
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=507073
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
1 file changed