fix theme tab
This commit is contained in:
parent
dfb376cbd4
commit
ecefbac4ec
2 changed files with 1 additions and 4 deletions
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue