UI template
This commit is contained in:
parent
8cec608e21
commit
b6413f0e7d
6 changed files with 5897 additions and 21 deletions
|
@ -1,18 +1,16 @@
|
|||
import { Button, VerticalBox } from "std-widgets.slint";
|
||||
import { TabWidget } from "std-widgets.slint";
|
||||
import { RecordWidget } from "record.slint";
|
||||
import { ReviewWidget } from "review.slint";
|
||||
|
||||
export component AppWindow inherits Window {
|
||||
in-out property <int> counter: 42;
|
||||
callback request-increase-value();
|
||||
VerticalBox {
|
||||
Text {
|
||||
text: "Counter: \{root.counter}";
|
||||
TabWidget {
|
||||
Tab {
|
||||
title: "Record";
|
||||
RecordWidget {}
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Increase value";
|
||||
clicked => {
|
||||
root.request-increase-value();
|
||||
}
|
||||
Tab {
|
||||
title: "Review";
|
||||
ReviewWidget {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue