2022-01-10 00:23:22 +00:00
|
|
|
//
|
|
|
|
// UIColor+App.swift
|
|
|
|
// Reader
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 1/9/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
extension UIColor {
|
|
|
|
|
|
|
|
static let appBackground = UIColor { traitCollection in
|
|
|
|
switch traitCollection.userInterfaceStyle {
|
|
|
|
case .dark:
|
2022-01-10 04:38:44 +00:00
|
|
|
return UIColor(red: 25/255, green: 25/255, blue: 25/255, alpha: 1)
|
2022-01-10 00:23:22 +00:00
|
|
|
case .unspecified, .light:
|
|
|
|
fallthrough
|
|
|
|
@unknown default:
|
|
|
|
return .white
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 16:36:12 +00:00
|
|
|
static let appSecondaryBackground = UIColor { traitCollection in
|
|
|
|
switch traitCollection.userInterfaceStyle {
|
|
|
|
case .dark:
|
|
|
|
return UIColor(white: 0.2, alpha: 1)
|
|
|
|
case .unspecified, .light:
|
|
|
|
fallthrough
|
|
|
|
@unknown default:
|
|
|
|
return UIColor(white: 0.8, alpha: 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-11 03:36:54 +00:00
|
|
|
static let appCellHighlightBackground = UIColor { traitCollection in
|
|
|
|
switch traitCollection.userInterfaceStyle {
|
|
|
|
case .dark:
|
|
|
|
return UIColor(white: 0.15, alpha: 1)
|
|
|
|
case .unspecified, .light:
|
|
|
|
fallthrough
|
|
|
|
@unknown default:
|
|
|
|
return UIColor(white: 0.9, alpha: 1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-10 00:23:22 +00:00
|
|
|
static let appContentPreviewLabel = UIColor { traitCollection in
|
|
|
|
switch traitCollection.userInterfaceStyle {
|
|
|
|
case .dark:
|
|
|
|
return .lightGray
|
|
|
|
case .unspecified, .light:
|
|
|
|
fallthrough
|
|
|
|
@unknown default:
|
|
|
|
return .darkGray
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 15:55:50 +00:00
|
|
|
static let appTintColor = UIColor.systemRed
|
|
|
|
|
2022-01-10 00:23:22 +00:00
|
|
|
}
|