Windows Window Style
Import
Section titled “Import”import { restyleChromeWindowForProcess, restoreChromeWindowRegionForProcess, startWindowRestyleWatcher,} from "webotron/plugins/windows-window-style";Entry Points
Section titled “Entry Points”restyleChromeWindowForProcess(processId, options?)restoreChromeWindowRegionForProcess(processId, options?)startWindowRestyleWatcher(processId, options?)
const result = restyleChromeWindowForProcess(processId, { hideTitleBar: true, removeResizableFrame: true,});
if (result.ok) { const watcher = startWindowRestyleWatcher(processId, { hideTitleBar: true }); // ... later watcher.stop();}Common Options
Section titled “Common Options”| Option | Type | Purpose |
|---|---|---|
hideTitleBar | boolean | Remove browser title bar visuals. |
removeResizableFrame | boolean | Remove default resize frame. |
topMost | boolean | Keep window above others. |
clipTopPx / clipBottomPx | number | Apply clipping to specific edges. |
waitMs | number | Max wait while locating target window. |
What It Does
Section titled “What It Does”- Hides or restores title bars and window frames.
- Applies clipping regions and top-most behavior.
- Watches for window changes when the browser process restarts.