Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

JLabel.setForeground #25

Closed
stefan-reich opened this issue Mar 11, 2017 · 6 comments
Closed

JLabel.setForeground #25

stefan-reich opened this issue Mar 11, 2017 · 6 comments

Comments

@stefan-reich
Copy link

stefan-reich commented Mar 11, 2017

Can I still do that? It seems I'm gretting gray labels when Substance is enabled even if I say setForeground(Color.WHITE). Not sure if I'm doing anything wrong.

http://tinybrain.de/1007194
http://tinybrain.de/1007200

With Substance:
Screenshot

Without Substance:
Screenshot

BTW, with some twists (and apart of this bug), I got full-screen finally working well with Substance on Linux and Windows now. If anyone is interested: The magic for that is here.

@kirill-grouchnikov
Copy link
Owner

See SubstanceLookAndFeel.COLORIZATION_FACTOR

@stefan-reich
Copy link
Author

How would I use it? Does it break anything else?

@IvanRF
Copy link
Contributor

IvanRF commented Apr 18, 2017

How would I use it?

component.putClientProperty(SubstanceLookAndFeel.COLORIZATION_FACTOR, new Double(factor));

@kirill-grouchnikov
Copy link
Owner

I don't quite understand the question of "break anything else".

By choosing to use a look-and-feel you choose to have your entire UI rendered by that look-and-feel. If you want to have some parts of your UI use colors that are different from that look, you're already breaking some visual continuity and consistency.

Substance decoration areas and decoration painters allow to maintain such consistency while also delineating and designating certain areas of your app as "special" ones - such as toolbar or footers for example. If you go lower than that and start setting custom foreground / background colors on specific controls, that might indeed create visual disparities.

Up to you how far you want to deviate from a Substance skin.

@stefan-reich
Copy link
Author

stefan-reich commented Apr 18, 2017 via email

@kirill-grouchnikov
Copy link
Owner

As I said, see the COLORIZATION_FACTOR and its Javadocs

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

No branches or pull requests

3 participants