Centralize overlay colors in the app palette
This commit is contained in:
@@ -29,6 +29,12 @@ enum Palette {
|
||||
static let task9 = dynamic(0x793c9f, 0xd7a6fc)
|
||||
static let task10 = dynamic(0x942e79, 0xf59cd8)
|
||||
|
||||
static let overlayBackdrop = Color.black.opacity(0.35)
|
||||
static let imageBackdrop = Color.black.opacity(0.6)
|
||||
static let overlayShadow = Color(nsColor: NSColor(name: nil) { appearance in
|
||||
appearance.bestMatch(from: [.aqua, .darkAqua]) == .darkAqua ? NSColor(srgbRed: 0, green: 0, blue: 0, alpha: 0.5) : NSColor(srgbRed: 16 / 255, green: 24 / 255, blue: 40 / 255, alpha: 0.18)
|
||||
})
|
||||
|
||||
private static func rgb(_ hex: UInt32) -> NSColor {
|
||||
NSColor(srgbRed: CGFloat(hex >> 16 & 0xff) / 255, green: CGFloat(hex >> 8 & 0xff) / 255, blue: CGFloat(hex & 0xff) / 255, alpha: 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user