aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/PreferencesWindow.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-06 12:45:37 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-06 12:45:37 +0200
commit54f89bcd1a7fb0b92b65d8c0ea3847d635e11133 (patch)
treeda6c1e3f015c4b21a2e32854cadb09e71f9079e7 /Map/Presentation/PreferencesWindow.swift
parent3cd8f1f7200109d505b5e105d5ebe53f0c93d337 (diff)
Allow adding and removing templates
Diffstat (limited to 'Map/Presentation/PreferencesWindow.swift')
-rw-r--r--Map/Presentation/PreferencesWindow.swift10
1 files changed, 8 insertions, 2 deletions
diff --git a/Map/Presentation/PreferencesWindow.swift b/Map/Presentation/PreferencesWindow.swift
index da2b75f..2471711 100644
--- a/Map/Presentation/PreferencesWindow.swift
+++ b/Map/Presentation/PreferencesWindow.swift
@@ -68,8 +68,14 @@ struct PreferencesWindow: View {
Text(tab.rawValue)
.font(.Theme.SmallControl.regular)
}
- .frame(width: Dimensions.Preferences.Toolbar.width, height: Dimensions.Preferences.Toolbar.height)
- .background(selectedTab == tab ? Color.Theme.UI.accent : Color.clear)
+ .frame(
+ width: Dimensions.Preferences.Toolbar.width,
+ height: Dimensions.Preferences.Toolbar.height
+ )
+ .padding(.horizontal, Dimensions.Spacing.coziest)
+ .background(
+ selectedTab == tab ? Color.Theme.UI.accent : Color.background.opacity(0.01)
+ )
.foregroundColor(selectedTab == tab ? Color.white : Color.Theme.UI.foreground)
.cornerRadius(Dimensions.Preferences.Toolbar.radius)
}