File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
2- <v-app dark >
2+ <v-app >
33 <!-- <v-navigation-drawer
44 v-model="drawer"
55 :mini-variant="miniVariant"
2828 <v-app-bar-nav-icon @click.stop =" drawer = !drawer" />
2929 <v-toolbar-title v-text =" title" />
3030
31- <v-divider inset vertical ></v-divider >
31+ <v-divider class = " mx-4 " inset vertical ></v-divider >
3232 <v-spacer />
3333 <!-- Language button -->
3434 <div class =" text-center" >
3535 <v-menu bottom offset-y open-on-hover rounded =" lg" >
3636 <template v-slot :activator =" { on , attrs } " >
3737 <v-btn color =" grey" large icon v-bind =" attrs" v-on =" on" >
38- <v-icon >{{ ' mdi-translate' }} </v-icon >
38+ <v-icon >mdi-translate</v-icon >
3939 </v-btn >
4040 </template >
4141 <v-list >
5353 </v-menu >
5454 </div >
5555 <!-- Language button -->
56+ <!-- Dark/Light Mode -->
57+ <v-btn
58+ color =" grey"
59+ large
60+ icon
61+ v-bind =" attrs"
62+ v-on =" on"
63+ @click =" switchTheme"
64+ >
65+ <v-icon >{{ 'mdi-brightness-6' }}</v-icon >
66+ </v-btn >
5667 </v-app-bar >
5768 <v-main >
5869 <v-container >
@@ -74,6 +85,9 @@ export default {
7485 this .$vuetify .lang .current = this .languages [i].code
7586 this .$vuetify .rtl = this .languages [i].rtl
7687 },
88+ switchTheme () {
89+ this .$vuetify .theme .dark = ! this .$vuetify .theme .dark
90+ },
7791 },
7892 data () {
7993 return {
You can’t perform that action at this time.
0 commit comments