meow
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user