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