marinofaggiana 4 жил өмнө
parent
commit
6ec8824b73

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -277,7 +277,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         NCPushNotification.shared().pushNotification()
         
         // Setting Theming
-        NCBrandColor.shared.settingThemingColor(account: account, darkMode: darkMode)
+        NCBrandColor.shared.settingThemingColor(account: account)
         
         // Start Auto Upload
         NCAutoUpload.shared.initAutoUpload(viewController: nil) { (_) in }

+ 1 - 1
iOSClient/Brand/NCBrand.swift

@@ -235,7 +235,7 @@ class NCBrandColor: NSObject {
     }
     
 #if !EXTENSION
-    public func settingThemingColor(account: String, darkMode: Bool) {
+    public func settingThemingColor(account: String) {
         
         let darker: CGFloat = 30    // %
         let lighter: CGFloat = 30   // %

+ 3 - 3
iOSClient/Networking/NCService.swift

@@ -146,7 +146,7 @@ class NCService: NSObject {
                     NCCommunicationCommon.shared.setup(dav: NCUtilityFileSystem.shared.getDAV())
                     
                     // Theming
-                    NCBrandColor.shared.settingThemingColor(account: account, darkMode: self.appDelegate.darkMode)
+                    NCBrandColor.shared.settingThemingColor(account: account)
                 
                     // File Sharing
                     let isFilesSharingEnabled = NCManageDatabase.shared.getCapabilitiesServerBool(account: account, elements: NCElementsJSON.shared.capabilitiesFileSharingApiEnabled, exists: false)
@@ -232,14 +232,14 @@ class NCService: NSObject {
                 
             } else if errorCode != 0 {
                 
-                NCBrandColor.shared.settingThemingColor(account: account, darkMode: self.appDelegate.darkMode)
+                NCBrandColor.shared.settingThemingColor(account: account)
                 
                 if errorCode == 401 || errorCode == 403 {
                     NCNetworkingCheckRemoteUser.shared.checkRemoteUser(account: account)
                 }
                 
             } else {
-                NCBrandColor.shared.settingThemingColor(account: account, darkMode: self.appDelegate.darkMode)
+                NCBrandColor.shared.settingThemingColor(account: account)
             }
         }
     }