diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 15:51:45 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 15:51:45 +1000 |
| commit | ab4817abf7c0f182235213d6652463c5ab8fd391 (patch) | |
| tree | 9ca528d614647e201e52a44ce164e264d63a3a4e | |
| parent | sidebar/notifs: better anims + misc fixes (diff) | |
| download | caelestia-shell-ab4817abf7c0f182235213d6652463c5ab8fd391.tar.gz caelestia-shell-ab4817abf7c0f182235213d6652463c5ab8fd391.tar.bz2 caelestia-shell-ab4817abf7c0f182235213d6652463c5ab8fd391.zip | |
sidebar/notifs: better expand icon anim
| -rw-r--r-- | modules/sidebar/NotifGroup.qml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/modules/sidebar/NotifGroup.qml b/modules/sidebar/NotifGroup.qml index f0b168d..4366060 100644 --- a/modules/sidebar/NotifGroup.qml +++ b/modules/sidebar/NotifGroup.qml @@ -198,9 +198,24 @@ StyledRect { MaterialIcon { Layout.rightMargin: -Appearance.padding.small / 2 - animate: true - text: root.expanded ? "expand_less" : "expand_more" + text: "expand_more" color: root.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : Colours.palette.m3onSurface + rotation: root.expanded ? 180 : 0 + Layout.topMargin: root.expanded ? -Math.floor(Appearance.padding.smaller / 2) : 0 + + Behavior on rotation { + Anim { + duration: Appearance.anim.durations.expressiveDefaultSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial + } + } + + Behavior on Layout.topMargin { + Anim { + duration: Appearance.anim.durations.expressiveDefaultSpatial + easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial + } + } } } } |