aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Theme/NSColor+theme.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-04 22:45:30 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-04 22:45:30 +0200
commite21ead77ffdff206d1ae17e5ce93ea34c4227414 (patch)
tree816908ddf90aaf99a6476ab364f8a13c193b99c4 /Map/Presentation/Theme/NSColor+theme.swift
parentc843d34f56c207abcf4b93e424125eea2dc601e0 (diff)
Add new fonts and picker style.
Diffstat (limited to 'Map/Presentation/Theme/NSColor+theme.swift')
-rw-r--r--Map/Presentation/Theme/NSColor+theme.swift26
1 files changed, 15 insertions, 11 deletions
diff --git a/Map/Presentation/Theme/NSColor+theme.swift b/Map/Presentation/Theme/NSColor+theme.swift
index 61b5498..874764d 100644
--- a/Map/Presentation/Theme/NSColor+theme.swift
+++ b/Map/Presentation/Theme/NSColor+theme.swift
@@ -15,17 +15,21 @@
import AppKit
extension NSColor {
- struct Syntax {
- static let vertex = NSColor(named: "Vertex") ?? .textColor
- static let number = NSColor(named: "Number") ?? .textColor
- static let option = NSColor(named: "Option") ?? .textColor
- static let symbol = NSColor(named: "Symbol") ?? .textColor
- static let match = (NSColor(named: "Light Neutral Gray") ?? .textColor).withAlphaComponent(0.3)
- static let highlightMatch = (NSColor(named: "Naples Yellow") ?? .textColor).withAlphaComponent(
- 0.3)
- }
+ struct Theme {
+ struct Syntax {
+ static let vertex = NSColor(named: "Vertex") ?? .textColor
+ static let number = NSColor(named: "Number") ?? .textColor
+ static let option = NSColor(named: "Option") ?? .textColor
+ static let symbol = NSColor(named: "Symbol") ?? .textColor
+ static let match = (NSColor(named: "Light Neutral Gray") ?? .textColor).withAlphaComponent(
+ 0.3)
+ static let highlightMatch = (NSColor(named: "Naples Yellow") ?? .textColor)
+ .withAlphaComponent(
+ 0.3)
+ }
- struct UI {
- static let background = NSColor(named: "Background") ?? .windowBackgroundColor
+ struct UI {
+ static let background = NSColor(named: "Background") ?? .windowBackgroundColor
+ }
}
}