Improve some providers UI on macOS
- Bigger profile modal - Add star header to favorites column - Tile favorites checkbox and clear filters
This commit is contained in:
parent
6d915f8985
commit
b36189c5c9
|
@ -40,12 +40,13 @@ struct VPNFiltersView: View {
|
||||||
categoryPicker
|
categoryPicker
|
||||||
countryPicker
|
countryPicker
|
||||||
presetPicker
|
presetPicker
|
||||||
favoritesToggle
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
|
favoritesToggle
|
||||||
clearFiltersButton
|
clearFiltersButton
|
||||||
.frame(maxWidth: .infinity, alignment: .center)
|
.frame(maxWidth: .infinity, alignment: .center)
|
||||||
#else
|
#else
|
||||||
HStack {
|
HStack {
|
||||||
|
favoritesToggle
|
||||||
Spacer()
|
Spacer()
|
||||||
clearFiltersButton
|
clearFiltersButton
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,13 +79,13 @@ extension VPNProviderServerView {
|
||||||
|
|
||||||
TableColumn(Strings.Global.address, value: \.address)
|
TableColumn(Strings.Global.address, value: \.address)
|
||||||
|
|
||||||
TableColumn("") { server in
|
TableColumn("") { server in
|
||||||
FavoriteToggle(
|
FavoriteToggle(
|
||||||
value: server.serverId,
|
value: server.serverId,
|
||||||
selection: $favoritesManager.serverIds
|
selection: $favoritesManager.serverIds
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
.width(20.0)
|
.width(15.0)
|
||||||
|
|
||||||
TableColumn("") { server in
|
TableColumn("") { server in
|
||||||
Button {
|
Button {
|
||||||
|
|
|
@ -30,7 +30,7 @@ import SwiftUI
|
||||||
extension Theme {
|
extension Theme {
|
||||||
public convenience init() {
|
public convenience init() {
|
||||||
self.init(dummy: Void())
|
self.init(dummy: Void())
|
||||||
rootModalSize = CGSize(width: 700, height: 400)
|
rootModalSize = CGSize(width: 750, height: 500)
|
||||||
secondaryModalSize = CGSize(width: 500.0, height: 200.0)
|
secondaryModalSize = CGSize(width: 500.0, height: 200.0)
|
||||||
animationCategories = [.diagnostics, .profiles, .providers]
|
animationCategories = [.diagnostics, .profiles, .providers]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue