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,14 +509,7 @@ export default {
} }
}, },
setCustomTheme() { setCustomTheme() {
useInterfaceStore().setThemeV2({ useInterfaceStore().setTheme({
customTheme: {
ignore: true,
themeFileVersion: this.selectedVersion,
themeEngineVersion: CURRENT_VERSION,
...this.previewTheme,
},
customThemeSource: {
themeFileVersion: this.selectedVersion, themeFileVersion: this.selectedVersion,
themeEngineVersion: CURRENT_VERSION, themeEngineVersion: CURRENT_VERSION,
shadows: this.shadowsLocal, shadows: this.shadowsLocal,
@ -524,7 +517,6 @@ export default {
opacity: this.currentOpacity, opacity: this.currentOpacity,
colors: this.currentColors, colors: this.currentColors,
radii: this.currentRadii, radii: this.currentRadii,
},
}) })
}, },
updatePreviewColors() { updatePreviewColors() {