feat(kiosk): forward nav, window chrome, NPB gating, list windowing

- Add the forward nav button beside back (NavState.can-forward/request-forward).
- The kiosk back bar owns the window chrome (no HeaderBar): macOS leaves the
  ~78px traffic-light inset, Linux frameless draws the custom WindowControls
  on the right. OS-agnostic (the kiosk is not restricted to any platform).
- Hide ALL NPB view modes not compatible with kiosk (New/Classic/Small/Large
  + Miniplayer + Immersive) while in the kiosk profile; only the profile
  toggle remains.
- Track lists (Library/Search) use ListView so only the visible band mounts
  — the plain VerticalLayout spiked CPU on entry, which a Pi cannot afford.

cc
This commit is contained in:
vicrodh committed 2026-07-11 08:16:24 -06:00
1 parent 6032791be4
commit 9041b0e749
4 files changed
+56 -33

No files matched your search

+7 -12
View File
@@ -5,6 +5,7 @@
// The query is entered in the KioskShell back-bar field (SearchActions.submit);
// this view is the tabbed results. Covers are push-only, so binding the shared
// arrays is enough.
import { ListView } from "std-widgets.slint";
import { Theme } from "../foundation/semantic-colors.slint";
import { Radius } from "../foundation/radius.slint";
import { SearchState, SearchActions } from "../state.slint";
@@ -88,18 +89,12 @@ export component KioskSearch inherits Rectangle {
}
}
// Tracks — simple vertical list.
if SearchState.tab == 2: Flickable {
viewport-width: self.width;
viewport-height: tracklist.preferred-height;
tracklist := VerticalLayout {
padding: root.pad;
spacing: 2px;
for track in SearchState.tracks: KioskTrackRow {
track: track;
play(id) => {
root.media-action("track", id, "play");
}
// Tracks — windowed list (ListView mounts only the visible band).
if SearchState.tab == 2: ListView {
for track in SearchState.tracks: KioskTrackRow {
track: track;
play(id) => {
root.media-action("track", id, "play");
}
}
}