PureIcon
The PureIcon
represents an icon element that matches the settings of the pure
style.
Properties
style
(inIconStyle
): Used to setcolor
andheight
of the icon.icon
(in image): The image source of the icon.
Example
import { PureIcon } from "@coop/pure.slint";
export component Example inherits Window {
width: 200px;
height: 100px;
PureIcon {
icon: @image-url("my-icon.svg");
}
}