From b36189c5c98fdd76084aec933a348998e678e79f Mon Sep 17 00:00:00 2001 From: Davide Date: Sat, 26 Oct 2024 21:01:05 +0200 Subject: [PATCH] Improve some providers UI on macOS - Bigger profile modal - Add star header to favorites column - Tile favorites checkbox and clear filters --- .../Library/Sources/AppUI/Views/Provider/VPNFiltersView.swift | 3 ++- .../Views/Provider/macOS/VPNProviderServerView+macOS.swift | 4 ++-- .../Library/Sources/AppUI/Views/Theme/Theme+macOS.swift | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView.swift b/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView.swift index f16cfd00..cad1ec07 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView.swift @@ -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 } diff --git a/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift b/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift index fe35f239..39bfe9da 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Provider/macOS/VPNProviderServerView+macOS.swift @@ -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 { diff --git a/Passepartout/Library/Sources/AppUI/Views/Theme/Theme+macOS.swift b/Passepartout/Library/Sources/AppUI/Views/Theme/Theme+macOS.swift index 9ccfb67d..81b7028e 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Theme/Theme+macOS.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Theme/Theme+macOS.swift @@ -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] }