notifications: restore hover to reveal closure & expansion buttons

This commit is contained in:
purian23 committed 2026-10-06 20:04:20 -04:00
1 parent 769e4455f8
commit 5eb78f1f12
2 files changed
+12

No files matched your search

@@ -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
@@ -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