feat(qbz-qt): phase 18 — all four NPB modes + ViewMode flyout

PlayerBar.qml covers New/Classic/Large (full-width seekbar with times,
responsive 3-column layout, glass Classic SongCard variant, right
cluster), NowPlayingBar seam Loader picks per mode; Small unchanged.
ViewMode flyout wired (New/Classic/Small/Large live, Miniplayer/
Immersive/Kiosk inert replicas), mode persisted to the shared
ui_prefs npb_mode key, Large forces the sidebar open and docks the
208px cover (SidebarNowPlayingDock equivalent); AppShell bar height
mode-aware (42/112). Empty and playing states verified per mode;
user's persisted small pref restored after probes.

km
This commit is contained in:
vicrodh committed 2026-07-28 05:02:11 -06:00
1 parent 8c1ff34205
commit c59c883ac1
25 files changed
+1004 -6

No files matched your search

+52 -3
View File
@@ -58,13 +58,14 @@ Rectangle {
// the compositor's business).
}
NowPlayingBarSmall {
NowPlayingBar {
id: npb
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: theme.npbSmallHeight
// Square corners (see the header note above).
// Mode-aware height (AppShell.slint:396): Small collapses to one
// header-tall row; New/Classic/Large keep the full 112px.
height: QbzBridge.npbMode === 2 ? theme.npbSmallHeight : 112
}
Sidebar {
@@ -151,6 +152,54 @@ Rectangle {
}
}
// --- Large NPB (mode 3) cover dock (phase 18) -------------------------
// The L's vertical arm: the square now-playing cover pinned flush to
// the window bottom-left over the sidebar (SidebarNowPlayingDock.slint,
// AppShell.slint:747). Only while Large is ACTIVE (mode 3 + sidebar
// open). The spectrum band above the cover is NOT rendered — it needs
// the FFT visualizer tap, which the POC does not wire (POC-NOTE).
readonly property bool largeActive: QbzBridge.npbMode === 3 && QbzBridge.sidebarState === 0
Rectangle {
visible: root.largeActive
x: 16
y: parent.height - 221
width: 208
height: 221
color: "transparent"
// Drop-shadow approximation (the Slint dock's 24px blur).
Rectangle {
x: 0
y: 17
width: 208
height: 208
radius: theme.radiusMd
color: "#66000000"
}
Rectangle {
x: 0
y: 13
width: 208
height: 208
radius: theme.radiusMd
color: ambientOn ? theme.surfaceMainA22 : theme.surfaceMain
clip: true
RoundedImage {
visible: QbzBridge.npHasTrack
anchors.fill: parent
source: QbzBridge.npArtworkPath
radius: theme.radiusMd
}
QbzIcon {
visible: !QbzBridge.npHasTrack
name: "music"
width: 66
height: 66
anchors.centerIn: parent
tintName: "muted"
}
}
}
// Search cortinilla (phase 15): the live-search dropdown overlay, LAST
// child so it renders above every surface (Cortinilla.slint's mount).
Cortinilla {