aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Preferences
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-08 10:58:56 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-08 10:58:56 +0200
commit3cca7e9f25166c995a9b9b7bca5beb20be969ac7 (patch)
treee4c373b3ed71e08010e53e4efdd92f82692dba97 /Map/Presentation/Preferences
parent1b098db3824728699b2dd9d0820b8599a7750560 (diff)
Comment out unused preferences4.0.0
Diffstat (limited to 'Map/Presentation/Preferences')
-rw-r--r--Map/Presentation/Preferences/EditorPreferencesView.swift10
-rw-r--r--Map/Presentation/Preferences/MapPreferencesView.swift23
2 files changed, 31 insertions, 2 deletions
diff --git a/Map/Presentation/Preferences/EditorPreferencesView.swift b/Map/Presentation/Preferences/EditorPreferencesView.swift
index 3d456c9..cf584ff 100644
--- a/Map/Presentation/Preferences/EditorPreferencesView.swift
+++ b/Map/Presentation/Preferences/EditorPreferencesView.swift
@@ -95,19 +95,25 @@ struct EditorPreferencesView: View {
.frame(maxWidth: .infinity, alignment: .leading)
}
+ /*
+
+ Disabled because we haven't written the smart editor yet.
+ Call it aspirational preferences.
+
Divider()
-
+
HStack(alignment: .firstTextBaseline, spacing: Dimensions.Spacing.regular) {
Text("preferences.editor.smart_editor.title")
.font(.Theme.Body.emphasized)
.frame(maxWidth: 250, alignment: .trailing)
-
+
VStack(alignment: .leading, spacing: Dimensions.Spacing.cozy) {
Toggle(
String(localized: "preferences.editor.smart_editor.enabled"), isOn: $useSmartEditor)
}
.frame(maxWidth: .infinity, alignment: .leading)
}
+ */
Spacer()
}.padding(.vertical, Dimensions.Spacing.loose)
diff --git a/Map/Presentation/Preferences/MapPreferencesView.swift b/Map/Presentation/Preferences/MapPreferencesView.swift
index d81916f..f6c909c 100644
--- a/Map/Presentation/Preferences/MapPreferencesView.swift
+++ b/Map/Presentation/Preferences/MapPreferencesView.swift
@@ -19,6 +19,7 @@ struct MapPreferencesView: View {
@AppStorage("showMapBackground") private var showBackground = true
@AppStorage("useCustomFont") private var useCustomFont = false
@AppStorage("customFontName") private var customFontName = "Helvetica"
+ @AppStorage("defaultExportFormat") private var defaultExportFormat = "png"
var body: some View {
VStack(alignment: .center, spacing: Dimensions.Spacing.loose) {
@@ -55,6 +56,28 @@ struct MapPreferencesView: View {
.frame(maxWidth: .infinity, alignment: .leading)
}
+ Divider()
+
+ HStack(alignment: .firstTextBaseline, spacing: Dimensions.Spacing.regular) {
+ Text("preferences.map.export.title")
+ .font(.Theme.Body.emphasized)
+ .frame(maxWidth: 250, alignment: .trailing)
+
+ VStack(alignment: .leading, spacing: Dimensions.Spacing.cozy) {
+ Text("preferences.map.export.default_format")
+ .font(.Theme.Body.regular)
+ Picker("", selection: $defaultExportFormat) {
+ ForEach(ExportFormats.allCases, id: \.self) { exportFormat in
+ Text(exportFormat.title).tag(exportFormat.rawValue)
+ }
+ }
+ .pickerStyle(MenuPickerStyle())
+ .frame(maxWidth: 250)
+ .padding(.leading, -Dimensions.Spacing.regular)
+ }
+ .frame(maxWidth: .infinity, alignment: .leading)
+ }
+
Spacer()
}.padding(.vertical, Dimensions.Spacing.loose)
.padding(.horizontal, Dimensions.Spacing.indulgent)