The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { useGT } from "gt-react-native"; |
| 2 | import { View } from "react-native"; |
| 3 | |
| 4 | import { ListChoiceRow as SettingsChoiceRow } from "../../../../components/ui/ListChoiceRow"; |
| 5 | import { SettingsSection } from "../../components/SettingsSection"; |
| 6 | import { useAppearancePreferences } from "../AppearancePreferencesProvider"; |
| 7 | |
| 8 | export function AndroidNavigationAppearanceSection() { |
| 9 | const gt = useGT(); |
| 10 | const { isReady, androidNavigationStyle, setAndroidNavigationStyle } = useAppearancePreferences(); |
| 11 | return ( |
| 12 | <SettingsSection title={gt("Navigation", { $context: "navigation bar style" })}> |
| 13 | <View accessibilityRole="radiogroup"> |
| 14 | <SettingsChoiceRow |
| 15 | label="One UI" |
| 16 | description={gt("Floating navigation with a separate compose button.")} |
| 17 | disabled={!isReady} |
| 18 | selected={androidNavigationStyle === "one-ui"} |
| 19 | onPress={() => setAndroidNavigationStyle("one-ui")} |
| 20 | /> |
| 21 | <SettingsChoiceRow |
| 22 | label="Material" |
| 23 | description={gt("Standard Android navigation bar and side rail.")} |
| 24 | disabled={!isReady} |
| 25 | selected={androidNavigationStyle === "material"} |
| 26 | onPress={() => setAndroidNavigationStyle("material")} |
| 27 | separated |
| 28 | /> |
| 29 | </View> |
| 30 | </SettingsSection> |
| 31 | ); |
| 32 | } |