From 5eb78f1f12e834152e08f261f624b28987b6bf98 Mon Sep 17 00:00:00 2001 From: purian23 Date: Tue, 6 Oct 2026 20:04:20 -0400 Subject: [PATCH] notifications: restore hover to reveal closure & expansion buttons --- quickshell/Modules/Notifications/NotificationCard.qml | 11 +++++++++++ .../Modules/Notifications/Popup/NotificationPopup.qml | 1 + 2 files changed, 12 insertions(+) diff --git a/quickshell/Modules/Notifications/NotificationCard.qml b/quickshell/Modules/Notifications/NotificationCard.qml index 01ecfb6be..47db5ab5f 100644 --- a/quickshell/Modules/Notifications/NotificationCard.qml +++ b/quickshell/Modules/Notifications/NotificationCard.qml @@ -18,6 +18,7 @@ Rectangle { property bool showActions: true property bool showDismiss: true property bool showClose: false + property bool revealControls: true property string dismissText: I18n.tr("Dismiss") property bool showTime: true property bool bodyInvokesAction: false @@ -224,6 +225,16 @@ Rectangle { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter spacing: Theme.spacingXXS + opacity: root.revealControls ? 1 : 0 + visible: opacity > 0 + + Behavior on opacity { + enabled: NotificationMetrics.animationsEnabled + NumberAnimation { + duration: Theme.shortDuration + easing.type: Theme.standardEasing + } + } Rectangle { visible: !root.interactive && root.groupCount > 1 diff --git a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml index 4c176dc0d..8b4b3ffb4 100644 --- a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml +++ b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml @@ -710,6 +710,7 @@ PanelWindow { bodyInvokesAction: win.bodyClickInvokesAction persistImage: true showClose: true + revealControls: win.hovered || win.contextMenuActive dismissText: I18n.tr("Clear") animateHeight: false outerRadius: win.connectedFrameMode ? Theme.connectedSurfaceRadius : NotificationMetrics.popupRadius