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";
11
12export function SettingsAppearanceRouteScreen() {
13 const insets = useSafeAreaInsets();
14
15 return (
16 <SettingsScreen title="Appearance">
17 <ScrollView
18 contentInsetAdjustmentBehavior="automatic"
19 showsVerticalScrollIndicator={false}
20 className="flex-1"
21 contentContainerClassName="gap-6 px-5 pt-4"
22 contentContainerStyle={{
23 paddingBottom: Math.max(insets.bottom, 18) + 18,
24 }}
25 >
26 <ThemeAppearanceSection />
27 {Platform.OS === "android" ? <AndroidNavigationAppearanceSection /> : null}
28 <TextAppearanceSection />
29 <TerminalAppearanceSection />
30 <CodeAppearanceSection />
31 </ScrollView>
32 </SettingsScreen>
33 );
34}