fix(music): crossfade the player background between tracks
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

This commit is contained in:
1xDed committed 2026-12-01 08:53:40 +03:00
1 parent 4d85f09003
commit ae1e81d8d8
2 files changed
+25 -13

No files matched your search

+9 -7
View File
@@ -8,13 +8,15 @@
inset: 0;
overflow: hidden;
color: #fff;
background:
radial-gradient(
90% 70% at 50% -10%,
rgb(255 255 255 / 0.1),
transparent 60%
),
linear-gradient(180deg, var(--mp-base, #2a1f3d), var(--mp-deep, #120b1c));
background: #120b1c;
&-wall {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
will-change: opacity;
}
&-chrome {
position: absolute;
+16 -6
View File
@@ -236,13 +236,23 @@ function AudioPlayerRoute() {
<>
<div
className={`music-player${panelOpen ? " has-panel" : ""}`}
style={
{
"--mp-base": palette.base,
"--mp-deep": palette.deep,
} as React.CSSProperties
}
>
<AnimatePresence initial={false} mode="sync">
<motion.div
key={item?.Id ?? "no-item"}
className="music-player-wall"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{
duration: 2.2,
ease: [0.22, 1, 0.36, 1],
}}
style={{
background: `radial-gradient(90% 70% at 50% -10%, rgb(255 255 255 / 0.1), transparent 60%), linear-gradient(180deg, ${palette.base}, ${palette.deep})`,
}}
/>
</AnimatePresence>
<header className="music-player-chrome" data-tauri-drag-region>
<div className="music-player-chrome-end">
<WindowControls />