1.0.2 • Published 5 years ago

@adlk/mojave-isdarkmode v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago