Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Synth 中的 FOREGROUND 和 TEXT_FOREGROUND 有什么区别?例如,<Color value="red" type="FOREGROUND"/>和<Color value="red" type="TEXT_FOREGROUND"/>
<Color value="red" type="FOREGROUND"/>
<Color value="red" type="TEXT_FOREGROUND"/>
通常,任何文本组件,无论是Label,还是诸如此类的东西都将解释为“文本颜色”。是的,这绝对是误导。ButtonTextFieldFOREGROUND
Label
Button
TextField
FOREGROUND
TEXT_FOREGROUND通常用作“选定组件的文本颜色”,如ComboBox. (TEXT_BACKGROUND因此是“选定组件的背景颜色”)
TEXT_FOREGROUND
ComboBox
TEXT_BACKGROUND