Skip to content

ElectronBrowserWindow.setVibrancy method

ElectronBrowserWindow › setVibrancy

Unofficial

Adds a vibrancy effect to the browser window. Passing null or an empty string removes the effect (macOS only).

Signature:

setVibrancy(type: "appearance-based" | "content" | "dark" | "fullscreen-ui" | "header" | "hud" | "light" | "medium-light" | "menu" | "popover" | "selection" | "sheet" | "sidebar" | "titlebar" | "tooltip" | "ultra-dark" | "under-page" | "under-window" | "window" | null): void

Parameters:

Parameter Type Description
type "appearance-based" | "content" | "dark" | "fullscreen-ui" | "header" | "hud" | "light" | "medium-light" | "menu" | "popover" | "selection" | "sheet" | "sidebar" | "titlebar" | "tooltip" | "ultra-dark" | "under-page" | "under-window" | "window" | null The vibrancy type, or null to remove the effect.

Returns: void