From a6d28e255348a16eab9bf657784b1f0e991585da Mon Sep 17 00:00:00 2001 From: purian23 Date: Tue, 17 Feb 2026 22:05:19 -0500 Subject: [PATCH] notifications: Tweak animation scale & settings --- .../Modules/Notifications/Center/HistoryNotificationList.qml | 4 ++-- .../Center/KeyboardNavigatedNotificationList.qml | 2 +- quickshell/Modules/Notifications/Center/NotificationCard.qml | 2 +- .../Modules/Notifications/Center/NotificationCenterPopout.qml | 4 ++-- quickshell/Modules/Notifications/Popup/NotificationPopup.qml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/quickshell/Modules/Notifications/Center/HistoryNotificationList.qml b/quickshell/Modules/Notifications/Center/HistoryNotificationList.qml index 3acf5cbc..922a4865 100644 --- a/quickshell/Modules/Notifications/Center/HistoryNotificationList.qml +++ b/quickshell/Modules/Notifications/Center/HistoryNotificationList.qml @@ -278,7 +278,7 @@ Item { Behavior on x { enabled: !swipeDragHandler.active && delegateRoot.__delegateInitialized NumberAnimation { - duration: Theme.shortDuration + duration: Theme.notificationExitDuration easing.type: Theme.standardEasing } } @@ -286,7 +286,7 @@ Item { Behavior on opacity { enabled: delegateRoot.__delegateInitialized NumberAnimation { - duration: delegateRoot.__delegateInitialized ? Theme.shortDuration : 0 + duration: delegateRoot.__delegateInitialized ? Theme.notificationExitDuration : 0 } } } diff --git a/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml b/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml index 6214608f..db39155d 100644 --- a/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml +++ b/quickshell/Modules/Notifications/Center/KeyboardNavigatedNotificationList.qml @@ -257,7 +257,7 @@ DankListView { target: delegateRoot property: "swipeOffset" to: 0 - duration: Theme.shortDuration + duration: Theme.notificationExitDuration easing.type: Easing.OutCubic onStopped: NotificationService.dismissGroup(delegateRoot.modelData?.key || "") } diff --git a/quickshell/Modules/Notifications/Center/NotificationCard.qml b/quickshell/Modules/Notifications/Center/NotificationCard.qml index e2e1a407..af16d986 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCard.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCard.qml @@ -764,7 +764,7 @@ Rectangle { target: expandedDelegateWrapper property: "swipeOffset" to: expandedDelegateWrapper.swipeOffset > 0 ? expandedDelegateWrapper.width : -expandedDelegateWrapper.width - duration: Theme.shortDuration + duration: Theme.notificationExitDuration easing.type: Easing.OutCubic onStopped: NotificationService.dismissNotification(modelData) } diff --git a/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml b/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml index b1d1fbd5..e7b34c07 100644 --- a/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml +++ b/quickshell/Modules/Notifications/Center/NotificationCenterPopout.qml @@ -35,9 +35,9 @@ DankPopout { popupWidth: triggerScreen ? Math.min(500, Math.max(380, triggerScreen.width - 48)) : 400 popupHeight: stablePopupHeight positioning: "" - animationScaleCollapsed: 1.0 + animationScaleCollapsed: 0.94 animationOffset: 0 - suspendShadowWhileResizing: true + suspendShadowWhileResizing: false screen: triggerScreen shouldBeVisible: notificationHistoryVisible diff --git a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml index 947f4421..10fa93ae 100644 --- a/quickshell/Modules/Notifications/Popup/NotificationPopup.qml +++ b/quickshell/Modules/Notifications/Popup/NotificationPopup.qml @@ -814,7 +814,7 @@ PanelWindow { Behavior on swipeOffset { enabled: !content.swipeActive && !content.swipeDismissing NumberAnimation { - duration: Theme.shortDuration + duration: Theme.notificationExitDuration easing.type: Theme.standardEasing } } @@ -824,7 +824,7 @@ PanelWindow { target: content property: "swipeOffset" to: isTopCenter ? -content.height : isBottomCenter ? content.height : (SettingsData.notificationPopupPosition === SettingsData.Position.Left || SettingsData.notificationPopupPosition === SettingsData.Position.Bottom ? -content.width : content.width) - duration: Theme.shortDuration + duration: Theme.notificationExitDuration easing.type: Easing.OutCubic onStopped: { NotificationService.dismissNotification(notificationData);