aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Theme/Font+theme.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 00:11:21 +0100
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 00:19:39 +0100
commitfa681bfcf5cbfcc711fb0ab10f3fd74ac83bf18c (patch)
tree2dce2e95bab08f773246b450ac50227f8e8f57da /Map/Presentation/Theme/Font+theme.swift
parent0d5e6636405dbe332c33c0fb82c7ccccb20f96cb (diff)
Apply formatting rules
Diffstat (limited to 'Map/Presentation/Theme/Font+theme.swift')
-rw-r--r--Map/Presentation/Theme/Font+theme.swift9
1 files changed, 3 insertions, 6 deletions
diff --git a/Map/Presentation/Theme/Font+theme.swift b/Map/Presentation/Theme/Font+theme.swift
index bb1d8f6..d560d77 100644
--- a/Map/Presentation/Theme/Font+theme.swift
+++ b/Map/Presentation/Theme/Font+theme.swift
@@ -43,8 +43,7 @@ extension Font {
static var note: Font {
if UserDefaults.standard.bool(forKey: "useCustomFont"),
let customFontName = UserDefaults.standard.string(forKey: "customFontName"),
- !customFontName.isEmpty
- {
+ !customFontName.isEmpty {
return Font.custom(customFontName, size: Dimensions.FontSize.Map.note).weight(.regular)
}
return Font.libertinus(size: Dimensions.FontSize.Map.note).weight(.regular)
@@ -53,8 +52,7 @@ extension Font {
static var axisLabel: Font {
if UserDefaults.standard.bool(forKey: "useCustomFont"),
let customFontName = UserDefaults.standard.string(forKey: "customFontName"),
- !customFontName.isEmpty
- {
+ !customFontName.isEmpty {
return Font.custom(customFontName, size: Dimensions.FontSize.Map.axisLabel).weight(
.regular)
}
@@ -64,8 +62,7 @@ extension Font {
static var vertexLabel: Font {
if UserDefaults.standard.bool(forKey: "useCustomFont"),
let customFontName = UserDefaults.standard.string(forKey: "customFontName"),
- !customFontName.isEmpty
- {
+ !customFontName.isEmpty {
return Font.custom(customFontName, size: Dimensions.FontSize.Map.vertexLabel).weight(
.regular)
}