mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
Phase 1 of the player panels redesign: - New PanelSettings model (pages, regions, layout mode, default visibility) stored as an optional field on PlayerControlsLayout with an effectivePanelSettings accessor; lenient Codable so future page types and settings payloads never corrupt saved presets. - New Views/Player/Panels content engine: PlayerPanelContentView renders a page bar plus the selected page (info, comments, related, chapters, queue, tracks), with runtime hiding of empty pages. - PortraitDetailsPanel and FloatingDetailsPanel now host the shared content instead of their duplicated info bodies; drag machinery, pills, and fades are untouched. - Comments list extracted into CommentsListContent shared by the overlay and the comments page; comments pill routes to the comments page (expanding the portrait panel) when the page is enabled, and falls back to the overlay when it is not. - Tracks page embeds QualitySelectorView via a new isEmbedded mode. - Deleted the unused video info bodies in ExpandedPlayerSheet+VideoInfo and the dead PlayerInfoTab model.
23 lines
357 B
Swift
23 lines
357 B
Swift
//
|
|
// QueuePanelPage.swift
|
|
// Yattee
|
|
//
|
|
// Details panel page hosting the shared queue list.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
#if os(iOS) || os(macOS)
|
|
|
|
struct QueuePanelPage: View {
|
|
let context: PanelPageContext
|
|
var bottomInset: CGFloat = 0
|
|
|
|
var body: some View {
|
|
QueueListView()
|
|
.safeAreaPadding(.bottom, bottomInset)
|
|
}
|
|
}
|
|
|
|
#endif
|