notification expand anim

This commit is contained in:
2026-04-14 15:59:33 +02:00
parent 52302057ba
commit ddcdb5d445
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ CustomRect {
CustomRect { CustomRect {
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3) color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3error : DynamicColors.layer(DynamicColors.palette.m3surfaceContainerHigh, 3)
implicitHeight: groupCount.implicitHeight + 10 implicitHeight: groupCount.implicitHeight + Appearance.padding.small
implicitWidth: expandBtn.implicitWidth + 7 * 2 implicitWidth: expandBtn.implicitWidth + 7 * 2
radius: Appearance.rounding.full radius: Appearance.rounding.full
@@ -196,7 +196,7 @@ CustomRect {
MaterialIcon { MaterialIcon {
Layout.rightMargin: -10 / 2 Layout.rightMargin: -10 / 2
Layout.topMargin: root.expanded ? -Math.floor(7 / 2) : 0 // Layout.topMargin: root.expanded ? -Math.floor(7 / 2) : 0
color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface color: root.urgency === NotificationUrgency.Critical ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onSurface
rotation: root.expanded ? 180 : 0 rotation: root.expanded ? 180 : 0
text: "expand_more" text: "expand_more"
@@ -64,16 +64,16 @@ LazyListView {
} }
Behavior on x { Behavior on x {
Anim { Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial duration: MaterialEasing.expressiveEffectsTime
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial easing.bezierCurve: MaterialEasing.expressiveEffects
} }
} }
Behavior on y { Behavior on y {
enabled: notif.LazyListView.ready enabled: notif.LazyListView.ready
Anim { Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial duration: MaterialEasing.expressiveEffectsTime
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial easing.bezierCurve: MaterialEasing.expressiveEffects
} }
} }
+1
View File
@@ -4,6 +4,7 @@
//@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0 //@ pragma Env QSG_USE_SIMPLE_ANIMATION_DRIVER=0
//@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_SCALE_FACTOR_ROUNDING_POLICY=Round //@ pragma Env QT_SCALE_FACTOR_ROUNDING_POLICY=Round
//@ pragma DropExpensiveFonts
import Quickshell import Quickshell
import qs.Modules import qs.Modules
import qs.Modules.Wallpaper import qs.Modules.Wallpaper