mirror of
https://github.com/yattee/yattee.git
synced 2026-08-06 07:11:28 +00:00
Fix #955: make subtitle appearance settings adjustable on tvOS
Text color, border color, background color, border size, and bottom margin were rendered as static rows on tvOS (ColorPicker and Slider are unavailable there), so the focus engine skipped over them and they could never be changed. Replace them with menu pickers following the existing font size pattern: - Text/border/background color: 9 preset colors with a swatch in the row label; stored values snap to the nearest preset - Background opacity: 25-100% steps (iOS parity, where ColorPicker supports opacity for the background) - Border size: 0.0-5.0 in 0.5 steps - Bottom margin: 0-50% in 5% steps Verified on tvOS simulator: rows are focusable, selections persist and are rendered by MPV during playback.
This commit is contained in:
@@ -15007,6 +15007,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.backgroundOpacity" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Background Opacity"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.bold" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
@@ -15047,6 +15057,96 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.black" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Black"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.blue" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Blue"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.cyan" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Cyan"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.green" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Green"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.magenta" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Magenta"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.orange" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Orange"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.red" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Red"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.white" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "White"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.color.yellow" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Yellow"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.subtitles.colorsSection" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
|
||||
Reference in New Issue
Block a user