feat(qbz-qt): phase 14 — app-wide ambient background (modo Cider)

Port of the spec's palette derivation (16x16 downscale, coverage-
weighted 24-bin hue histogram, genuine secondary cluster or deeper
same-hue, +180 accent, B/W defaults) driven by the now-playing artwork
on track change. QPainter AmbientField with the WGSL scene's exact
four blob orbits, dim scrim, 30fps cap paused when inactive; chrome
surfaces translucent per the AppShell alpha tokens (content frame
surface-main @ 0.22 frosted). Same shared app_background pref (owner
has it 'ambient'), app-menu toggle applying live, QBZ_BG_* env knobs.
4 new unit tests (14/14 total).

km
This commit is contained in:
vicrodh committed 2026-07-27 23:37:13 -06:00
1 parent cc71337293
commit 9f86a40f52
19 files changed
+599 -13

No files matched your search

+4 -1
View File
@@ -59,7 +59,10 @@ Rectangle {
width: QbzBridge.sidebarState === 2 ? 0
: QbzBridge.sidebarState === 1 ? theme.sidebarMiniWidth
: theme.sidebarOpenWidth
color: theme.surfaceCard
// surface-card @ 0.5 while the ambient background is active (phase 14).
color: ambientOn ? theme.surfaceCardA50 : theme.surfaceCard
readonly property bool ambientOn: QbzBridge.ambientMode > 0 && QbzBridge.npHasTrack
// Square edges; clip keeps content from spilling while the width
// animates (same as the Slint root).
clip: true