1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-12-17 15:40:37 +00:00

you shall not pass... or maybe yes

This commit is contained in:
Maxime Moraine 2020-04-18 15:27:29 +02:00
parent 466e4efc23
commit 6237f0e6a2
6 changed files with 71 additions and 2 deletions

View file

@ -6,7 +6,7 @@
</v-toolbar-title>
<SRDSearchBox v-if="$site.themeConfig.search !== false && $page.frontmatter.search !== false" />
<v-spacer />
<v-btn class="hidden-sm-and-down" @click.stop="$vuetify.theme.dark = !$vuetify.theme.dark" icon>
<v-btn class="hidden-sm-and-down" @click.stop="setIsThemeDark" icon>
<v-icon v-html="$vuetify.theme.dark ? 'mdi-brightness-4' : 'mdi-brightness-7'"></v-icon>
</v-btn>
<v-btn class="hidden-sm-and-down" @click.stop="toggleAboutDialog" icon>
@ -70,6 +70,10 @@ export default {
},
toggleAboutDialog () {
this.$store.commit('setIsOpenAboutDialog', !this.$store.state.isOpenAboutDialog)
},
setIsThemeDark () {
this.$vuetify.theme.dark = !this.$vuetify.theme.dark
this.$store.commit('setIsThemeDark', this.$vuetify.theme.dark)
}
},