This commit is contained in:
Neil.X.Zhang
2025-07-02 12:19:47 +08:00
parent 19dcef4ba8
commit 38c3486dcf
5 changed files with 234 additions and 67 deletions

View File

@@ -25,6 +25,7 @@ export interface AppSettings {
theme: "light" | "dark" | "auto";
autoPlay: boolean;
playbackSpeed: number;
apiBaseUrl: string;
}
// --- Helper ---
@@ -177,6 +178,7 @@ export class SettingsManager {
theme: "auto",
autoPlay: true,
playbackSpeed: 1.0,
apiBaseUrl: "http://127.0.0.1:3001",
};
try {
const data = await AsyncStorage.getItem(STORAGE_KEYS.SETTINGS);