dark glass gets a surface ladder, and the 200-750ms stalls are dead - two sessions of uncommitted work landing together

SURFACES: panes add black, surfaces INSIDE panes add white. Every pane stands
on 0.7075 black over the acrylic (.content 0.35 over .app 0.55), so a
translucent black card nets 0.81 - darker than its own pane and inside the
~0.85 band already rejected once on the artist page. Solid mode's ladder is
measured UPWARD from #121212 (+6/+18/+24), so glass elevates with WHITE: new
--glass-surface/-hover/-press/-hairline/-well/-ring under :root.glass
(0.03/0.08/0.11/0.10/0.18), which is independently the vocabulary
.btn-ghost:hover and .ax-ghost:hover already shipped. The four solid tokens are
NEVER redefined - they are consumed inside color-mix() and gradient stops where
an alpha multiplies through and kills the call site (0.74 x 0.03 = an invisible
chip; the album row's text-overflow fade works by BEING opaque), and they paint
modal chrome that has to stay solid. 129 additive :global(:root.glass)
declarations across 18 files, all 129 verified inside a glass block by walking
the diff - solid mode byte-identical, confirmed structurally, by computed style
with the class off, and visually.

Three of them are not colour swaps: the album row's .rowbtns shim was OCCLUDING
the last ~19px of the listeners bar and nothing translucent can occlude, so
.tcount masks out just before the buttons instead; Playlist's banner scrim and
the discography's pinned ambience both landed on opaque --bg-base and now
dissolve like the album banner; and the 0.9 black hero tint on
Home/CatalogSearch/Discography paints straight onto the pane when there is no
artwork, so :first-child (the {#if} renders no element) flips it to white.
Menus, dialogs, toasts and the import surfaces stay opaque deliberately, and
the Settings copy for the mode now says so instead of claiming cards do.
Measured with a known ground substituted behind the transparent window, since
CDP never sees the acrylic: library toolbar chroma +2 as shipped, +16 with a
white fill AND its backdrop-filter dropped, +30 for the bare pane beside it.

RESIZE: Windows drops the legacy accent-policy acrylic for the whole of a live
resize and the window stays transparent through it, so the desktop punches
through sharp - measured by toggling window_glass alone, desktop icon labels
readable through the titlebar. The blur cannot be kept (documented since Win10
2004, and the modern DWM backdrop was already rejected for the
overlay-promotion blink), so armGlassResizeGuard grounds the canvas to
--bg-sidebar for the length of the gesture.

STALLS: "choppy but the FPS says 144" was 200-750ms MAIN-THREAD TASKS, not
frame pacing - idle-scheduled work fires at scroll pauses by definition. Twin
bake moved to display resolution and off the ready task (was a same-task 4K
WebGL readback plus software blur, 100-170ms per rotation AND per artist
entry); gl.finish() -> gl.flush() in buildMaster, which had been draining the
whole 4K EASU/RCAS/grade chain on the main thread; copyCanvas realloc guarded;
one app-wide scroll clock in scrollbar.js (markAppScroll/appScrollIdleFor) so
all three periscopes stop cloning mid-gesture on ANY pane rather than only
their own; bounded reclone with the querySelectorAll census deleted, the gate
widened 250->1000ms, and the build/attach split across an idle callback and a
rAF behind a generation guard; the hero rotation tick gated on scroll recency
and its payload cache sized to the working set (2->4 entries, 24->32MiB,
32->64MiB); sessionTick no longer force-rewrites every 12s while merely PAUSED.
Scroll storm went from 109-616ms long tasks to zero. Hover recalc and GC were
measured innocent - do not re-chase them.

98/98 tests throughout.
This commit is contained in:
KeelrLeek committed 2026-08-27 17:24:20 -05:00
1 parent 7ab678fd22
commit 547cee6649
26 files changed
+1220 -144

No files matched your search

+94
View File
@@ -3558,4 +3558,98 @@
}
.lib-tool.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #000; }
.lib-tool.primary .lib-import-pct { background: rgba(0, 0, 0, 0.22); color: #000; }
/* ── dark glass ────────────────────────────────────────────────────────
The ladder lives in global.css. Solid mode sees none of this.
The toolbar was the loudest surface on the page and it was loud for two
compounding reasons, both measured on 2026-08-27 with a known-colour
ground substituted behind the window (research/scroll-diag/glassshot.mjs):
its own fill nets 0.82 + 0.7075x0.18 = 0.947 — a slab by alpha alone —
AND its backdrop-filter samples the see-through pane, which the
compositor flattens against black (the measurement lives in
Sidebar.svelte). Chroma of the shipped bar, blue-minus-red over a
#6b3fa8 ground: +2, i.e. dead. Fill alone got it to +12; dropping the
filter as well got it to +16, against +30 for the bare pane beside it.
Both halves were needed, so both are here. */
:global(:root.glass) .lib-toolbar {
background: rgba(255, 255, 255, 0.06);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
/* Same story, smaller: the field and the tool buttons sit in that bar. */
:global(:root.glass) .lib-search,
:global(:root.glass) .lib-tool {
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
:global(:root.glass) .lib-search {
background: var(--glass-well);
border-color: var(--glass-hairline);
}
/* .lib-tool.primary — the Import button — keeps its accent fill: a filled
accent button is meant to read as solid. :not(.primary) is what makes
that true. `:root.glass .lib-tool` carries Svelte's scope hash and
scores (0,4,0), which outranks `.lib-tool.primary` at (0,3,0), so
without the exclusion this rule quietly repaints the accent button as a
3%-white ghost. Verified by reading the computed style back. */
:global(:root.glass) .lib-tool:not(.primary) {
background: var(--glass-surface);
border-color: var(--glass-hairline);
}
/* Rows and cards on the pane. */
:global(:root.glass) .lb-tr:not(.lb-th):hover,
:global(:root.glass) .release:hover,
:global(:root.glass) .release:focus-visible,
:global(:root.glass) .lib-dir:hover,
:global(:root.glass) .sortbtn:hover {
background: var(--glass-hover);
}
/* Selected keeps its accent ring doing the work — only the fill under the
ring changes, so the two states stay as far apart as they were. */
:global(:root.glass) .release.active,
:global(:root.glass) .lb-tr.active {
background: var(--glass-hover);
}
/* Artwork wells and the shelf avatars. */
:global(:root.glass) .cover.placeholder,
:global(:root.glass) .cover.gen-pending,
:global(:root.glass) .lib-shelf-dot,
:global(:root.glass) .lib-pick-none {
background: var(--glass-surface);
}
/* The album expander and the notch that points at its card. These two MUST
carry the same value: the notch is a rotated square half-buried under the
panel's top edge, so any difference between them draws a triangle. */
:global(:root.glass) .xp-panel,
:global(:root.glass) .notch {
background: var(--glass-surface);
}
/* The rail's shade is a legibility scrim over the blurred cover behind the
CTA column. Its solid-mode tail is rgba(24,24,24,0.92), which on a now
translucent panel turns the rail's lower half into a near-opaque block
inside an otherwise glass card — the stacked-tint failure the artist
page already paid for once. Same shape, same colour, thinned so the
panel keeps ONE value top to bottom; the glow it is shading rests at
0.32 opacity, so this is still more than enough to read over. */
:global(:root.glass) .rail-shade {
background: linear-gradient(
180deg,
transparent 0%,
rgba(24, 24, 24, 0.3) 55%,
rgba(24, 24, 24, 0.55) 100%
);
}
:global(:root.glass) .pill.ghost,
:global(:root.glass) .pill:disabled,
:global(:root.glass) .rail-cta :global(.plm-trigger) {
background: var(--glass-surface);
}
:global(:root.glass) .pill.ghost:hover,
:global(:root.glass) .rail-cta :global(.plm-trigger:hover) {
background: var(--glass-hover);
}
</style>