aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Preferences/EditorPreferencesView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Map/Presentation/Preferences/EditorPreferencesView.swift')
-rw-r--r--Map/Presentation/Preferences/EditorPreferencesView.swift11
1 files changed, 7 insertions, 4 deletions
diff --git a/Map/Presentation/Preferences/EditorPreferencesView.swift b/Map/Presentation/Preferences/EditorPreferencesView.swift
index cf584ff..91b332f 100644
--- a/Map/Presentation/Preferences/EditorPreferencesView.swift
+++ b/Map/Presentation/Preferences/EditorPreferencesView.swift
@@ -17,10 +17,13 @@ import SwiftUI
struct EditorPreferencesView: View {
- @AppStorage("useSmartEditor") private var useSmartEditor = false
- @AppStorage("useCustomEditorFont") private var useCustomEditorFont = false
- @AppStorage("customEditorFontName") private var customEditorFontName = "Menlo"
- @AppStorage("editorFontSize") private var editorFontSize: Double = 14
+ @AppStorage("useSmartEditor") private var useSmartEditor = UserPreferences.Defaults.useSmartEditor
+ @AppStorage("useCustomEditorFont") private var useCustomEditorFont = UserPreferences.Defaults
+ .useCustomEditorFont
+ @AppStorage("customEditorFontName") private var customEditorFontName = UserPreferences.Defaults
+ .customEditorFontName
+ @AppStorage("editorFontSize") private var editorFontSize: Double = UserPreferences.Defaults
+ .editorFontSize
var monospacedFonts: [String] {
let fontManager = NSFontManager.shared