From 8eb9f100d4fb63a04b3f832ca176257805dc1676 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 5 May 2026 02:38:31 +1000 Subject: [PATCH] fix: anim between lyrics changes --- modules/dashboard/media/LyricList.qml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/dashboard/media/LyricList.qml b/modules/dashboard/media/LyricList.qml index 73ab1c17..ee47a3c8 100644 --- a/modules/dashboard/media/LyricList.qml +++ b/modules/dashboard/media/LyricList.qml @@ -241,7 +241,7 @@ Item { model: Lyrics.lyrics Component.onCompleted: { currentIndex = Qt.binding(() => { - Lyrics.lyrics; // Force update when lyrics change + model; // Force update when lyrics change return Lyrics.indexForTime(Players.active?.position ?? 0); }); positionViewAtIndex(currentIndex, ListView.Center); @@ -287,6 +287,24 @@ Item { } } + Behavior on model { + SequentialAnimation { + Anim { + target: lyrics + property: "opacity" + to: 0 + type: Anim.DefaultEffects + } + PropertyAction {} + Anim { + target: lyrics + property: "opacity" + to: 1 + type: Anim.SlowEffects + } + } + } + Behavior on opacity { Anim { type: Anim.SlowEffects