Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

ui: reorder Settings sections — Terminal → VM Resources → Network → Appearance → Diagnostics → About

ExTv1566addb17dc
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
index 618ae94..ffd1550 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
@@ -131,18 +131,6 @@ fun SettingsScreen(
) {
Spacer(Modifier.height(8.dp))
- // ── Display ──────────────────────────────────────────────
- SettingsSectionHeader("Appearance")
-
- SettingsSwitchRow(
- title = "Dark theme",
- subtitle = "Use a dark color scheme",
- checked = darkTheme,
- onCheckedChange = { viewModel.setDarkTheme(it) },
- )
-
- Spacer(Modifier.height(16.dp))
-
// ── Terminal ─────────────────────────────────────────────
SettingsSectionHeader("Terminal")
@@ -267,16 +255,7 @@ fun SettingsScreen(
Spacer(Modifier.height(8.dp))
- // SSH
- SettingsSwitchRow(
- title = "Enable SSH",
- subtitle = if (sshEnabled)
- "ssh root@<phone-ip> -p 9922 | password: podroid"
- else
- "Access the VM over your local network via SSH",
- checked = sshEnabled,
- onCheckedChange = { viewModel.setSshEnabled(it) },
- )
+
Spacer(Modifier.height(4.dp))
@@ -294,8 +273,8 @@ fun SettingsScreen(
Spacer(Modifier.height(16.dp))
- // ── Port Forwarding ───────────────────────────────────────
- SettingsSectionHeader("Port Forwarding")
+ // ── Network ───────────────────────────────────────────────
+ SettingsSectionHeader("Network")
val phoneIp = viewModel.phoneIp
Text(
@@ -305,6 +284,12 @@ fun SettingsScreen(
fontWeight = FontWeight.Medium,
modifier = Modifier.padding(bottom = 4.dp),
)
+ SettingsSwitchRow(
+ title = "Enable SSH",
+ subtitle = if (sshEnabled) "ssh root@<phone-ip> -p 9922 | password: podroid" else "Access the VM over your local network via SSH",
+ checked = sshEnabled,
+ onCheckedChange = { viewModel.setSshEnabled(it) },
+ )
Text(
text = "Rules forward ports from your Android device into the VM. Active immediately when VM is running.",
style = MaterialTheme.typography.bodySmall,
@@ -382,7 +367,15 @@ fun SettingsScreen(
Spacer(Modifier.height(16.dp))
- // ── Diagnostics ───────────────────────────────────────────
+ SettingsSectionHeader("Appearance")
+ SettingsSwitchRow(
+ title = "Dark theme",
+ subtitle = "Use a dark color scheme",
+ checked = darkTheme,
+ onCheckedChange = { viewModel.setDarkTheme(it) },
+ )
+ Spacer(Modifier.height(16.dp))
+
SettingsSectionHeader("Diagnostics")
FilledTonalButton(