mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Set full screen views background color based on color scheme on tvOS (fixes #30)
This commit is contained in:
@@ -10,8 +10,8 @@ extension Color {
|
||||
static let secondaryBackground = Color(UIColor.secondarySystemBackground)
|
||||
static let tertiaryBackground = Color(UIColor.tertiarySystemBackground)
|
||||
#else
|
||||
static let background = Color.black
|
||||
static let secondaryBackground = Color.black
|
||||
static let tertiaryBackground = Color.black
|
||||
static func background(scheme: ColorScheme) -> Color {
|
||||
scheme == .dark ? .black : .init(white: 0.8)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user