Ende.BrowserWindowOptions
interface · desktop apps only
interface Ende.BrowserWindowOptionsProperties
title
title?: stringwidth
width?: numberDefault: 800
height
height?: numberDefault: 600
x
x?: numbery
y?: numberresizable
resizable?: booleanDefault: true
alwaysOnTop
alwaysOnTop?: booleanDefault: false
opacity
opacity?: numberOverall window opacity as a uniform factor in the range 0–1, where
1 is fully opaque (the default) and 0 is fully transparent. Fades the
entire window — web content and native chrome alike — like CSS opacity.
This is distinct from transparent, which makes the background
transparent while honoring the page's own per-pixel alpha. Out-of-range
values are clamped. Can also be changed at runtime with
BrowserWindow.setOpacity.
Default: 1
frameless
frameless?: booleanRemove the title bar and standard window chrome (border, traffic light / caption buttons). Set at creation time only.
Default: false
noActivate
noActivate?: booleanCreate the window as a floating, non-activating utility "panel": it
floats above normal windows and does not activate the app or steal key
focus from the foreground app when shown. Combined with
frameless and Tray.getBounds, this is the
configuration used for tray / menu-bar popovers. Set at creation time
only.
Default: false
transparentTitlebar
transparentTitlebar?: booleantransparent
transparent?: booleanGive the window a transparent background so the web content's own alpha
composites against whatever is behind the window. Any region the page
leaves transparent (e.g. a transparent root background) shows the
desktop through it. Often combined with frameless. Distinct
from opacity, which uniformly fades the whole window. Set at
creation time only.
Supported on macOS and Linux with the system WebView; ignored on Windows and with the CEF backend, which paint an opaque window background.
Default: false
visible
visible?: booleanWhether the window is shown when it is created. Set false to keep it
off screen, for example to render a page and call
BrowserWindow.printToPdf without showing it. Call
BrowserWindow.show to reveal it later.
The first BrowserWindow takes over the app's initial window, which is
already loading the app's page, and is hidden by this option. If the page
may load before your code creates that window, set
desktop.initialWindow.showOnFirstLoad to false in ende.json so it
never flashes on screen.
With the CEF backend, a hidden window can appear for a moment before it is hidden.
Default: true