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