diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 16:52:28 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-07 16:52:28 +0200 |
| commit | e59dcf2bcf7841ebe6f3d85ec3ec03319b261da4 (patch) | |
| tree | 3311ea9e5fbc9f26fe1b170318c9b179faf42dff /Map/Presentation/MapEditor.swift | |
| parent | 3bacbf6ac85330d35493953d7296e5ba420b7750 (diff) | |
More localization keys, font editor preferences, better new file
Diffstat (limited to 'Map/Presentation/MapEditor.swift')
| -rw-r--r-- | Map/Presentation/MapEditor.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift index 4116171..56ac898 100644 --- a/Map/Presentation/MapEditor.swift +++ b/Map/Presentation/MapEditor.swift @@ -23,6 +23,9 @@ struct MapEditor: View { private let changeDebouncer: Debouncer = Debouncer(seconds: 0.05) @AppStorage("viewStyle") var viewStyle: ViewStyle = .horizontal + @AppStorage("useCustomEditorFont") var useCustomEditorFont: Bool = false + @AppStorage("customEditorFontName") var customEditorFontName: String = "Menlo" + @AppStorage("editorFontSize") var editorFontSize: Double = 14 let zoomRange = Constants.kMinZoom...Constants.kMaxZoom @AppStorage("zoom") var zoom = 1.0 @@ -99,6 +102,7 @@ struct MapEditor: View { highlightRanges: results, selectedRange: selectedTerm ) + .id("\(useCustomEditorFont)-\(customEditorFontName)-\(editorFontSize)") .background(Color.Theme.UI.background) .foregroundColor(Color.Theme.UI.foreground) .frame(minHeight: 96.0) |