Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SettingsAppearanceRouteScreen.tsx

38 lines1.6 KB

1import { useGT } from "gt-react-native";
2import { Platform } from "react-native";
3import { AndroidNavigationAppearanceSection } from "./appearance/sections/AndroidNavigationAppearanceSection";
4import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScrollView";
5import { useSafeAreaInsets } from "react-native-safe-area-context";
6​
7import { SettingsScreen } from "./components/SettingsScreen";
8import { CodeAppearanceSection } from "./appearance/sections/CodeAppearanceSection";
9import { TerminalAppearanceSection } from "./appearance/sections/TerminalAppearanceSection";
10import { TextAppearanceSection } from "./appearance/sections/TextAppearanceSection";
11import { ThemeAppearanceSection } from "./appearance/sections/ThemeAppearanceSection";
12import { ToolCallsAppearanceSection } from "./appearance/sections/ToolCallsAppearanceSection";
13​
14export 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 );