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

+5 -5
View File
@@ -741,7 +741,7 @@ export component PlayerBarSmall inherits Rectangle {
height: 215px;
close-policy: close-on-click;
ContextMenu {
ContextMenuItem {
if !ShellState.kiosk-profile: ContextMenuItem {
icon: @image-url("../assets/icons/panel-left.svg");
label: @tr("New");
selected: ShellState.npb-mode == 0;
@@ -749,7 +749,7 @@ export component PlayerBarSmall inherits Rectangle {
root.media-action("npb-view", "", "new");
}
}
ContextMenuItem {
if !ShellState.kiosk-profile: ContextMenuItem {
icon: @image-url("../assets/icons/panel-right-close.svg");
label: @tr("Classic");
selected: ShellState.npb-mode == 1;
@@ -757,7 +757,7 @@ export component PlayerBarSmall inherits Rectangle {
root.media-action("npb-view", "", "classic");
}
}
ContextMenuItem {
if !ShellState.kiosk-profile: ContextMenuItem {
icon: @image-url("../assets/icons/rows-3.svg");
label: @tr("Small");
selected: ShellState.npb-mode == 2;
@@ -765,7 +765,7 @@ export component PlayerBarSmall inherits Rectangle {
root.media-action("npb-view", "", "small");
}
}
ContextMenuItem {
if !ShellState.kiosk-profile: ContextMenuItem {
icon: @image-url("../assets/icons/layout-grid.svg");
label: @tr("Large");
selected: ShellState.npb-mode == 3;
@@ -780,7 +780,7 @@ export component PlayerBarSmall inherits Rectangle {
root.media-action("npb-view", "", "large");
}
}
Rectangle {
if !ShellState.kiosk-profile: Rectangle {
height: 7px;
Rectangle {
height: 1px;