From 3cd8f1f7200109d505b5e105d5ebe53f0c93d337 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sat, 5 Jul 2025 23:40:26 +0200 Subject: Improve defaults and style for stages --- Map/Presentation/PreferencesWindow.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Map/Presentation/PreferencesWindow.swift') 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) } -- cgit