Build the Prism calendar Daybook
This commit is contained in:
@@ -29,7 +29,7 @@ PanelWindow {
|
||||
margins.top: Theme.barHeight + Theme.barGap * 2
|
||||
exclusiveZone: 0
|
||||
|
||||
implicitWidth: panel.implicitWidth
|
||||
implicitWidth: 760
|
||||
implicitHeight: panel.implicitHeight
|
||||
|
||||
// The `qs-popover` prefix is matched by a layerrule in hypr/rules.lua.
|
||||
@@ -41,15 +41,24 @@ PanelWindow {
|
||||
|
||||
onVisibleChanged: {
|
||||
if (root.visible) {
|
||||
// Opening the tray is what marks everything read, same as GNOME.
|
||||
Notifs.markAllRead();
|
||||
panel.prepare();
|
||||
CalendarAgenda.refresh();
|
||||
if (ShellState.dateMenuPage === "notifications")
|
||||
Notifs.markAllRead();
|
||||
panel.prepare(ShellState.dateMenuPage);
|
||||
openAnim.restart();
|
||||
} else {
|
||||
panel.reset();
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ShellState
|
||||
function onDateMenuPageChanged(): void {
|
||||
if (root.visible && ShellState.dateMenuPage === "notifications")
|
||||
Notifs.markAllRead();
|
||||
}
|
||||
}
|
||||
|
||||
// Closes the panel when a click lands anywhere else on the desktop.
|
||||
HyprlandFocusGrab {
|
||||
windows: [root]
|
||||
|
||||
Reference in New Issue
Block a user