|
@@ -202,22 +202,31 @@ class NCBrandColor: NSObject {
|
|
|
@objc public func setDarkMode() {
|
|
|
let darkMode = CCUtility.getDarkMode()
|
|
|
if darkMode {
|
|
|
- tabBar = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
+ if #available(iOS 13.0, *) {
|
|
|
+ tabBar = .systemGray6
|
|
|
+ backgroundForm = .systemGray6
|
|
|
+ cellSettings = .systemGray6
|
|
|
+ } else {
|
|
|
+ tabBar = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
+ backgroundForm = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
+ cellSettings = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
+ }
|
|
|
navigationBar = .black
|
|
|
backgroundView = .black
|
|
|
- backgroundForm = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
- cellSettings = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0) // Gray (6) Dark
|
|
|
backgroundSettings = .black
|
|
|
textView = .white
|
|
|
separator = UIColor(red: 60.0/255.0, green: 60.0/255.0, blue: 60.0/255.0, alpha: 1.0)
|
|
|
select = UIColor.white.withAlphaComponent(0.2)
|
|
|
avatarBorder = .black
|
|
|
} else {
|
|
|
+ if #available(iOS 13.0, *) {
|
|
|
+ backgroundSettings = .systemGray6
|
|
|
+ } else {
|
|
|
+ backgroundSettings = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 247.0/255.0, alpha: 1.0) // Gray (6) Light
|
|
|
+ }
|
|
|
tabBar = .white
|
|
|
navigationBar = .white
|
|
|
backgroundView = .white
|
|
|
- backgroundForm = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 247.0/255.0, alpha: 1.0) // Gray (6) Light
|
|
|
- backgroundSettings = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 247.0/255.0, alpha: 1.0) // Gray (6) Light
|
|
|
cellSettings = .white
|
|
|
textView = .black
|
|
|
separator = UIColor(red: 235.0/255.0, green: 235.0/255.0, blue: 235.0/255.0, alpha: 1.0)
|