feat: Introduce NotificationHistoryLoader to manage opening and closing the NotificationHistory panel.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user