generated from OBJNULL/Dockerized-Rust
32 lines
692 B
Text
32 lines
692 B
Text
import { VerticalBox, Button } from "std-widgets.slint";
|
|
|
|
export component Calculation inherits PopupWindow {
|
|
width: 400px;
|
|
height: 200px;
|
|
close-policy: PopupClosePolicy.no-auto-close;
|
|
|
|
in property <string> message: "EXAMPLE MESSAGE";
|
|
|
|
Rectangle {
|
|
height: 100%;
|
|
width: 100%;
|
|
background: lightgray;
|
|
}
|
|
|
|
VerticalBox {
|
|
Text {
|
|
text: message;
|
|
font-size: 1.5rem;
|
|
horizontal-alignment: center;
|
|
vertical-alignment: center;
|
|
}
|
|
|
|
Button {
|
|
text: "Dismiss";
|
|
height: 50px;
|
|
clicked => {
|
|
root.close();
|
|
}
|
|
}
|
|
}
|
|
}
|