feat(kiosk): hide NPB layout/lyrics/queue controls; layout button toggles Desktop mode
In kiosk the layout-flyout would carry a single Desktop mode row that the fixed-height popup floats high above the button, so the layout button toggles straight to Desktop mode instead. Lyrics/Queue toggles are hidden (their panels aren't mounted in the kiosk shell; the queue lives in Now Playing). cc
This commit is contained in:
1 file changed
+17
-6
@@ -717,9 +717,18 @@ export component PlayerBarSmall inherits Rectangle {
|
||||
icon: @image-url("../assets/icons/layout-grid.svg");
|
||||
icon-size: 16px;
|
||||
btn-width: 32px;
|
||||
tooltip: @tr("Now Playing view");
|
||||
tooltip: ShellState.kiosk-profile ? @tr("Desktop mode") : @tr("Now Playing view");
|
||||
clicked => {
|
||||
layout-menu.show();
|
||||
// In kiosk the flyout would carry a single
|
||||
// "Desktop mode" row, which the fixed-height
|
||||
// popup floats high above the button — so the
|
||||
// button toggles straight back to Desktop mode
|
||||
// instead of opening a one-item menu.
|
||||
if (ShellState.kiosk-profile) {
|
||||
root.media-action("npb-view", "", "toggle-profile");
|
||||
} else {
|
||||
layout-menu.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
layout-menu := PopupWindow {
|
||||
@@ -814,8 +823,9 @@ export component PlayerBarSmall inherits Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
// Lyrics — toggles the lyrics panel (1:1 with PlayerBar:765).
|
||||
VerticalLayout {
|
||||
// Lyrics — desktop-only. In kiosk the panel isn't mounted and
|
||||
// the Playing view carries a Cover<->Lyrics toggle instead.
|
||||
if !ShellState.kiosk-profile: VerticalLayout {
|
||||
alignment: center;
|
||||
IconButton {
|
||||
icon: @image-url("../assets/icons/mic-vocal.svg");
|
||||
@@ -945,8 +955,9 @@ export component PlayerBarSmall inherits Rectangle {
|
||||
|
||||
Rectangle { width: 4px; }
|
||||
|
||||
// Queue panel toggle — same ShellState.queue-open flip as New.
|
||||
VerticalLayout {
|
||||
// Queue panel toggle — desktop-only. The kiosk Playing view
|
||||
// integrates the queue (Up Next / History), so hide it here.
|
||||
if !ShellState.kiosk-profile: VerticalLayout {
|
||||
alignment: center;
|
||||
IconButton {
|
||||
icon: @image-url("../assets/icons/list-ordered.svg");
|
||||
|
||||
Reference in new issue
Block a user