mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
18 lines
698 B
Swift
18 lines
698 B
Swift
|
import SwiftUI
|
||
|
|
||
|
extension Color {
|
||
|
#if os(macOS)
|
||
|
static let background = Color(NSColor.windowBackgroundColor)
|
||
|
static let secondaryBackground = Color(NSColor.underPageBackgroundColor)
|
||
|
static let tertiaryBackground = Color(NSColor.controlBackgroundColor)
|
||
|
#elseif os(iOS)
|
||
|
static let background = Color(UIColor.systemBackground)
|
||
|
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
|
||
|
#endif
|
||
|
}
|