Calculation implements the CalendarGrid widget

This commit is contained in:
Maddox Werts 2025-08-02 15:02:51 -04:00
parent 66c13bc08a
commit c3fd6dea17

View file

@ -1,11 +1,14 @@
import { VerticalBox, Button, Palette } from "std-widgets.slint"; import { VerticalBox, Button, Palette } from "std-widgets.slint";
import { CalendarGrid } from "calendar.slint";
export component Calculation inherits PopupWindow { export component Calculation inherits PopupWindow {
width: 400px; width: 500px;
height: 200px; height: 350px;
close-policy: PopupClosePolicy.no-auto-close; close-policy: PopupClosePolicy.no-auto-close;
in property <string> message: "EXAMPLE MESSAGE"; in property <string> message;
in property <int> start;
in property <int> end;
Rectangle { Rectangle {
height: 100%; height: 100%;
@ -16,6 +19,11 @@ export component Calculation inherits PopupWindow {
} }
VerticalBox { VerticalBox {
CalendarGrid {
start: start;
end: end;
}
Text { Text {
text: message; text: message;
font-size: 1.5rem; font-size: 1.5rem;