Add copy/pasta example for system preferences.
Most of the other api docs have one example of where to find the module in a copy/paste format. This pull request adds one for the system preferences.
This commit is contained in:
parent
c4c768ea8c
commit
c75f3a8b5e
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
> Get system preferences.
|
> Get system preferences.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const {systemPreferences} = require('electron');
|
||||||
|
console.log(systemPreferences.isDarkMode());
|
||||||
|
```
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
### `systemPreferences.isDarkMode()` _macOS_
|
### `systemPreferences.isDarkMode()` _macOS_
|
||||||
|
|
Loading…
Reference in a new issue