hunk.code_window: 					.is_fullscreen()
   					.expect("Can't get fullscreen state")
   				{
   					"window_fullscreened"
   				} else {
  
hunk.labels: keep keep keep replace keep
hunk.after_edit: 					(true, "window_fullscreened")
  
hunk.file_path: apps/desktop/src-tauri/src/main.rs
hunk.type: replace
file: import { useSnapshot } from 'valtio';
  
  import { valtioPersist } from '../lib';
  
  export type CoordinatesFormat = 'dms' | 'dd';
  export type DistanceFormat = 'km' | 'miles';
  export type TemperatureFormat = 'celsius' | 'fahrenheit';
  
  const unitFormatStore = valtioPersist('sd-display-units', {
  	// these are the defaults as 99% of users would want to see them this way
  	// if the `en-US` locale is detected during onboarding, the distance/temp are changed to freedom units
  	coordinatesFormat: 'dms' as CoordinatesFormat,
  	distanceFormat: 'km' as DistanceFormat,
  	temperatureFormat: 'celsius' as TemperatureFormat
  });
  
  export function useUnitFormatStore() {
  	return useSnapshot(unitFormatStore);
  }
  
  export function getUnitFormatStore() {
  	return unitFormatStore;
  }
  