mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 05:32:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user