Fix macOS toggle style

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