mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 03:15:03 +00:00
Rework tvOS player controls and settings sheet
Replace the tvOS bottom action bar with Settings / Info / Comments / Next / Close. Settings reuses QualitySelectorView (video, audio, subtitles, speed); Comments opens TVDetailsPanel directly on the comments tab; Close stops playback and dismisses. Debug button is hidden by default and can be re-enabled via a new tvOS-only Advanced Settings > Developer toggle. Present the settings sheet as a fullScreenCover with a centered material card, fix the "Normal" hyphenation, and restyle row selection throughout the quality selector on tvOS: per-row rounded backgrounds with focus tint + stroke, vertical spacing instead of dividers, and a focusable speed-rate menu.
This commit is contained in:
@@ -93,6 +93,7 @@ enum SettingsKey: String, CaseIterable {
|
||||
// Advanced
|
||||
case showAdvancedStreamDetails
|
||||
case showPlayerAreaDebug
|
||||
case showTVDebugButton
|
||||
case verboseMPVLogging
|
||||
case verboseRemoteControlLogging
|
||||
case mpvBufferSeconds
|
||||
|
||||
@@ -39,6 +39,19 @@ extension SettingsManager {
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether to show the Debug button in the tvOS player bottom controls.
|
||||
/// Opens the MPV debug overlay. Default is false (hidden).
|
||||
var showTVDebugButton: Bool {
|
||||
get {
|
||||
if let cached = _showTVDebugButton { return cached }
|
||||
return bool(for: .showTVDebugButton, default: false)
|
||||
}
|
||||
set {
|
||||
_showTVDebugButton = newValue
|
||||
set(newValue, for: .showTVDebugButton)
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether verbose MPV rendering logging is enabled.
|
||||
/// When enabled, logs detailed OpenGL context, framebuffer, and display link state
|
||||
/// to help diagnose rendering issues. Default is false (disabled).
|
||||
|
||||
Reference in New Issue
Block a user