fix(app): default theme setting to auto instead of dark

This commit is contained in:
Mohamed Boudra
2026-03-29 09:26:15 +07:00
parent 9eb1f93296
commit f287c7f972
2 changed files with 11 additions and 1 deletions
@@ -30,6 +30,16 @@ describe("use-settings", () => {
);
});
it("defaults theme to auto when storage is empty", async () => {
asyncStorageMock.getItem.mockResolvedValue(null);
asyncStorageMock.setItem.mockResolvedValue();
const mod = await import("./use-settings");
const result = await mod.loadSettingsFromStorage();
expect(result.theme).toBe("auto");
});
it("loads persisted built-in daemon management state", async () => {
asyncStorageMock.getItem.mockImplementation(async (key: string) => {
if (key === "@paseo:app-settings") {
+1 -1
View File
@@ -12,7 +12,7 @@ export interface AppSettings {
}
export const DEFAULT_APP_SETTINGS: AppSettings = {
theme: "dark",
theme: "auto",
manageBuiltInDaemon: true,
};