Express-Prorate/project/ui/calculation.slint

35 lines
785 B
Text
Raw Normal View History

2025-08-02 12:13:25 -05:00
import { VerticalBox, Button, Palette } from "std-widgets.slint";
2025-08-01 17:29:02 -05:00
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%;
2025-08-02 12:13:25 -05:00
background: Palette.background;
drop-shadow-color: Palette.border;
drop-shadow-blur: 50px;
2025-08-01 17:29:02 -05:00
}
VerticalBox {
Text {
text: message;
font-size: 1.5rem;
horizontal-alignment: center;
vertical-alignment: center;
}
Button {
text: "Dismiss";
height: 50px;
clicked => {
root.close();
}
}
}
}