mirror of
https://github.com/yattee/yattee.git
synced 2025-08-04 01:34:10 +00:00
Minor fixes
This commit is contained in:
@@ -26,7 +26,7 @@ struct ControlsOverlay: View {
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
VStack {
|
||||
Section(header: controlsHeader("Rate & Captions".localized())) {
|
||||
Section(header: controlsHeader(rateAndCaptionsLabel.localized())) {
|
||||
HStack(spacing: rateButtonsSpacing) {
|
||||
decreaseRateButton
|
||||
#if os(tvOS)
|
||||
@@ -39,15 +39,16 @@ struct ControlsOverlay: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
captionsButton
|
||||
#if os(tvOS)
|
||||
.focused($focusedField, equals: .captions)
|
||||
#endif
|
||||
.disabled(player.activeBackend != .mpv)
|
||||
if player.activeBackend == .mpv {
|
||||
captionsButton
|
||||
#if os(tvOS)
|
||||
.focused($focusedField, equals: .captions)
|
||||
#endif
|
||||
|
||||
#if os(iOS)
|
||||
#if os(iOS)
|
||||
.foregroundColor(.white)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: controlsHeader("Quality Profile".localized())) {
|
||||
@@ -110,6 +111,10 @@ struct ControlsOverlay: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
private var rateAndCaptionsLabel: String {
|
||||
player.activeBackend == .mpv ? "Rate & Captions" : "Playback Rate"
|
||||
}
|
||||
|
||||
private var overlayHeight: Double {
|
||||
#if os(tvOS)
|
||||
contentSize.height + 80.0
|
||||
|
Reference in New Issue
Block a user