Browse Source

clear code

marinofaggiana 4 years ago
parent
commit
b07db80cba
1 changed files with 14 additions and 14 deletions
  1. 14 14
      iOSClient/Brand/NCBrand.swift

+ 14 - 14
iOSClient/Brand/NCBrand.swift

@@ -202,32 +202,32 @@ class NCBrandColor: NSObject {
     @objc public func setDarkMode() {
         let darkMode = CCUtility.getDarkMode()
         if darkMode {
-            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
-            }
+            
+            tabBar = 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: 44.0/255.0, green: 44.0/255.0, blue: 46.0/255.0, alpha: 1.0)                  // Gray (5) 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: 229.0/255.0, green: 229.0/255.0, blue: 234.0/255.0, alpha: 1.0)               // Gray (5) 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)
             select = self.brandElement.withAlphaComponent(0.1)