Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions web-ui/src/components/player/settings-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ interface SettingsDropdownProps {
onLocaleChange: (locale: Locale) => void;
theme: ThemeMode;
onThemeChange: (theme: ThemeMode) => void;
force16x9: boolean;
onForce16x9Change: (enabled: boolean) => void;
seamlessSwitch: boolean;
onSeamlessSwitchChange: (enabled: boolean) => void;
mp2SoftDecode: boolean;
onMp2SoftDecodeChange: (enabled: boolean) => void;
}
Expand All @@ -36,8 +36,8 @@ function SettingsDropdownComponent({
onLocaleChange,
theme,
onThemeChange,
force16x9,
onForce16x9Change,
seamlessSwitch,
onSeamlessSwitchChange,
mp2SoftDecode,
onMp2SoftDecodeChange,
}: SettingsDropdownProps) {
Expand Down Expand Up @@ -104,10 +104,14 @@ function SettingsDropdownComponent({
</select>
</label>

{/* Force 16:9 Aspect Ratio Toggle */}
{/* Seamless channel/source switch (dual-slot preload) */}
<div className="flex items-center justify-between px-1">
<span className="text-xs font-medium text-muted-foreground">{t("force16x9")}</span>
<Switch checked={force16x9} onCheckedChange={onForce16x9Change} aria-label={t("force16x9")} />
<span className="text-xs font-medium text-muted-foreground">{t("seamlessSwitch")}</span>
<Switch
checked={seamlessSwitch}
onCheckedChange={onSeamlessSwitchChange}
aria-label={t("seamlessSwitch")}
/>
</div>

{/* MP2 Audio Software Decode Toggle */}
Expand Down
Loading
Loading