Skip to content

Platform

The Platform namespace contains properties that help deal with platform specific differences.

enum OperatingSystemType (out) default: known at runtime

This property holds the type of the operating system detected at run-time.

string (out) default: known at runtime

The name of the currently selected widget style. Some widget styles have dark and light variant suffixes, such as fluent-light. This property contains the style name without the suffix. Use Palette‘s color-scheme to determine the currently used scheme.

Opens the specified URL in an external browser. This function invokes the platform’s URL opening mechanism. Returns true on success, or false if the platform doesn’t support opening URLs or the operation failed.

import { Button } from "std-widgets.slint";
export component Example inherits Window {
Button {
text: "Open Slint Website";
clicked => {
Platform.open-url("https://slint.dev");
}
}
}
slint

© 2026 SixtyFPS GmbH