Merge pull request #6135 from blainesch/patch-1
Add copy/pasta example for system preferences.
This commit is contained in:
commit
c44a6ad8b8
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
> Get system preferences.
|
||||
|
||||
```javascript
|
||||
const {systemPreferences} = require('electron');
|
||||
console.log(systemPreferences.isDarkMode());
|
||||
```
|
||||
|
||||
## Methods
|
||||
|
||||
### `systemPreferences.isDarkMode()` _macOS_
|
||||
|
|
Loading…
Reference in a new issue