From 9708d731992be2f24cfd229a28eedf642a8dee0f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 27 Oct 2023 23:58:12 +0400 Subject: Init of the game resource viewer --- resource-viewer/ui/appwindow.slint | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 resource-viewer/ui/appwindow.slint (limited to 'resource-viewer/ui') diff --git a/resource-viewer/ui/appwindow.slint b/resource-viewer/ui/appwindow.slint new file mode 100644 index 0000000..4862c47 --- /dev/null +++ b/resource-viewer/ui/appwindow.slint @@ -0,0 +1,17 @@ +import { Button, VerticalBox } from "std-widgets.slint"; + +export component AppWindow inherits Window { + in-out property counter: 42; + callback request-increase-value(); + VerticalBox { + Text { + text: "Counter: \{root.counter}"; + } + Button { + text: "Increase value"; + clicked => { + root.request-increase-value(); + } + } + } +} \ No newline at end of file -- cgit v1.2.3