48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
import { Button, VerticalBox, HorizontalBox, CheckBox } from "std-widgets.slint";
|
|
|
|
export component AppWindow inherits Window {
|
|
default-font-size: 32px;
|
|
in-out property<int> counter: 42;
|
|
callback request-increase-value();
|
|
HorizontalBox {
|
|
VerticalBox {
|
|
Text {
|
|
text: "Counter: \{root.counter}";
|
|
font-size: 24px;
|
|
}
|
|
Button {
|
|
text: "Increase value";
|
|
clicked => {
|
|
root.request-increase-value();
|
|
}
|
|
}
|
|
}
|
|
VerticalBox {
|
|
CheckBox {
|
|
text: "Armory Light";
|
|
}
|
|
CheckBox {
|
|
text: "Bedroom Light";
|
|
}
|
|
CheckBox {
|
|
text: "Hallway Light";
|
|
}
|
|
CheckBox {
|
|
text: "Kitchen Light";
|
|
}
|
|
CheckBox {
|
|
text: "Living Room Light";
|
|
}
|
|
CheckBox {
|
|
text: "Shower Light";
|
|
}
|
|
CheckBox {
|
|
text: "Utilities Light";
|
|
}
|
|
CheckBox {
|
|
text: "WC Light";
|
|
}
|
|
}
|
|
}
|
|
}
|