Skip to content

Overview

import { Palette, HorizontalBox } from "std-widgets.slint";
export component MyCustomWidget {
in property <string> text <=> label.text;
Rectangle {
background: Palette.control-background;
HorizontalBox {
label := Text {
color: Palette.control-foreground;
}
}
}
}
slint

An introduction to the Material components.

Testing testing, 1, 2, 3.

brush (out) default: a transparent brush

Defines the default background brush. Use this if none of the more specialized background brushes apply.

brush (out) default: a transparent brush

Defines the foreground brush that is used for content that is displayed on background brush.


© 2025 SixtyFPS GmbH