1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

notifications: Update group expansion card animations

This commit is contained in:
purian23
2026-02-09 22:48:07 -05:00
parent 6fe4cc98b9
commit d88b04fc30
3 changed files with 6 additions and 6 deletions

View File

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