Skip to content

Window

Window is the root of the tree of elements that are visible on the screen.

The Window geometry will be restricted by its layout constraints: Setting the width will result in a fixed width, and the window manager will respect the min-width and max-width so the window can’t be resized bigger or smaller. The initial width can be controlled with the preferred-width property. The same applies to the Windows height.

always-on-top

bool default: false

Whether the window should be placed above all other windows on window managers supporting it.

background

brush default: depends on the style

The background brush of the Window.

default-font-family

string default: ""

The font family to use as default in text elements inside this window, that don’t have their font-family property set.

default-font-size

length (in-out) default: 0

The font size to use as default in text elements inside this window, that don’t have their font-size property set. The value of this property also forms the basis for relative font sizes.

default-font-weight

int default: 0

The font weight to use as default in text elements inside this window, that don’t have their font-weight property set. The values range from 100 (lightest) to 900 (thickest). 400 is the normal weight.

icon

image default: the empty image

The window icon shown in the title bar or the task bar on window managers supporting it.

no-frame

bool default: false

Whether the window should be borderless/frameless or not.

resize-border-width

length default: 0

Size of the resize border in borderless/frameless windows.

title

string default: ""

The window title that is shown in the title bar.