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 { Platform } from "react-native"; |
| 3 | import { AndroidNavigationAppearanceSection } from "./appearance/sections/AndroidNavigationAppearanceSection"; |
| 4 | import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScrollView"; |
| 5 | import { useSafeAreaInsets } from "react-native-safe-area-context"; |
| 6 | |
| 7 | import { SettingsScreen } from "./components/SettingsScreen"; |
| 8 | import { CodeAppearanceSection } from "./appearance/sections/CodeAppearanceSection"; |
| 9 | import { TerminalAppearanceSection } from "./appearance/sections/TerminalAppearanceSection"; |
| 10 | import { TextAppearanceSection } from "./appearance/sections/TextAppearanceSection"; |
| 11 | import { ThemeAppearanceSection } from "./appearance/sections/ThemeAppearanceSection"; |
| 12 | import { ToolCallsAppearanceSection } from "./appearance/sections/ToolCallsAppearanceSection"; |
| 13 | |
| 14 | export function SettingsAppearanceRouteScreen() { |
| 15 | const gt = useGT(); |
| 16 | const insets = useSafeAreaInsets(); |
| 17 | |
| 18 | return ( |
| 19 | <SettingsScreen title={gt("Appearance")}> |
| 20 | <ScrollView |
| 21 | contentInsetAdjustmentBehavior="automatic" |
| 22 | showsVerticalScrollIndicator={false} |
| 23 | className="flex-1" |
| 24 | contentContainerClassName="gap-6 px-5 pt-4" |
| 25 | contentContainerStyle={{ |
| 26 | paddingBottom: Math.max(insets.bottom, 18) + 18, |
| 27 | }} |
| 28 | > |
| 29 | <ThemeAppearanceSection /> |
| 30 | {Platform.OS === "android" ? <AndroidNavigationAppearanceSection /> : null} |
| 31 | <TextAppearanceSection /> |
| 32 | <TerminalAppearanceSection /> |
| 33 | <CodeAppearanceSection /> |
| 34 | <ToolCallsAppearanceSection /> |
| 35 | </ScrollView> |
| 36 | </SettingsScreen> |
| 37 | ); |
| 38 | } |