Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adlk/mojave-isdarkmode

Simple module to check if macOS Mojave dark mode is enabled
https://github.com/adlk/mojave-isdarkmode

dark electron macos mode mojave nodejs

Last synced: about 2 months ago
JSON representation

Simple module to check if macOS Mojave dark mode is enabled

Awesome Lists containing this project

README

        

# 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`.

```js
import isDarkMode from "@adlk/mojave-isdarkmode";

async function config() {
const isDarkModeEnabled = await isDarkModeEnabled();

return {
randomAppConfig: true,
minimizeToSystemTray: false,
isDarkModeEnabled,
};
}
```