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() 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)