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:

ParameterTypeDescription
appearance"dark" | "light" | nullThe appearance to set, or null to reset.

Returns: void