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.
Some Properties
Section titled “Some Properties”Testing testing, 1, 2, 3.
background
Section titled “background” brush (out) default: a transparent brush
Defines the default background brush. Use this if none of the more specialized background brushes apply.
foreground
Section titled “foreground” brush (out) default: a transparent brush
Defines the foreground brush that is used for content that is displayed on background brush.
© 2025 SixtyFPS GmbH