Merge pull request #6135 from blainesch/patch-1

Add copy/pasta example for system preferences.
This commit is contained in:
Cheng Zhao 2016-06-20 00:34:40 +00:00 committed by GitHub
commit c44a6ad8b8

View file

@ -2,6 +2,11 @@
> Get system preferences.
```javascript
const {systemPreferences} = require('electron');
console.log(systemPreferences.isDarkMode());
```
## Methods
### `systemPreferences.isDarkMode()` _macOS_