bobbylight / AutoComplete

A code completion library for Swing text components, with special support for RSyntaxTextArea.
BSD 3-Clause "New" or "Revised" License
166 stars 55 forks source link

TipUtil uses incorrect color for description editor pane #57

Closed patrickangle closed 5 years ago

patrickangle commented 5 years ago

The background color of the description editor pane is being set based on the Color in ToolTip.background, but the corresponding foreground color is being set based on Label.foreground instead of ToolTip.foreground. The result is that in some darker look and feels (where labels are white but tooltips still have yellow backgrounds) the description text is difficult to see on top of the background.

Changing the label foreground color isn't a great solution, because the rest of the look and feel relies on the labels being a light color on top of the dark backgrounds.

Screen Shot 2019-08-03 at 5 07 49 PM
bobbylight commented 5 years ago

Thanks for the bug report!

bobbylight commented 5 years ago

While this should be fixed in the next release, note a workaround in the meantime could be to change the background color of that description window (I know sometimes using the tool tip color can look a little odd) via AutoCompletion.setDescriptionWindowColor(Color).