1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-02-13 10:10:43 +01:00

Update isDarkMode to point to nativeTheme

This commit is contained in:
Marquis Kurt 2020-06-17 20:25:00 -04:00
parent e58208ba8d
commit 33b9f9d76d
No known key found for this signature in database
GPG Key ID: 725636D259F5402D

@ -27,7 +27,7 @@ export function isDarkMode() {
// Lift window to an ElectronWindow and add use require()
const eWin = window as ElectronWindow;
const { remote } = eWin.require("electron");
return remote.systemPreferences.isDarkMode();
return remote.nativeTheme.shouldUseDarkColors;
}
/**