Tooltips on all NIconButtons

This commit is contained in:
quadbyte 2025-08-15 21:05:47 -04:00
parent c075b89dd2
commit 9990a88e90
19 changed files with 63 additions and 24 deletions

View file

@ -58,7 +58,7 @@ Variants {
id: notificationStack
anchors.top: parent.top
anchors.right: parent.right
spacing: Style.marginSmall * scaling
spacing: Style.marginSmall * scaling
width: 360 * scaling
visible: true
@ -183,12 +183,14 @@ Variants {
}
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
showBorder: false
anchors.top: parent.top
anchors.right: parent.right
anchors.margins: Style.marginSmall * scaling
icon: "close"
onClicked: {
animateOut()
}

View file

@ -131,13 +131,14 @@ NLoader {
NIconButton {
icon: "delete"
tooltipText: "Clear History"
sizeMultiplier: 0.8
tooltipText: "Clear history"
onClicked: NotificationService.clearHistory()
}
NIconButton {
icon: "close"
tooltipText: "Close"
sizeMultiplier: 0.8
onClicked: {
notificationPanel.hide()
@ -207,8 +208,9 @@ NLoader {
// Trash icon button
NIconButton {
icon: "delete"
tooltipText: "Delete Notification"
sizeMultiplier: 0.7
tooltipText: "Delete notification"
onClicked: {
console.log("[NotificationHistory] Removing notification:", summary)
NotificationService.historyModel.remove(index)