Skip to content

Simple module to check if macOS Mojave dark mode is enabled

Notifications You must be signed in to change notification settings

adlk/mojave-isdarkmode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple module to check if macOS Mojave dark mode is enabled

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published