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