Search code examples
javaswinglook-and-feelsubstance

Change text color of Substance LookAndFeel


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...


Solution

  • 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.