setBlur method

Future<void> setBlur(
  1. String id, {
  2. bool enabled = true,
  3. String material = 'hudWindow',
})

Enable or disable system blur effect.

On macOS: Uses NSVisualEffectView for vibrancy. On Windows 11: Uses Acrylic backdrop (DWM).

material - macOS blur material (default: 'hudWindow'). Available materials: titlebar, selection, menu, popover, sidebar, headerView, sheet, windowBackground, hudWindow, fullScreenUI, toolTip, contentBackground, underWindowBackground, underPageBackground.

Note: Window must have transparency enabled for blur to be visible.

Implementation

Future<void> setBlur(String id, {bool enabled = true, String material = 'hudWindow'}) async {
  await send<void>('setBlur', windowId: id, params: {
    'enabled': enabled,
    'material': material,
  });
}