Interface UIOverlayOptions

Detached overlay or utility window options.

interface UIOverlayOptions {
    mode?: "hud" | "window";
    title?: string;
    chrome?: "none" | "system" | "custom";
    draggable?: boolean;
    dragModifier?: string;
    resizable?: boolean;
    minWidth?: number;
    minHeight?: number;
    maxWidth?: number;
    maxHeight?: number;
    alwaysOnTop?: boolean;
    skipTaskbar?: boolean;
    clickThrough?: boolean;
    focusable?: boolean;
    noActivate?: boolean;
    opacity?: number;
    contentProtected?: boolean;
    transparent?: boolean;
    width?: number;
    height?: number;
    x?: number;
    y?: number;
    anchor?: string;
    offsetX?: number;
    offsetY?: number;
    targetWindowId?: string;
    style?: Record<string, unknown>;
}

Properties

mode?: "hud" | "window"

hud creates a transparent, display-only overlay by default; window creates a focusable utility window.

title?: string

Window title.

chrome?: "none" | "system" | "custom"

Window chrome style.

draggable?: boolean

Whether the overlay can be dragged.

dragModifier?: string

Optional modifier key required before dragging starts.

resizable?: boolean

Whether the overlay can be resized.

minWidth?: number

Minimum window width in logical pixels.

minHeight?: number

Minimum window height in logical pixels.

maxWidth?: number

Maximum window width in logical pixels.

maxHeight?: number

Maximum window height in logical pixels.

alwaysOnTop?: boolean

Whether the overlay stays above other windows.

skipTaskbar?: boolean

Whether the overlay should be hidden from the taskbar.

clickThrough?: boolean

Whether mouse input passes through the overlay.

focusable?: boolean

Whether the overlay can receive keyboard focus.

noActivate?: boolean

Whether showing the overlay avoids taking focus.

opacity?: number

Opacity from 0 to 1.

contentProtected?: boolean

Whether the overlay content should be hidden from screen capture when the platform supports it.

transparent?: boolean

Whether the webview background is transparent.

width?: number

Window width in logical pixels.

height?: number

Window height in logical pixels.

x?: number

Window x position in logical pixels.

y?: number

Window y position in logical pixels.

anchor?: string

Anchor used when following a target window.

offsetX?: number

X offset from the resolved anchor.

offsetY?: number

Y offset from the resolved anchor.

targetWindowId?: string

Optional WindowInfo.id to follow while the target exists.

style?: Record<string, unknown>

CSS-like renderer style metadata.