diff options
Diffstat (limited to 'Map/Presentation/PreferencesWindow.swift')
| -rw-r--r-- | Map/Presentation/PreferencesWindow.swift | 18 |
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) } |