use SystemColors

This commit is contained in:
Valentin Vila 2024-03-21 12:52:41 -03:00 committed by Balazs Perlaki-Horvath
parent 90055a6e2f
commit 13ce6f0929
2 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,7 @@ struct RootView: View {
HStack { HStack {
Image(systemName: "heart").foregroundColor(.blue) Image(systemName: "heart").foregroundColor(.blue)
Text("enum.navigation_item.donations".localized) Text("enum.navigation_item.donations".localized)
.foregroundColor(.white) .foregroundColor(.foregroundColor(.systemTextColor))
} }
.padding()} .padding()}
} }

View File

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