mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 05:49:25 -04:00
use SystemColors
This commit is contained in:
parent
90055a6e2f
commit
13ce6f0929
@ -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()}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user