Simple module to check if macOS Mojave dark mode is enabled
This module is ready to be used in electron.
Install the module npm install @adlk/mojave-isdarkmode
.
import isDarkMode from "@adlk/mojave-isdarkmode";
async function config() {
const isDarkModeEnabled = await isDarkModeEnabled();
return {
randomAppConfig: true,
minimizeToSystemTray: false,
isDarkModeEnabled,
};
}