From 2e2941ce8d7cf7842e8d722f546438cd88861887 Mon Sep 17 00:00:00 2001 From: Joe Fabisevich Date: Sat, 2 Nov 2024 18:21:47 -0400 Subject: [PATCH] Adding support for primary, accent, and secondary system colors --- Sources/Recap/Internal/Color+SystemNames.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Recap/Internal/Color+SystemNames.swift b/Sources/Recap/Internal/Color+SystemNames.swift index 4bba146..6d7425b 100644 --- a/Sources/Recap/Internal/Color+SystemNames.swift +++ b/Sources/Recap/Internal/Color+SystemNames.swift @@ -7,6 +7,7 @@ extension Color { .lowercased() switch sanitizedColorName { + case "accent": self = .accentColor case "black": self = .black case "blue": self = .blue case "brown": self = .brown @@ -17,7 +18,9 @@ extension Color { case "mint": self = .mint case "orange": self = .orange case "pink": self = .pink + case "primary": self = .primary case "purple": self = .purple + case "secondary": self = .secondary case "red": self = .red case "teal": self = .teal case "white": self = .white -- 2.51.2