From 631b8433c04799a04da5369273f5d1861a346739 Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Thu, 22 Nov 2018 04:37:49 +0300
Subject: bundling v2 themes works

---
 src/components/style_switcher/style_switcher.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/style_switcher/style_switcher.vue')

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"/>
-- 
cgit v1.2.3-70-g09d2

