waffles: notif center: calendar header and focus

This commit is contained in:
end-4
2025-11-24 10:18:05 +01:00
parent 449d6fc285
commit e6f36114bd
29 changed files with 420 additions and 59 deletions
@@ -15,12 +15,12 @@ Scope {
target: GlobalStates
function onSidebarLeftOpenChanged() {
if (GlobalStates.sidebarLeftOpen) barLoader.active = true;
if (GlobalStates.sidebarLeftOpen) panelLoader.active = true;
}
}
Loader {
id: barLoader
id: panelLoader
active: GlobalStates.sidebarLeftOpen
sourceComponent: PanelWindow {
id: panelWindow
@@ -56,16 +56,9 @@ Scope {
id: content
anchors.fill: parent
focus: true
Keys.onPressed: event => { // Esc to close
if (event.key === Qt.Key_Escape) {
content.close()
}
}
onClosed: {
GlobalStates.sidebarLeftOpen = false;
barLoader.active = false;
panelLoader.active = false;
}
}
}