Matthias Nott
2026-03-02 a0f39302919fbacf7a0d407f01b1a50413ea6f70
app/settings.tsx
....@@ -20,9 +20,9 @@
2020 const { serverConfig, status, connect, disconnect, saveServerConfig } =
2121 useConnection();
2222
23
- const [host, setHost] = useState(serverConfig?.host ?? "");
23
+ const [host, setHost] = useState(serverConfig?.host ?? "192.168.1.100");
2424 const [port, setPort] = useState(
25
- serverConfig?.port ? String(serverConfig.port) : ""
25
+ serverConfig?.port ? String(serverConfig.port) : "8765"
2626 );
2727 const [saved, setSaved] = useState(false);
2828
....@@ -63,14 +63,34 @@
6363 keyboardShouldPersistTaps="handled"
6464 >
6565 {/* Header */}
66
- <View className="flex-row items-center px-4 py-3 border-b border-pai-border">
66
+ <View
67
+ style={{
68
+ flexDirection: "row",
69
+ alignItems: "center",
70
+ paddingHorizontal: 16,
71
+ paddingVertical: 12,
72
+ borderBottomWidth: 1,
73
+ borderBottomColor: "#2E2E45",
74
+ }}
75
+ >
6776 <Pressable
6877 onPress={() => router.back()}
69
- className="w-9 h-9 items-center justify-center rounded-full bg-pai-bg-tertiary mr-3"
78
+ hitSlop={{ top: 6, bottom: 6, left: 6, right: 6 }}
79
+ style={{
80
+ width: 36,
81
+ height: 36,
82
+ alignItems: "center",
83
+ justifyContent: "center",
84
+ borderRadius: 18,
85
+ backgroundColor: "#1E1E2E",
86
+ marginRight: 12,
87
+ }}
7088 >
71
- <Text className="text-pai-text text-base">←</Text>
89
+ <Text style={{ color: "#E8E8F0", fontSize: 16 }}>←</Text>
7290 </Pressable>
73
- <Text className="text-pai-text text-xl font-bold">Settings</Text>
91
+ <Text style={{ color: "#E8E8F0", fontSize: 22, fontWeight: "800", letterSpacing: -0.5 }}>
92
+ Settings
93
+ </Text>
7494 </View>
7595
7696 <View className="px-4 mt-6">
....@@ -115,7 +135,7 @@
115135 autoCapitalize="none"
116136 autoCorrect={false}
117137 keyboardType="url"
118
- className="text-pai-text text-base"
138
+ style={{ color: "#E8E8F0", fontSize: 16, padding: 0 }}
119139 />
120140 </View>
121141
....@@ -130,7 +150,7 @@
130150 placeholder="8765"
131151 placeholderTextColor="#5A5A78"
132152 keyboardType="number-pad"
133
- className="text-pai-text text-base"
153
+ style={{ color: "#E8E8F0", fontSize: 16, padding: 0 }}
134154 />
135155 </View>
136156 </View>