From 9e5c362f383908d5d960031f430d24fab4e41bce Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 27 Dec 2023 21:32:22 -0500 Subject: [PATCH] SteamOS: always use dark theme --- src/main/mainWindow.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 6e9a05c..27b941b 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -442,6 +442,11 @@ function createMainWindow() { const runVencordMain = once(() => require(join(VENCORD_FILES_DIR, "vencordDesktopMain.js"))); export async function createWindows() { + if (isDeckGameMode) { + // In the Flatpak on SteamOS the theme is detected as light, but SteamOS only has a dark mode, so we just override it + nativeTheme.themeSource = "dark"; + } + const { startMinimized } = Settings.store; const splash = createSplashWindow(startMinimized); // SteamOS letterboxes and scales it terribly, so just full screen it