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:
parent
e58208ba8d
commit
33b9f9d76d
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user