我是 XML 新手,也是 Java Synth LAF 的新手……
我已将以下 XML 样式文件正确加载到我的 UIManager:
<synth>
<style id="default">
<font name="Segoe UI" size="16"/>
</style>
<bind style="default" type="region" key=".*"/>
<style id="button">
<opaque value="true">
<insets top="10" bottom="10" left="10" right="10"/>
<state>
<color type="BACKGROUND" value="#FFFFFF"/>
<color type="TEXT_FOREGROUND" value="#000000"/>
</state>
</opaque>
</style>
<bind style="button" type="region" key="Button"/>
默认样式工作正常,但按钮样式由于某种原因不起作用。
提前致谢