summaryrefslogtreecommitdiff
path: root/modules/sidebar
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sidebar')
-rw-r--r--modules/sidebar/NotifGroup.qml19
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
+ }
+ }
}
}
}