mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/451 Closes #443 Approved-by: Marie <marie@kaifa.ch> Approved-by: Ember <acomputerdog@gmail.com>
This commit is contained in:
		
						commit
						12d92b174d
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -139,6 +139,7 @@ type Profile = { | ||||||
| 		hot: Record<keyof typeof defaultStoreSaveKeys, unknown>; | 		hot: Record<keyof typeof defaultStoreSaveKeys, unknown>; | ||||||
| 		cold: Record<keyof typeof coldDeviceStorageSaveKeys, unknown>; | 		cold: Record<keyof typeof coldDeviceStorageSaveKeys, unknown>; | ||||||
| 		fontSize: string | null; | 		fontSize: string | null; | ||||||
|  | 		lang: string | null; | ||||||
| 		cornerRadius: string | null; | 		cornerRadius: string | null; | ||||||
| 		useSystemFont: 't' | null; | 		useSystemFont: 't' | null; | ||||||
| 		wallpaper: string | null; | 		wallpaper: string | null; | ||||||
|  | @ -197,6 +198,7 @@ function getSettings(): Profile['settings'] { | ||||||
| 		hot, | 		hot, | ||||||
| 		cold, | 		cold, | ||||||
| 		fontSize: miLocalStorage.getItem('fontSize'), | 		fontSize: miLocalStorage.getItem('fontSize'), | ||||||
|  | 		lang: miLocalStorage.getItem('lang'), | ||||||
| 		cornerRadius: miLocalStorage.getItem('cornerRadius'), | 		cornerRadius: miLocalStorage.getItem('cornerRadius'), | ||||||
| 		useSystemFont: miLocalStorage.getItem('useSystemFont') as 't' | null, | 		useSystemFont: miLocalStorage.getItem('useSystemFont') as 't' | null, | ||||||
| 		wallpaper: miLocalStorage.getItem('wallpaper'), | 		wallpaper: miLocalStorage.getItem('wallpaper'), | ||||||
|  | @ -312,6 +314,13 @@ async function applyProfile(id: string): Promise<void> { | ||||||
| 		miLocalStorage.removeItem('fontSize'); | 		miLocalStorage.removeItem('fontSize'); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | 	// lang | ||||||
|  | 	if (settings.lang) { | ||||||
|  | 		miLocalStorage.setItem('lang', settings.lang); | ||||||
|  | 	} else { | ||||||
|  | 		miLocalStorage.removeItem('lang'); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	// cornerRadius | 	// cornerRadius | ||||||
| 	if (settings.cornerRadius) { | 	if (settings.cornerRadius) { | ||||||
| 		miLocalStorage.setItem('cornerRadius', settings.cornerRadius); | 		miLocalStorage.setItem('cornerRadius', settings.cornerRadius); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue