aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-11-22 04:37:49 +0300
committerHenry Jameson <me@hjkos.com>2018-11-22 04:37:49 +0300
commit631b8433c04799a04da5369273f5d1861a346739 (patch)
treeef20b0279848e8108acb1cd25e929ae0b5c4a165 /src/components/style_switcher/style_switcher.vue
parent324aadb7c180baf51e77d08058683c7e256bfcfb (diff)
bundling v2 themes works
Diffstat (limited to 'src/components/style_switcher/style_switcher.vue')
-rw-r--r--src/components/style_switcher/style_switcher.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue
index 658bb288..37709363 100644
--- a/src/components/style_switcher/style_switcher.vue
+++ b/src/components/style_switcher/style_switcher.vue
@@ -8,10 +8,10 @@
<option v-for="style in availableStyles"
:value="style"
:style="{
- backgroundColor: style[1],
- color: style[3]
+ backgroundColor: style[1] || style.theme.colors.bg,
+ color: style[3] || style.theme.colors.text
}">
- {{style[0]}}
+ {{style[0] || style.name}}
</option>
</select>
<i class="icon-down-open"/>