fix importing theme file from old editor
This commit is contained in:
parent
0e1cfaeb39
commit
e9b125a6a1
1 changed files with 8 additions and 16 deletions
|
|
@ -509,22 +509,14 @@ export default {
|
|||
}
|
||||
},
|
||||
setCustomTheme() {
|
||||
useInterfaceStore().setThemeV2({
|
||||
customTheme: {
|
||||
ignore: true,
|
||||
themeFileVersion: this.selectedVersion,
|
||||
themeEngineVersion: CURRENT_VERSION,
|
||||
...this.previewTheme,
|
||||
},
|
||||
customThemeSource: {
|
||||
themeFileVersion: this.selectedVersion,
|
||||
themeEngineVersion: CURRENT_VERSION,
|
||||
shadows: this.shadowsLocal,
|
||||
fonts: this.fontsLocal,
|
||||
opacity: this.currentOpacity,
|
||||
colors: this.currentColors,
|
||||
radii: this.currentRadii,
|
||||
},
|
||||
useInterfaceStore().setTheme({
|
||||
themeFileVersion: this.selectedVersion,
|
||||
themeEngineVersion: CURRENT_VERSION,
|
||||
shadows: this.shadowsLocal,
|
||||
fonts: this.fontsLocal,
|
||||
opacity: this.currentOpacity,
|
||||
colors: this.currentColors,
|
||||
radii: this.currentRadii,
|
||||
})
|
||||
},
|
||||
updatePreviewColors() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue