Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip on inactive Component is hard to read #3

Open
tejoe opened this issue Apr 14, 2020 · 0 comments
Open

Tooltip on inactive Component is hard to read #3

tejoe opened this issue Apr 14, 2020 · 0 comments

Comments

@tejoe
Copy link

tejoe commented Apr 14, 2020

Tooltips on inactive elements do not use the AbstractTheme.getTooltipForegroundColor, instead they use AbstractTheme.getDisabledForegroundColor(). This makes the most tooltips quite hard to read. IMHO the tooltip information is not less relevant only if the component is disabled.

Here is the corresponding code:

if (c instanceof JToolTip) {
JToolTip tip = (JToolTip) c;
if (tip.getComponent() != null && tip.getComponent().isEnabled()) {
c.setForeground(AbstractLookAndFeel.getTheme().getTooltipForegroundColor());
} else {
c.setForeground(AbstractLookAndFeel.getTheme().getDisabledForegroundColor());
}
}

Is there any way, that you could change this. I would suggest new Property
ToolTip.disabledForegroundColor defaulting to old behavior.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant