♻️ refactor: centralize app settings

This commit is contained in:
2026-06-30 21:16:05 +07:00
parent 5fe93b26df
commit 9b90140cfd
20 changed files with 284 additions and 134 deletions
+10
View File
@@ -1,12 +1,22 @@
import type { InstanceRegion } from "./instance";
import type { AppLocale } from "../locales";
export type PreferredRegion = InstanceRegion | "auto";
export type AppSchemeMode = "light" | "dark" | "auto";
export interface AppPreferences {
schemeMode: AppSchemeMode;
accent: string | null;
locale: AppLocale;
showDebugNav: boolean;
}
export interface AppConfig {
version: string;
gamePath: string | null;
detectedGamePath: string | null;
preferredRegion: PreferredRegion;
preferences: AppPreferences;
}
export interface RegionPing {