mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 02:45: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).
|
||||
|
||||
@@ -140,6 +140,7 @@ final class SettingsManager {
|
||||
// Advanced settings
|
||||
var _showAdvancedStreamDetails: Bool?
|
||||
var _showPlayerAreaDebug: Bool?
|
||||
var _showTVDebugButton: Bool?
|
||||
var _verboseMPVLogging: Bool?
|
||||
var _verboseRemoteControlLogging: Bool?
|
||||
var _mpvBufferSeconds: Double?
|
||||
@@ -465,6 +466,7 @@ final class SettingsManager {
|
||||
_sidebarPlaylistsLimitEnabled = nil
|
||||
_showAdvancedStreamDetails = nil
|
||||
_showPlayerAreaDebug = nil
|
||||
_showTVDebugButton = nil
|
||||
_verboseMPVLogging = nil
|
||||
_verboseRemoteControlLogging = nil
|
||||
_mpvBufferSeconds = nil
|
||||
|
||||
Reference in New Issue
Block a user