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
countryPicker
presetPicker
favoritesToggle
#if os(iOS)
favoritesToggle
clearFiltersButton
.frame(maxWidth: .infinity, alignment: .center)
#else
HStack {
favoritesToggle
Spacer()
clearFiltersButton
}

View File

@ -79,13 +79,13 @@ extension VPNProviderServerView {
TableColumn(Strings.Global.address, value: \.address)
TableColumn("") { server in
TableColumn("􀋂") { server in
FavoriteToggle(
value: server.serverId,
selection: $favoritesManager.serverIds
)
}
.width(20.0)
.width(15.0)
TableColumn("") { server in
Button {

View File

@ -30,7 +30,7 @@ import SwiftUI
extension Theme {
public convenience init() {
self.init(dummy: Void())
rootModalSize = CGSize(width: 700, height: 400)
rootModalSize = CGSize(width: 750, height: 500)
secondaryModalSize = CGSize(width: 500.0, height: 200.0)
animationCategories = [.diagnostics, .profiles, .providers]
}