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