aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-11-20 23:25:38 +0300
committerHenry Jameson <me@hjkos.com>2018-11-20 23:25:38 +0300
commitd7af2c8419df59d8b897bc57e94f6cc67bd60eca (patch)
tree5f3faba14976c996086afa8a58f56d6beb1259df /src/components/style_switcher/style_switcher.js
parent2609c0d0d279031cba579d60bf94cca81544ec4f (diff)
mentioned bug in tab-switcher, made shadow-control work in zero-state
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
-rw-r--r--src/components/style_switcher/style_switcher.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 7cb6197c..acb1764d 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -93,6 +93,9 @@ export default {
},
mounted () {
this.normalizeLocalState(this.$store.state.config.customTheme)
+ if (typeof this.shadowSelected === 'undefined') {
+ this.shadowSelected = this.shadowsAvailable[0]
+ }
},
computed: {
selectedVersion () {
@@ -180,6 +183,7 @@ export default {
if (!this.preview.theme.colors) return { colors: {}, opacity: {}, radii: {}, shadows: {} }
return this.preview.theme
},
+ // This needs optimization maybe
previewContrast () {
if (!this.previewTheme.colors.bg) return {}
const colors = this.previewTheme.colors