use SystemColors

This commit is contained in:
Valentin Vila 2024-03-21 12:52:41 -03:00 committed by Balazs Perlaki-Horvath
parent 70f122b4fb
commit 6d30cf71d9

View File

@ -53,10 +53,12 @@ extension Color {
static let background = Color(NSColor.windowBackgroundColor)
static let secondaryBackground = Color(NSColor.underPageBackgroundColor)
static let tertiaryBackground = Color(NSColor.controlBackgroundColor)
static let systemTextColor = Color(NSColor.textColor)
#elseif os(iOS)
static let background = Color(UIColor.systemBackground)
static let secondaryBackground = Color(UIColor.secondarySystemBackground)
static let tertiaryBackground = Color(UIColor.tertiarySystemBackground)
static let systemTextColor = Color(NSColor.textColor)
#endif
}