1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

Fix event animation

This commit is contained in:
bbedward
2025-07-14 13:54:06 -04:00
parent fff7dace3b
commit 58d711b3e9
2 changed files with 21 additions and 7 deletions

View File

@@ -136,7 +136,8 @@ Rectangle {
anchors.bottom: parent.bottom
anchors.margins: theme.spacingL
anchors.topMargin: theme.spacingM
visible: hasEvents
visible: opacity > 0
opacity: hasEvents ? 1.0 : 0.0
clip: true
spacing: theme.spacingS
boundsMovement: Flickable.StopAtBounds
@@ -146,6 +147,13 @@ Rectangle {
policy: eventsList.contentHeight > eventsList.height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff
}
Behavior on opacity {
NumberAnimation {
duration: theme.mediumDuration
easing.type: theme.emphasizedEasing
}
}
delegate: Rectangle {
width: eventsList.width
height: eventContent.implicitHeight + theme.spacingM