systemPreferences
systemPreferences
Get system preferences.
Process: Main
const {systemPreferences} = require('electron') console.log(systemPreferences.isDarkMode())
Events
The systemPreferences
object emits the following events:
Event: ‘accent-color-changed’ Windows
Returns:
-
event
Event -
newColor
String - The new RGBA color the user assigned to be their system accent color.
Event: ‘color-changed’ Windows
Returns:
-
event
Event
Event: ‘inverted-color-scheme-changed’ Windows
Returns:
-
event登录查看完整内容