diff --git a/src/components/settings_modal/tabs/appearance_tab.js b/src/components/settings_modal/tabs/appearance_tab.js index c1fdd8c1a..df6f5d8a3 100644 --- a/src/components/settings_modal/tabs/appearance_tab.js +++ b/src/components/settings_modal/tabs/appearance_tab.js @@ -155,13 +155,15 @@ const AppearanceTab = { })) }) + this.previewTheme('stock', 'v3') + if (window.IntersectionObserver) { this.intersectionObserver = new IntersectionObserver((entries, observer) => { entries.forEach(({ target, isIntersecting }) => { if (!isIntersecting) return const theme = this.availableStyles.find(x => x.key === target.dataset.themeKey) this.$nextTick(() => { - if (theme) theme.ready = true + if (theme) this.previewTheme(theme.key, theme.version, theme.data) }) observer.unobserve(target) }) diff --git a/src/components/settings_modal/tabs/appearance_tab.vue b/src/components/settings_modal/tabs/appearance_tab.vue index d49a28651..593aa3000 100644 --- a/src/components/settings_modal/tabs/appearance_tab.vue +++ b/src/components/settings_modal/tabs/appearance_tab.vue @@ -16,15 +16,7 @@ :disabled="switchInProgress" @click="resetTheming" > - - - - - - +

{{ $t('settings.style.stock_theme_used') }} v3 @@ -61,17 +53,7 @@ :disabled="switchInProgress" @click="style.version === 'v2' ? setTheme(style.key) : setStyle(style.key)" > - - -
- -
- - - +

{{ style.name }} {{ style.version }}