mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-25 15:20:34 +01:00
- spacing: top padding + inter-group gaps so section titles, descriptions and buttons no longer touch (playback buffer, audio/subtitles, music, marlin, kefin, streamystats, storage, hide-libraries) - ListGroup: skip empty section titles - SettingSwitch: cap the native Android switch in a fixed centered box so toggle rows match the other rows and stay put when toggled; iOS unchanged - Appearance: move "Hide libraries" to the end of the list
24 lines
775 B
TypeScript
24 lines
775 B
TypeScript
import { View } from "react-native";
|
|
import { SettingSwitch } from "@/components/common/SettingSwitch";
|
|
import { useSettings } from "@/utils/atoms/settings";
|
|
import { ListGroup } from "../list/ListGroup";
|
|
import { ListItem } from "../list/ListItem";
|
|
|
|
export const ChromecastSettings: React.FC = ({ ...props }) => {
|
|
const { settings, updateSettings } = useSettings();
|
|
return (
|
|
<View {...props}>
|
|
<ListGroup title={"Chromecast"}>
|
|
<ListItem title={"Enable H265 for Chromecast"}>
|
|
<SettingSwitch
|
|
value={settings.enableH265ForChromecast}
|
|
onValueChange={(enableH265ForChromecast) =>
|
|
updateSettings({ enableH265ForChromecast })
|
|
}
|
|
/>
|
|
</ListItem>
|
|
</ListGroup>
|
|
</View>
|
|
);
|
|
};
|