feat: Introduce NotificationHistoryLoader to manage opening and closing the NotificationHistory panel.

This commit is contained in:
Hannes
2026-09-01 22:41:34 +02:00
parent 94d9dd6fac
commit 9788529f55
7 changed files with 372 additions and 9 deletions
+23 -1
View File
@@ -13,7 +13,29 @@ MouseArea {
cursorShape: Qt.PointingHandCursor
onClicked: {
NotificationS.soundEnabled = !NotificationS.soundEnabled
// NotificationS.soundEnabled = !NotificationS.soundEnabled
console.log("[NotificationButton] Opening NotificationHistory")
root.toggleNotificationHistory()
}
Item {
anchors.top: parent.topBar
anchors.right: parent.right
anchors.topMargin: Config.spacing
anchors.rightMargin: Config.spacing
width: Config.screen_height_to_font_tiny(screen.height)
height: Config.screen_height_to_font_tiny(screen.height)
visible: NotificationS.notificationNum > 0
Text{
anchors.centerIn: parent
text: NotificationS.notificationNum
font.family: Config.font
font.pixelSize: Config.screen_height_to_font_tiny(screen.height)
color: Colors.secondaryContainer_fg
}
}
Rectangle {