Fix macOS toggle style
This commit is contained in:
@@ -18,37 +18,18 @@ public struct ProfileOverrideView: View {
|
||||
}
|
||||
} else {
|
||||
FormView {
|
||||
FormSection {
|
||||
Toggle("Hide VPN Icon", isOn: $excludeDefaultRoute)
|
||||
.onChangeCompat(of: excludeDefaultRoute) { newValue in
|
||||
Task {
|
||||
await SharedPreferences.excludeDefaultRoute.set(newValue)
|
||||
}
|
||||
}
|
||||
} footer: {
|
||||
Text("Append `0.0.0.0/31` to `inet4_route_exclude_address` if not exists.")
|
||||
FormToggle("Hide VPN Icon", "Append `0.0.0.0/31` to `inet4_route_exclude_address` if not exists.", $excludeDefaultRoute) { newValue in
|
||||
await SharedPreferences.excludeDefaultRoute.set(newValue)
|
||||
}
|
||||
|
||||
FormSection {
|
||||
Toggle("No Default Route", isOn: $autoRouteUseSubRangesByDefault)
|
||||
.onChangeCompat(of: autoRouteUseSubRangesByDefault) { newValue in
|
||||
Task {
|
||||
await SharedPreferences.autoRouteUseSubRangesByDefault.set(newValue)
|
||||
}
|
||||
}
|
||||
} footer: {
|
||||
Text("By default, segment routing is used in `auto_route` instead of global routing. If `*_<route_address/route_exclude_address>` exists in the configuration, this item will not take effect on the corresponding network. (commonly used to resolve HomeKit compatibility issues)")
|
||||
FormToggle("No Default Route", """
|
||||
By default, segment routing is used in `auto_route` instead of global routing. If `*_<route_address/route_exclude_address>` exists in the configuration, this item will not take effect on the corresponding network (commonly used to resolve HomeKit compatibility issues).
|
||||
""", $autoRouteUseSubRangesByDefault) { newValue in
|
||||
await SharedPreferences.autoRouteUseSubRangesByDefault.set(newValue)
|
||||
}
|
||||
|
||||
FormSection {
|
||||
Toggle("Exclude APNs Route", isOn: $excludeAPNsRoute)
|
||||
.onChangeCompat(of: excludeAPNsRoute) { newValue in
|
||||
Task {
|
||||
await SharedPreferences.excludeAPNsRoute.set(newValue)
|
||||
}
|
||||
}
|
||||
} footer: {
|
||||
Text("Append `push.apple.com` to `bypass_domain`, and `17.0.0.0/8` to `inet4_route_exclude_address`.")
|
||||
FormToggle("Exclude APNs Route", "Append `push.apple.com` to `bypass_domain`, and `17.0.0.0/8` to `inet4_route_exclude_address`.", $excludeAPNsRoute) { newValue in
|
||||
await SharedPreferences.excludeAPNsRoute.set(newValue)
|
||||
}
|
||||
|
||||
FormButton {
|
||||
|
||||
Reference in New Issue
Block a user