mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Update theme.vue
This commit is contained in:
		
							parent
							
								
									d0ed5a8b59
								
							
						
					
					
						commit
						92937b8b3c
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -63,6 +63,7 @@ import MkSwitch from '../../components/ui/switch.vue';
 | 
			
		|||
import i18n from '../../i18n';
 | 
			
		||||
import { Theme, builtinThemes, applyTheme } from '../../theme';
 | 
			
		||||
import { selectFile } from '../../scripts/select-file';
 | 
			
		||||
import { isDeviceDarkmode } from '../../scripts/is-device-darkmode';
 | 
			
		||||
 | 
			
		||||
export default Vue.extend({
 | 
			
		||||
	i18n,
 | 
			
		||||
| 
						 | 
				
			
			@ -132,6 +133,12 @@ export default Vue.extend({
 | 
			
		|||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		syncDeviceDarkMode() {
 | 
			
		||||
			if (this.$store.state.device.syncDeviceDarkMode) {
 | 
			
		||||
				this.$store.commit('device/set', { key: 'darkMode', value: isDeviceDarkmode() });
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		wallpaper() {
 | 
			
		||||
			if (this.wallpaper == null) {
 | 
			
		||||
				localStorage.removeItem('wallpaper');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue