Skip to content

ElectronSystemPreferences.on('accent-color-changed') method

ElectronSystemPreferences › on(‘accent-color-changed’)

Unofficial

Registers a listener for the accent-color-changed event.

Signature:

on(event: "accent-color-changed", listener: (event: ElectronEvent, newColor: string) => void): this

Parameters:

ParameterTypeDescription
event"accent-color-changed"The event name.
listener(event: ElectronEvent, newColor: string) => voidThe event handler.

Returns: thisThis ElectronSystemPreferences instance.