marinofaggiana 3 years ago
parent
commit
9ac202f385

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

@@ -110,7 +110,7 @@ class NCAccountRequest: UIViewController {
     
     // MARK: - Colors
     
-    func changeTheming() {
+    @objc func changeTheming() {
         
         view.backgroundColor = NCBrandColor.shared.secondarySystemBackground
         tableView.backgroundColor = NCBrandColor.shared.secondarySystemBackground

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -97,7 +97,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC
     
     // MARK: - Theming
     
-    func changeTheming() {
+    @objc func changeTheming() {
         
         view.backgroundColor = NCBrandColor.shared.systemGroupedBackground
         tableView.backgroundColor = NCBrandColor.shared.systemGroupedBackground

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadVoiceNote.swift

@@ -88,7 +88,7 @@ class NCCreateFormUploadVoiceNote: XLFormViewController, NCSelectDelegate, AVAud
     
     // MARK: - Theming
     
-    func changeTheming() {
+    @objc func changeTheming() {
         
         view.backgroundColor = NCBrandColor.shared.systemGroupedBackground
         tableView.backgroundColor = NCBrandColor.shared.systemGroupedBackground

+ 3 - 1
iOSClient/Main/NCMainNavigationController.swift

@@ -32,6 +32,8 @@ class NCMainNavigationController: UINavigationController {
     required init?(coder: NSCoder) {
         super.init(coder: coder)
         
+        NotificationCenter.default.addObserver(self, selector: #selector(changeTheming), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterChangeTheming), object: nil)
+        
         changeTheming()
     }
     
@@ -47,7 +49,7 @@ class NCMainNavigationController: UINavigationController {
     
     // MARK: - Theming
     
-    func changeTheming() {
+    @objc func changeTheming() {
         
         if #available(iOS 13.0, *) {