From b3a9e7ccba5c48db65a42ea1d62ba0f60742b0e2 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Sun, 21 Jan 2024 22:58:10 -0800 Subject: [PATCH] default theme dark --- src/main/main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 388351c0..50116805 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -417,9 +417,7 @@ const createWindow = async () => { } const theme = store.get('theme') as 'dark' | 'light' | 'system' | undefined; - if (theme) { - nativeTheme.themeSource = theme; - } + nativeTheme.themeSource = theme || 'dark'; }; app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService');