diff options
Diffstat (limited to 'ui/app-window.slint')
| -rw-r--r-- | ui/app-window.slint | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/app-window.slint b/ui/app-window.slint new file mode 100644 index 0000000..2d5522c --- /dev/null +++ b/ui/app-window.slint @@ -0,0 +1,18 @@ +import { Button, VerticalBox } from "std-widgets.slint"; + +export component AppWindow inherits Window { + in-out property <int> counter: 42; + callback request-increase-value(); + VerticalBox { + Text { + text: "Counter: \{root.counter}"; + } + + Button { + text: "Increase value"; + clicked => { + root.request-increase-value(); + } + } + } +} |
