jellyflood/Swiftfin/Views/SettingsView/VideoPlayerSettingsView/Components/Sections/SubtitleSection.swift
Ashik K 09a3ce15a0 Rename project from jellypig to jellyflood
Complete rebranding from jellypig to jellyflood including:
- Renamed all jellypig references to jellyflood
- Updated store implementations (jellypigstore -> jellyfloodstore)
- Moved jellypig tvOS to Swiftfin tvOS structure
- Updated service configurations and defaults
- Preserved all Xtream plugin support and EPG functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-18 09:14:33 +02:00

49 lines
1.4 KiB
Swift

//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2025 Jellyfin & Jellyfin Contributors
//
import Defaults
import SwiftUI
extension VideoPlayerSettingsView {
struct SubtitleSection: View {
@Default(.VideoPlayer.Subtitle.subtitleFontName)
private var subtitleFontName
@Default(.VideoPlayer.Subtitle.subtitleSize)
private var subtitleSize
@Default(.VideoPlayer.Subtitle.subtitleColor)
private var subtitleColor
@Router
private var router
var body: some View {
Section {
ChevronButton(L10n.subtitleFont, subtitle: subtitleFontName) {
router.route(to: .fontPicker(selection: $subtitleFontName))
}
BasicStepper(
L10n.subtitleSize,
value: $subtitleSize,
range: 1 ... 20,
step: 1
)
ColorPicker(selection: $subtitleColor, supportsOpacity: false) {
Text(L10n.subtitleColor)
}
} header: {
Text(L10n.subtitle)
} footer: {
// TODO: better wording
Text(L10n.subtitlesDisclaimer)
}
}
}
}