aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Preferences
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 08:54:22 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 08:54:22 +0200
commit005c2048af141e3658a170c283dd41bd4fb5cdcb (patch)
tree9a07100197681a38a78e663c66d034bfacf6ec71 /Map/Presentation/Preferences
parent1e89ea22d551cebfd6c0c0451000c3283ddb2d2e (diff)
Make soft-wrap configurable.
Diffstat (limited to 'Map/Presentation/Preferences')
-rw-r--r--Map/Presentation/Preferences/EditorPreferencesView.swift9
1 files changed, 9 insertions, 0 deletions
diff --git a/Map/Presentation/Preferences/EditorPreferencesView.swift b/Map/Presentation/Preferences/EditorPreferencesView.swift
index 23359b2..c08b03e 100644
--- a/Map/Presentation/Preferences/EditorPreferencesView.swift
+++ b/Map/Presentation/Preferences/EditorPreferencesView.swift
@@ -24,6 +24,8 @@ struct EditorPreferencesView: View {
.customEditorFontName
@AppStorage("editorFontSize") private var editorFontSize: Double = UserPreferences.Defaults
.editorFontSize
+ @AppStorage("softWrapLines") private var softWrapLines: Bool = UserPreferences.Defaults
+ .softWrapLines
var monospacedFonts: [String] {
let fontManager = NSFontManager.shared
@@ -79,6 +81,13 @@ struct EditorPreferencesView: View {
VStack(alignment: .leading, spacing: Dimensions.Spacing.cozy) {
Toggle(
+ isOn: $softWrapLines,
+ label: {
+ Text("preferences.editor.editor_style.soft_wrap_lines")
+ .font(.Theme.Body.regular)
+ })
+
+ Toggle(
isOn: $useCustomEditorFont,
label: {
Text("preferences.editor.editor_style.use_custom_font")