acid/firmware2/ui/main.slint

41 lines
919 B
Plaintext
Raw Normal View History

2025-12-31 22:24:26 +01:00
import { Button, VerticalBox, LineEdit, GridBox } from "std-widgets.slint";
export component AppWindow inherits Window {
2025-12-31 22:24:26 +01:00
y: 0px;
in-out property <int> counter: 42;
2025-12-31 22:24:26 +01:00
default-font-family: "IBM Plex Sans";
default-font-size: 16pt;
callback request-increase-value();
2025-12-31 22:24:26 +01:00
GridBox {
height: 240px;
padding: 0px;
padding-top: 8px;
width: 960px;
VerticalBox {
Text {
text: "Counter: \{root.counter}";
}
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
LineEdit {
input-type: InputType.password;
text: "LineEdit";
}
}
Button {
2025-12-31 22:24:26 +01:00
text: "Button";
}
Button {
text: "Button";
}
}
}