fix: 应用主题到全部对渐变填充形状未生效(#292)

This commit is contained in:
zxc 2024-11-02 14:51:42 +08:00
parent 537363ec67
commit 52ca83884e

View File

@ -338,7 +338,10 @@ export default () => {
if ('shadow' in el && el.shadow) el.shadow = shadow
}
if (el.type === 'shape') el.fill = themeColor
if (el.type === 'shape') {
el.fill = themeColor
if (el.gradient) delete el.gradient
}
else if (el.type === 'line') el.color = themeColor
else if (el.type === 'text') {
el.defaultColor = fontColor