File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
resources/stubs/presets/theme_toggle Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 8686 preferredColorScheme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light',
8787 themeColor: {{ theme_color ?? 'false' }},
8888 themeLight: function() {
89+ this.themeToggleOpen = false
8990 this.$store.theme.set('light')
9091 this.setLightTheme()
9192 },
9293 themeDark: function() {
94+ this.themeToggleOpen = false
9395 this.$store.theme.set('dark')
9496 this.setDarkTheme()
9597 },
9698 themeSystem: function() {
99+ this.themeToggleOpen = false
97100 this.$store.theme.set('system')
98101 window.matchMedia('(prefers-color-scheme: light)').matches && this.setLightTheme()
99102 window.matchMedia('(prefers-color-scheme: dark)').matches && this.setDarkTheme()
You can’t perform that action at this time.
0 commit comments