diff options
Diffstat (limited to 'Map/Presentation/Preferences/MapPreferencesView.swift')
| -rw-r--r-- | Map/Presentation/Preferences/MapPreferencesView.swift | 23 |
1 files changed, 23 insertions, 0 deletions
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) |