aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-01-12 04:16:04 +0200
committerHenry Jameson <me@hjkos.com>2020-01-12 04:16:04 +0200
commit4418baf62aa7a8bef05568e7590b9b4303c29dc7 (patch)
tree97bf11628a8bbffb32a94622e45807ee40a37636 /src/components/style_switcher/style_switcher.vue
parentd342f32a94478bb6dc7fd356798d67179c811083 (diff)
fix
Diffstat (limited to 'src/components/style_switcher/style_switcher.vue')
-rw-r--r--src/components/style_switcher/style_switcher.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue
index f993e070..82b85bd5 100644
--- a/src/components/style_switcher/style_switcher.vue
+++ b/src/components/style_switcher/style_switcher.vue
@@ -27,8 +27,8 @@
:key="style.name"
:value="style"
:style="{
- backgroundColor: style[1] || style.theme.colors.bg,
- color: style[3] || style.theme.colors.text
+ backgroundColor: style[1] || (style.theme || style.source).colors.bg,
+ color: style[3] || (style.theme || style.source).colors.text
}"
>
{{ style[0] || style.name }}