marinofaggiana 4 سال پیش
والد
کامیت
6d6237d8f6

+ 1 - 1
iOSClient/Brand/NCBrand.swift

@@ -141,7 +141,7 @@ class NCBrandColor: NSObject {
             tabBar = UIColor(red: 25.0/255.0, green: 25.0/255.0, blue: 25.0/255.0, alpha: 1.0)
             backgroundView = .black
             backgroundCell = UIColor(red: 25.0/255.0, green: 25.0/255.0, blue: 25.0/255.0, alpha: 1.0)
-            backgroundForm = UIColor(red: 30.0/255.0, green: 30.0/255.0, blue: 30.0/255.0, alpha: 1.0)
+            backgroundForm = UIColor(red: 20.0/255.0, green: 20.0/255.0, blue: 20.0/255.0, alpha: 1.0)
             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)

+ 2 - 0
iOSClient/Main/Account Request/NCAccountRequest.swift

@@ -70,6 +70,8 @@ class NCAccountRequest: UIViewController {
         timer?.invalidate()
     }
     
+    // MARK: - NotificationCenter
+
     @objc func changeTheming() {
         view.backgroundColor = NCBrandColor.shared.backgroundForm
         tableView.backgroundColor = NCBrandColor.shared.backgroundForm

+ 10 - 0
iOSClient/Rename file/NCRenameFile.swift

@@ -102,6 +102,10 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
         renameButton.layer.cornerRadius = 15
         renameButton.layer.masksToBounds = true
         renameButton.layer.backgroundColor = NCBrandColor.shared.brand.cgColor
+        
+        NotificationCenter.default.addObserver(self, selector: #selector(changeTheming), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterChangeTheming), object: nil)
+        
+        changeTheming()
     }
     
     override func viewWillAppear(_ animated: Bool) {
@@ -126,6 +130,12 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
         return true
     }
     
+    // MARK: - NotificationCenter
+
+    @objc func changeTheming() {
+        view.backgroundColor = NCBrandColor.shared.backgroundForm
+    }
+    
     // MARK: - Action
     
     @IBAction func cancel(_ sender: Any) {