This commit is contained in:
2025-06-27 09:40:46 -04:00
parent fdd0327a2d
commit 2508f13e8d
2 changed files with 25 additions and 210 deletions

View File

@@ -1,6 +1,20 @@
import { Button, VerticalBox } from "std-widgets.slint";
export component App inherits Window {
preferred-width: 800px;
preferred-height: 1280px;
title: "Slint test";
background: Colors.royalblue;
}
in-out property<int> lobotomised: 0;
VerticalBox {
label := Text {
text: "Press button to lobotomise one rust programmer";
font-family: "Consolas";
font-size: 60px;
}
Button {
text: "Click Me";
clicked => {
root.lobotomised += 1;
label.text = lobotomised + " rust programmers lobotomised";
}
}
}
}