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/Theme/Dimensions.swift | |
| parent | 3bacbf6ac85330d35493953d7296e5ba420b7750 (diff) | |
More localization keys, font editor preferences, better new file
Diffstat (limited to 'Map/Presentation/Theme/Dimensions.swift')
| -rw-r--r-- | Map/Presentation/Theme/Dimensions.swift | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Map/Presentation/Theme/Dimensions.swift b/Map/Presentation/Theme/Dimensions.swift index f31af9a..26b4496 100644 --- a/Map/Presentation/Theme/Dimensions.swift +++ b/Map/Presentation/Theme/Dimensions.swift @@ -24,6 +24,11 @@ struct Dimensions { static let caption: CGFloat = 11 static let smallControl: CGFloat = 11 + static var editor: CGFloat { + let fontSize = UserDefaults.standard.double(forKey: "editorFontSize") + return fontSize > 0 ? CGFloat(fontSize) : 14 + } + struct Map { static let note: CGFloat = 12 static let axisLabel: CGFloat = 14 @@ -37,6 +42,12 @@ struct Dimensions { static let caption: CGFloat = 18 static let smallControl: CGFloat = 18 + static var editor: CGFloat { + let fontSize = UserDefaults.standard.double(forKey: "editorFontSize") + let actualSize = fontSize > 0 ? fontSize : 14 + return actualSize >= 16 ? 38 : 18 + } + struct Map { static let note: CGFloat = 18 static let axisLabel: CGFloat = 18 |