From 005c2048af141e3658a170c283dd41bd4fb5cdcb Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 9 Jul 2025 08:54:22 +0200 Subject: Make soft-wrap configurable. --- Map/Presentation/Preferences/EditorPreferencesView.swift | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Map/Presentation/Preferences') 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 @@ -78,6 +80,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: { -- cgit