@adlk/mojave-isdarkmode

1.0.2 • Public • Published

macOS-isDarkMode

Simple module to check if macOS Mojave dark mode is enabled

This module is ready to be used in electron.

How to use

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,
  };
}

Readme

Keywords

Package Sidebar

Install

npm i @adlk/mojave-isdarkmode

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

2.96 kB

Total Files

3

Last publish

Collaborators

  • adlk