Blend the colour wash between titles and keep full screen for the miniplayer

- The backdrop's colour wash is one layer whose corner colours are
  registered custom properties, so a change of title blends them instead
  of stacking a half-opacity layer and removing the old one (which made
  the colour jump). Outgoing artwork fades out before it is removed, and
  quick changes keep the layer that is on screen.
- Going to the miniplayer no longer leaves full screen. Esc while
  browsing leaves full screen first, Windows' caption buttons show Exit
  full screen in place of maximize, closing the miniplayer keeps the
  window as it is, and the player's full-screen state follows changes
  made outside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-06 19:29:16 -07:00
parent 8755d16735
commit b5dc5d8666
6 changed files with 135 additions and 54 deletions

View file

@ -515,6 +515,12 @@ html.splash-arrival .auth-screen {
.backdrop-layer.ready {
opacity: 1;
}
/* The outgoing art fades too, a beat behind the incoming, so nothing of it is
left to vanish through the new art's faded edges. */
.backdrop-layer.ready.leaving {
opacity: 0;
transition-delay: 180ms;
}
/* The colour wash lives outside the clipped backdrop so it can carry on down
the page behind the rows, fading out as it goes. */
.backdrop-tint {
@ -528,14 +534,42 @@ html.splash-arrival .auth-screen {
-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
}
/* Registered as colours so a change of title blends the wash from one set of
colours to the next, instead of swapping the gradient outright. */
@property --wash-tr {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
@property --wash-tl {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
@property --wash-br {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
@property --wash-bl {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
.backdrop-wash {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 420ms var(--ease);
}
.backdrop-wash.ready {
opacity: 0.5;
background:
radial-gradient(ellipse at 100% 0%, var(--wash-tr) 0%, transparent 62%),
radial-gradient(ellipse at 0% 0%, var(--wash-tl) 0%, transparent 55%),
radial-gradient(ellipse at 100% 100%, var(--wash-br) 0%, transparent 60%),
radial-gradient(ellipse at 0% 100%, var(--wash-bl) 0%, transparent 60%);
transition:
--wash-tr 700ms var(--ease),
--wash-tl 700ms var(--ease),
--wash-br 700ms var(--ease),
--wash-bl 700ms var(--ease);
}
.backdrop-art {
position: absolute;