Skip to content

ElectronSystemPreferences.setAppLevelAppearance method

ElectronSystemPreferences › setAppLevelAppearance

Unofficial

Sets the appearance setting for your application, this should override the system default and override the value of getEffectiveAppearance.

Signature:

setAppLevelAppearance(appearance: "dark" | "light" | null): void

Parameters:

Parameter Type Description
appearance "dark" | "light" | null The appearance to set, or null to reset.

Returns: void