From 081b6ed457eeb3a676baa9189df66bf5eadc3fb4 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 13 Nov 2019 10:09:02 +0100 Subject: [PATCH] Fix the dark mode on Linux and Windows --- source/browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/browser.ts b/source/browser.ts index 25d7b4352..42f648396 100644 --- a/source/browser.ts +++ b/source/browser.ts @@ -272,7 +272,7 @@ ipc.on('toggle-video-autoplay', () => { }); function setDarkMode(): void { - if (config.get('followSystemAppearance')) { + if (is.macos && config.get('followSystemAppearance')) { api.nativeTheme.themeSource = 'system'; } else { api.nativeTheme.themeSource = config.get('darkMode') ? 'dark' : 'light';