diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 20:21:24 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-15 00:10:39 +0100 |
| commit | 0d5e6636405dbe332c33c0fb82c7ccccb20f96cb (patch) | |
| tree | a9cda2b711bbfc9277d66310440dd965b16682fc /Map/Presentation/Theme/NSFont+theme.swift | |
| parent | a5ae7aedc840a38505b3181f4e5ba92e90d94fa1 (diff) | |
Use wmap-parser-swift and tree-sitter-wmap for parsing and highlighting.
Diffstat (limited to 'Map/Presentation/Theme/NSFont+theme.swift')
| -rw-r--r-- | Map/Presentation/Theme/NSFont+theme.swift | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Map/Presentation/Theme/NSFont+theme.swift b/Map/Presentation/Theme/NSFont+theme.swift index cd119f2..712cc1d 100644 --- a/Map/Presentation/Theme/NSFont+theme.swift +++ b/Map/Presentation/Theme/NSFont+theme.swift @@ -16,30 +16,12 @@ import AppKit extension NSFont { - static func libertinus(size: CGFloat) -> NSFont { - return NSFont(name: "Libertinus Serif", size: size) ?? .systemFont(ofSize: size) - } - static func ronzino(size: CGFloat) -> NSFont { return NSFont(name: "Ronzino", size: size) ?? .systemFont(ofSize: size) } public struct Theme { - struct Body { - @MainActor static let regular = NSFont.ronzino(size: Dimensions.FontSize.body) - @MainActor static let emphasized = NSFont.ronzino(size: Dimensions.FontSize.body) - } - - struct Title { - @MainActor static let emphasized = NSFont.libertinus(size: Dimensions.FontSize.title) - } - - struct Caption { - @MainActor static let regular = NSFont.ronzino(size: Dimensions.FontSize.caption) - @MainActor static let emphasized = NSFont.ronzino(size: Dimensions.FontSize.caption) - } - struct SmallControl { @MainActor static let regular = NSFont.ronzino(size: Dimensions.FontSize.smallControl) @MainActor static let emphasized = NSFont.ronzino(size: Dimensions.FontSize.smallControl) |