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:
Davide 2024-10-26 21:01:05 +02:00
parent 6d915f8985
commit b36189c5c9
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 5 additions and 4 deletions

View File

@ -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
} }

View File

@ -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 {

View File

@ -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]
} }