slint
slint copied to clipboard
No icons on buttons with text Slint 1.8.0
Gentoo linux here, Rust 1.82.0, Slint 1.8.0. I have two kinds of button - with icon and text and with icon only. Icon only button displays icon well (first snippet) Icon and text button => Icon is not displayed - only text. (second snippet)
It worked with older version.
Button {
icon: @image-url("icons/setup.svg");
clicked => {
root.play-settings-visible = !root.play-settings-visible;
}
}
Button {
text: root.init-tools ? "Update" : "Init";
clicked => {
root.update_button();
}
icon: root.update_results == 0 ? @image-url("icons/update.svg") : root.update_results == 1 ? @image-url("icons/ok.svg") : root.update_results == 2 ? @image-url("icons/err.svg") : @image-url("icons/busy.svg");
}