fix theme tab

This commit is contained in:
sadposter 2022-01-19 23:02:06 +00:00
parent dfb376cbd4
commit ecefbac4ec
2 changed files with 1 additions and 4 deletions

View file

@ -757,9 +757,6 @@ export default {
},
selectedTheme () {
this.dismissWarning()
if (Object.prototype.toString.call(this.selected) === '[object String]') {
this.selected = JSON.parse(this.selected)
}
if (this.selectedVersion === 1) {
if (!this.keepRoundness) {
this.clearRoundness()

View file

@ -63,7 +63,7 @@
<option
v-for="style in availableStyles"
:key="style.name"
:value="JSON.stringify(style)"
:value="style.name || style[0]"
:style="{
backgroundColor: style[1] || (style.theme || style.source).colors.bg,
color: style[3] || (style.theme || style.source).colors.text