Fix macOS toggle style

This commit is contained in:
世界 committed 2026-02-01 18:45:43 +08:00
1 parent 38e8b3eda9
commit f97857e590
1 file changed
+3
@@ -24,6 +24,9 @@ public struct HTTPProxyCard: View {
Spacer() Spacer()
Toggle("", isOn: $systemProxyEnabled) Toggle("", isOn: $systemProxyEnabled)
.labelsHidden() .labelsHidden()
#if os(macOS)
.toggleStyle(.switch)
#endif
.onChangeCompat(of: systemProxyEnabled) { newValue in .onChangeCompat(of: systemProxyEnabled) { newValue in
Task { Task {
await onToggle(newValue) await onToggle(newValue)