mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-30 21:24:18 +00:00 
			
		
		
		
	you shall not pass... or maybe yes
This commit is contained in:
		
							parent
							
								
									466e4efc23
								
							
						
					
					
						commit
						6237f0e6a2
					
				
					 6 changed files with 71 additions and 2 deletions
				
			
		|  | @ -99,7 +99,7 @@ | |||
|           <v-divider/> | ||||
|           <div class="pa-2 d-flex"> | ||||
|             <v-spacer/> | ||||
|             <v-btn @click.stop="$vuetify.theme.dark = !$vuetify.theme.dark" icon> | ||||
|             <v-btn @click.stop="setIsThemeDark" icon> | ||||
|               <v-icon v-html="$vuetify.theme.dark ? 'mdi-brightness-4' : 'mdi-brightness-7'"></v-icon> | ||||
|             </v-btn> | ||||
|           </div> | ||||
|  | @ -191,6 +191,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) | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  |  | |||
|  | @ -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) | ||||
|     } | ||||
|   }, | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine