aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/DynamicTheme.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/DynamicTheme.vue b/src/components/DynamicTheme.vue
index cf9963b..2ccb47b 100644
--- a/src/components/DynamicTheme.vue
+++ b/src/components/DynamicTheme.vue
@@ -25,7 +25,13 @@ export default {
25 getVars: function (theme) { 25 getVars: function (theme) {
26 let vars = []; 26 let vars = [];
27 for (const themeVars in theme) { 27 for (const themeVars in theme) {
28 vars.push(`--${themeVars}: ${theme[themeVars]}`); 28 let value = `${theme[themeVars]}`;
29 if (!value) {
30 value = "inital";
31 } else if (themeVars == "background-image") {
32 value = `url(${theme[themeVars]})`;
33 }
34 vars.push(`--${themeVars}: ${value}`);
29 } 35 }
30 return vars.join(";"); 36 return vars.join(";");
31 }, 37 },