非纯色填充
您在 Figma 中对矩形或边框图层设置的填充样式,目标Qt for MCUs 组件无法绘制。该组件仅能绘制单一纯色或单一水平/垂直线性渐变。当图层出现以下情况时,系统会报告此问题:
- 无可见填充。
- 图像填充。
- 非线性或倾斜的渐变。
- 渐变层上叠加了半透明填充,或叠加了混合模式非“Normal ”的填充。
堆叠的纯色填充在转换时不会出现此问题,即使顶层填充为半透明也是如此。“Figma to Qt ”会将填充自上而下混合至第一个完全不透明的填充,最终融合为单一颜色。位于第一个完全不透明填充下方的填充将被隐藏,且不影响结果。
注意: 混合后的颜色 以字面值形式写入。如果任何被混合的填充与变量相关联,则导出的颜色不会与相应的设计令牌相关联,因为没有任何单个令牌能够代表该混合效果。在此情况下,确切的颜色优先于令牌。无需混合的填充将保留其令牌绑定。
选择“Use solid fill ”可在 Figma 中为整个图层使用纯色填充。否则,该图层将作为图像渲染。
另请参阅 “修复转换问题”。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.