Express-Prorate/project/ui/calculation.slint

43 lines
951 B
Text
Raw Normal View History

2025-08-02 12:13:25 -05:00
import { VerticalBox, Button, Palette } from "std-widgets.slint";
import { CalendarGrid } from "calendar.slint";
2025-08-01 17:29:02 -05:00
export component Calculation inherits PopupWindow {
width: 500px;
height: 350px;
2025-08-01 17:29:02 -05:00
close-policy: PopupClosePolicy.no-auto-close;
in property <string> message;
in property <int> start;
in property <int> end;
2025-08-01 17:29:02 -05:00
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 {
CalendarGrid {
start: start;
end: end;
}
2025-08-01 17:29:02 -05:00
Text {
text: message;
font-size: 1.5rem;
horizontal-alignment: center;
vertical-alignment: center;
}
Button {
text: "Dismiss";
height: 50px;
clicked => {
root.close();
}
}
}
}