This commit is contained in:
2026-01-26 09:05:48 +08:00
commit f218a21377
20 changed files with 7774 additions and 0 deletions

26
ui/appwindow.slint Normal file
View File

@@ -0,0 +1,26 @@
import { VerticalBox, Button } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property <string> greeting: "Hello, World!";
width: 400px;
height: 300px;
title: "Slint Hello World";
VerticalBox {
alignment: center;
Text {
text: greeting;
font-size: 24px;
horizontal-alignment: center;
}
Button {
text: "Click Me!";
clicked => {
greeting = "Hello from Slint!";
}
}
}
}