fix importing theme file from old editor

This commit is contained in:
Henry Jameson 2026-05-05 14:26:40 +03:00
commit e9b125a6a1

View file

@ -509,22 +509,14 @@ export default {
} }
}, },
setCustomTheme() { setCustomTheme() {
useInterfaceStore().setThemeV2({ useInterfaceStore().setTheme({
customTheme: { themeFileVersion: this.selectedVersion,
ignore: true, themeEngineVersion: CURRENT_VERSION,
themeFileVersion: this.selectedVersion, shadows: this.shadowsLocal,
themeEngineVersion: CURRENT_VERSION, fonts: this.fontsLocal,
...this.previewTheme, opacity: this.currentOpacity,
}, colors: this.currentColors,
customThemeSource: { radii: this.currentRadii,
themeFileVersion: this.selectedVersion,
themeEngineVersion: CURRENT_VERSION,
shadows: this.shadowsLocal,
fonts: this.fontsLocal,
opacity: this.currentOpacity,
colors: this.currentColors,
radii: this.currentRadii,
},
}) })
}, },
updatePreviewColors() { updatePreviewColors() {