From d88b04fc30d9a4f9befeef27ddb7861b44f120c0 Mon Sep 17 00:00:00 2001 From: purian23 Date: Mon, 9 Feb 2026 22:48:07 -0500 Subject: [PATCH] notifications: Update group expansion card animations --- .../Center/KeyboardNavigatedNotificationList.qml | 4 ++-- .../Modules/Notifications/Center/NotificationCard.qml | 6 ++++-- .../Notifications/Center/NotificationCenterPopout.qml | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml b/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml index 1aec8674..247156ba 100644 --- a/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml +++ b/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml @@ -93,8 +93,8 @@ DankListView { } width: ListView.view.width - height: isDismissing ? 0 : notificationCard.height - clip: isDismissing + height: isDismissing ? 0 : notificationCard.targetHeight + clip: isDismissing || notificationCard.isAnimating NotificationCard { id: notificationCard diff --git a/quickshell/Modules/Notifications/Center/NotificationCard.qml b/quickshell/Modules/Notifications/Center/NotificationCard.qml index 7e1c83f3..8a3d9f5c 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCard.qml @@ -30,6 +30,7 @@ Rectangle { width: parent ? parent.width : 400 height: expanded ? (expandedContent.height + cardPadding * 2) : (baseCardHeight + collapsedContent.extraHeight) + readonly property real targetHeight: expanded ? (expandedContent.height + cardPadding * 2) : (baseCardHeight + collapsedContent.extraHeight) radius: Theme.cornerRadius property bool __initialized: false @@ -734,8 +735,9 @@ Rectangle { Behavior on height { enabled: root.userInitiatedExpansion && root.animateExpansion NumberAnimation { - duration: Theme.mediumDuration - easing.type: root.expanded ? Theme.emphasizedEasing : Theme.standardEasing + duration: Theme.expressiveDurations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Theme.expressiveCurves.standard onRunningChanged: { if (running) { root.isAnimating = true; diff --git a/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml b/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml index eae58a3d..edb5cfb1 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml @@ -107,8 +107,6 @@ DankPopout { property var externalKeyboardController: null property real cachedHeaderHeight: 32 - property bool notificationListAnimating: notificationList.isAnimatingExpansion - implicitHeight: { let baseHeight = Theme.spacingL * 2; baseHeight += cachedHeaderHeight;