I'm trying to change the text color of the Substance Look and Feel (in fact I'm using the SubstanceGraphiteGlassLookAndFeel . I don't know how to do that...
2 Answers
Ultimately you have to mess with the color schemes.
Since you are using the Graphite Glass skin, messing with the color schemes is considerably easier since they values are not set in Java code. If you copy he file /org/pushingpixels/substance/api/skin/graphite.colorschemes
into your classpath, you can go into the various scheme definitions and change the colorForeground entries to be whatever you want. Possibly black (#FFFFFF
) or the various greys (#cccccc
, #999999
, #666666
, #333333
). But since they are hex colors you can do whatever you want.

- 5,318
- 4
- 28
- 37
-
Thanks shemnon. It's exactly what I expected! – paranoia25 Sep 14 '12 at 10:10
change all
Keys
inUIManager
by killing all things that to create this great themechange value for all
Keys
inUIManager
for allJComponents
or concreteJComponent
change value for all value in
Highlighter
(s) for allJComponents
or concreteJComponent
I'm not sure if this theme to use or not the
Trident
too, have to check on formerKirill's forum
or simpler to change for concrete
JComponents
instance, have to repeated for allJComponents
disclaimer
never to change
Colors
orFonts
forCustom Look and Feels
, have to check ifis or isn't
there direct way implemented byauthor of L&F
, never to tried that for allJComponents
and this theme isn't my favorite, then point second is safer by eliminate side effect implemented inCustom L&F
, but in this case you probably to loose implementedHighlighter
(s)

- 109,525
- 20
- 134
- 319
-
Playing with the UIManager in Substance won't work. Krill subverted that path for the most part, at least when it comes to the substance UI delegates. – shemnon Sep 13 '12 at 19:57
-
@shemnon I used that for Substance where Painter or HightLighter isn't used, I doubt to change the value into colorschemes for JButtons Components only, my view, your is described ... – mKorbel Sep 13 '12 at 21:14