From 52ca83884e793639d0115adbed35117001b7730c Mon Sep 17 00:00:00 2001 From: zxc <1171051090@qq.com> Date: Sat, 2 Nov 2024 14:51:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=B0=E5=85=A8=E9=83=A8=E5=AF=B9=E6=B8=90=E5=8F=98=E5=A1=AB?= =?UTF-8?q?=E5=85=85=E5=BD=A2=E7=8A=B6=E6=9C=AA=E7=94=9F=E6=95=88=EF=BC=88?= =?UTF-8?q?#292=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useSlideTheme.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/useSlideTheme.ts b/src/hooks/useSlideTheme.ts index 77ab2069..98e003d5 100644 --- a/src/hooks/useSlideTheme.ts +++ b/src/hooks/useSlideTheme.ts @@ -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