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 () { selectedTheme () {
this.dismissWarning() this.dismissWarning()
if (Object.prototype.toString.call(this.selected) === '[object String]') {
this.selected = JSON.parse(this.selected)
}
if (this.selectedVersion === 1) { if (this.selectedVersion === 1) {
if (!this.keepRoundness) { if (!this.keepRoundness) {
this.clearRoundness() this.clearRoundness()

View file

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