ElectronBrowserWindow.setVibrancy method
ElectronBrowserWindow › setVibrancy
Unofficial
Adds a vibrancy effect to the browser window. Passingnull 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): voidParameters:
| 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