更改物质LookAndFeel的文本颜色 [英] Change text color of Substance LookAndFeel
问题描述
我正在尝试更改Substance Look and Feel的文本颜色(实际上,我正在使用SubstanceGraphiteGlassLookAndFeel. 我不知道该怎么做...
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...
推荐答案
最终,您必须弄乱配色方案.
Ultimately you have to mess with the color schemes.
由于您使用的是Graphite Glass外观,因此在Java中未设置颜色值,因此使配色方案变得更加容易.如果将文件/org/pushingpixels/substance/api/skin/graphite.colorschemes
复制到类路径中,则可以进入各种方案定义,并将colorForeground条目更改为所需的内容.可能是黑色(#FFFFFF
)或各种灰色(#cccccc
,#999999
,#666666
,#333333
).但是由于它们是十六进制颜色,所以您可以做任何您想做的事情.
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.
这篇关于更改物质LookAndFeel的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!