Header globe → network panel: pick the internet exit (auto, Amnezia, each VLESS node, with live delays) and switch client networks (Saga, Planet9) through the mihomo core API without reloads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-07 21:29:33 +03:00
parent e11d06c73e
commit 14114d1a58
3 changed files with 315 additions and 6 deletions
+2 -6
View File
@@ -584,12 +584,8 @@ struct IslandHeader: View {
}
.buttonStyle(.plain)
Button(action: { state.soundEnabled.toggle() }) {
Image(systemName: state.soundEnabled ? "speaker.wave.2" : "speaker.slash")
.font(.system(size: 14))
.foregroundColor(Color(hex: "#8E939C"))
}
.buttonStyle(.plain)
// Networks (sound lives in Settings and on ⌃⌥M).
NetGlobeButton()
}
}
.padding(.trailing, 16)