aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/PreferencesWindow.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-05 23:40:26 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-05 23:40:26 +0200
commit3cd8f1f7200109d505b5e105d5ebe53f0c93d337 (patch)
tree9c997bc3287998b2944a015a919eb59ea424814a /Map/Presentation/PreferencesWindow.swift
parentcb4a713afc81326485becba4fa3a635f112114d4 (diff)
Improve defaults and style for stages
Diffstat (limited to 'Map/Presentation/PreferencesWindow.swift')
-rw-r--r--Map/Presentation/PreferencesWindow.swift18
1 files changed, 9 insertions, 9 deletions
diff --git a/Map/Presentation/PreferencesWindow.swift b/Map/Presentation/PreferencesWindow.swift
index 22bd987..da2b75f 100644
--- a/Map/Presentation/PreferencesWindow.swift
+++ b/Map/Presentation/PreferencesWindow.swift
@@ -56,22 +56,22 @@ struct PreferencesWindow: View {
TemplatesPreferencesView()
}
}
- .frame(width: 600, height: 400)
+ .frame(width: Dimensions.Preferences.Window.width, height: Dimensions.Preferences.Window.height)
.toolbar {
ToolbarItem(placement: .principal) {
- HStack(spacing: 12) {
+ HStack(spacing: Dimensions.Spacing.loose) {
ForEach(PreferencesTab.allCases, id: \.self) { tab in
Button(action: { selectedTab = tab }) {
- VStack(spacing: 2) {
+ VStack(spacing: Dimensions.Spacing.coziest) {
Image(systemName: tab.systemImage)
- .font(.system(size: 16))
+ .font(.system(size: Dimensions.Preferences.Toolbar.size))
Text(tab.rawValue)
- .font(.caption2)
+ .font(.Theme.SmallControl.regular)
}
- .frame(width: 60, height: 40)
- .background(selectedTab == tab ? Color.accentColor.opacity(0.2) : Color.clear)
- .foregroundColor(selectedTab == tab ? .accentColor : .primary)
- .cornerRadius(6)
+ .frame(width: Dimensions.Preferences.Toolbar.width, height: Dimensions.Preferences.Toolbar.height)
+ .background(selectedTab == tab ? Color.Theme.UI.accent : Color.clear)
+ .foregroundColor(selectedTab == tab ? Color.white : Color.Theme.UI.foreground)
+ .cornerRadius(Dimensions.Preferences.Toolbar.radius)
}
.buttonStyle(.plain)
}