init
This commit is contained in:
26
ui/appwindow.slint
Normal file
26
ui/appwindow.slint
Normal 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!";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user