Force dark color scheme on the tvOS player

The player and its overlays (details panel, quality/queue panels,
error cover) always sit over dark video and hardcode white text, but
system controls — the Info/Comments segmented picker and the View
Channel bordered button — followed the device color scheme, rendering
near-invisible dark-on-dark under the light scheme.
This commit is contained in:
Arkadiusz Fal
2026-09-19 23:08:58 +02:00
parent de8ed91029
commit 1353fc26d7

View File

@@ -134,7 +134,15 @@ struct TVPlayerView: View {
.padding(.horizontal, 200)
.padding(.vertical, 80)
}
// Covers don't inherit the environment applied below.
.environment(\.colorScheme, .dark)
}
// The player always sits over dark video, and its overlays
// (details panel, quality/queue panels) hardcode white text.
// Under the light color scheme, system controls (segmented
// picker, bordered buttons) and materials would otherwise
// render light-mode styles that are unreadable there.
.environment(\.colorScheme, .dark)
}
// MARK: - Quality Panel Content