Skip to content

ElectronSystemPreferences.getEffectiveAppearance method

ElectronSystemPreferences › getEffectiveAppearance

Unofficial

Gets the macOS appearance setting that is currently applied to your application, maps to NSApplication.effectiveAppearance. Can be dark, light or unknown.

Signature:

getEffectiveAppearance(): 'dark' | 'light' | 'unknown'

Returns: 'dark' | 'light' | 'unknown'The effective appearance.

Platform: darwin.