marinofaggiana 4 years ago
parent
commit
fe19edf7f2

+ 3 - 3
iOSClient/Account Request/NCAccountRequest.swift

@@ -85,8 +85,8 @@ class NCAccountRequest: UIViewController {
 
     @objc func changeTheming() {
         
-        view.backgroundColor = NCBrandColor.shared.backgroundView
-        tableView.backgroundColor = NCBrandColor.shared.backgroundView
+        view.backgroundColor = NCBrandColor.shared.backgroundViewForm
+        tableView.backgroundColor = NCBrandColor.shared.backgroundViewForm
         tableView.reloadData()
     }
     
@@ -185,7 +185,7 @@ extension NCAccountRequest: UITableViewDataSource {
     func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
                
         let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
-        cell.backgroundColor = NCBrandColor.shared.backgroundView
+        cell.backgroundColor = NCBrandColor.shared.backgroundViewForm
        
         let avatarImage = cell.viewWithTag(10) as? UIImageView
         let userLabel = cell.viewWithTag(20) as? UILabel

+ 3 - 0
iOSClient/Brand/NCBrand.swift

@@ -145,6 +145,7 @@ class NCBrandColor: NSObject {
     @objc public var connectionNo:          UIColor = UIColor(red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 1.0)
     @objc public var encrypted:             UIColor = .red
     @objc public var backgroundView:        UIColor = .white
+    @objc public var backgroundViewForm:    UIColor = .white
     @objc public var backgroundSettings:    UIColor = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 247.0/255.0, alpha: 1.0)  // Gray (6) Light
     @objc public var cellSettings:          UIColor = .white
     @objc public var textView:              UIColor = .black
@@ -205,6 +206,7 @@ class NCBrandColor: NSObject {
             navigationBar = .black
             
             backgroundView = .black
+            backgroundViewForm = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0)
             textView = .white
 
             cellSettings = UIColor(red: 28.0/255.0, green: 28.0/255.0, blue: 30.0/255.0, alpha: 1.0)                    // Gray (6) Dark
@@ -220,6 +222,7 @@ class NCBrandColor: NSObject {
             navigationBar = .white
             
             backgroundView = .white
+            backgroundViewForm = .white
             textView = .black
 
             backgroundSettings = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 247.0/255.0, alpha: 1.0)           // Gray (6) Light

+ 1 - 1
iOSClient/Rename file/NCRenameFile.swift

@@ -133,7 +133,7 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
     // MARK: - NotificationCenter
 
     @objc func changeTheming() {
-        view.backgroundColor = NCBrandColor.shared.backgroundView
+        view.backgroundColor = NCBrandColor.shared.backgroundViewForm
     }
     
     // MARK: - Action