Add macOS player top bar with title, avatar, and close

Show a top row in the macOS player controls (like tvOS) with the channel
avatar, video title, author name, and a close button whenever controls are
visible.

- Offset the top row below the traffic lights in the floating window by
  measuring the window buttons against the top bar (no effect in fullscreen,
  the inline sheet, or the side panel where there is no overlap).
- Tapping the avatar/title/author toggles the floating details panel, mirroring
  the iOS title/author control.
- Hide the controls immediately when the details panel opens instead of waiting
  for the auto-hide timer.
This commit is contained in:
Arkadiusz Fal
2026-05-29 08:17:14 +02:00
parent 486024834d
commit 32f526e05b
2 changed files with 215 additions and 4 deletions

View File

@@ -1591,7 +1591,11 @@ extension ExpandedPlayerSheet {
},
onShowQueue: { [self] in
showingQueueSheet = true
}
},
onTitleTap: {
onTogglePanel()
},
isDetailsPanelVisible: isPanelVisible
)
.frame(width: availableWidth, height: availableHeight)
.offset(x: controlsOffset)