Receiving current local time

This commit is contained in:
Alexey 2025-09-08 14:07:18 +03:00
commit 599b027d19
6 changed files with 94 additions and 30 deletions

View file

@ -3,14 +3,25 @@ import { RecordWidget } from "record.slint";
import { ReviewWidget } from "review.slint";
export component AppWindow inherits Window {
callback update-record-visible-time <=> record.update-visible-time;
callback start-new-event <=> record.start-new-event;
callback stop-event <=> record.stop-event;
callback update-record-offset(int);
update-record-offset(new-offset) => {
record.offset = new-offset;
}
property<[string]> combo-spans: ["1 Hour", "4 Hours", "8 Hours", "24 Hours"];
TabWidget {
Tab {
title: "Record";
RecordWidget {}
record := RecordWidget {}
}
Tab {
title: "Review";
ReviewWidget {}
review := ReviewWidget {}
}
}
}