dashboard: anim media progress colour

This commit is contained in:
2 * r + 2 * t 2025-05-19 13:14:15 +08:00
parent 7c5a23d334
commit 55d5bc7f37

View file

@ -48,6 +48,14 @@ Item {
startAngle: -90 - DashboardConfig.sizes.mediaProgressSweep / 2
sweepAngle: DashboardConfig.sizes.mediaProgressSweep
}
Behavior on strokeColor {
ColorAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standard
}
}
}
ShapePath {
@ -64,6 +72,14 @@ Item {
startAngle: -90 - DashboardConfig.sizes.mediaProgressSweep / 2
sweepAngle: DashboardConfig.sizes.mediaProgressSweep * root.playerProgress
}
Behavior on strokeColor {
ColorAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standard
}
}
}
}