Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adlk/mojave-isdarkmode
- Owner: adlk
- Created: 2018-11-15T14:38:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T19:11:16.000Z (about 6 years ago)
- Last Synced: 2024-10-31T17:48:36.309Z (2 months ago)
- Topics: dark, electron, macos, mode, mojave, nodejs
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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,
};
}
```