diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-29 23:37:02 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-29 23:37:02 +0800 |
| commit | dc1b01ccd34780a3d2fcae0eee53910958d2adab (patch) | |
| tree | 8dbd212747c15d47b7ef18c44a0a74d71811847f /modules/notifications/Wrapper.qml | |
| parent | systemusage: actually run gpu procs (diff) | |
| download | caelestia-shell-dc1b01ccd34780a3d2fcae0eee53910958d2adab.tar.gz caelestia-shell-dc1b01ccd34780a3d2fcae0eee53910958d2adab.tar.bz2 caelestia-shell-dc1b01ccd34780a3d2fcae0eee53910958d2adab.zip | |
notifs: fix opening anim when spam notifs
No open/close state, just animate height
Diffstat (limited to '')
| -rw-r--r-- | modules/notifications/Wrapper.qml | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/modules/notifications/Wrapper.qml b/modules/notifications/Wrapper.qml index 4153b6b..a3a2631 100644 --- a/modules/notifications/Wrapper.qml +++ b/modules/notifications/Wrapper.qml @@ -1,35 +1,13 @@ import "root:/config" -import Quickshell import QtQuick Item { id: root - required property bool visibility - visible: height > 0 - implicitHeight: 0 + implicitHeight: content.implicitHeight implicitWidth: content.implicitWidth + BorderConfig.rounding - states: State { - name: "visible" - when: root.visibility - - PropertyChanges { - root.implicitHeight: content.implicitHeight - } - } - - transitions: Transition { - NumberAnimation { - target: root - property: "implicitHeight" - duration: Appearance.anim.durations.expressiveDefaultSpatial - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial - } - } - Content { id: content } |