diff --git a/App/App_macOS.swift b/App/App_macOS.swift index d9d598b3..933eba06 100644 --- a/App/App_macOS.swift +++ b/App/App_macOS.swift @@ -107,7 +107,7 @@ struct RootView: View { HStack { Image(systemName: "heart").foregroundColor(.blue) Text("enum.navigation_item.donations".localized) - .foregroundColor(.white) + .foregroundColor(.foregroundColor(.systemTextColor)) } .padding()} } diff --git a/SwiftUI/Patches.swift b/SwiftUI/Patches.swift index e12ef454..a7e12295 100644 --- a/SwiftUI/Patches.swift +++ b/SwiftUI/Patches.swift @@ -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 }