marinofaggiana il y a 4 ans
Parent
commit
8204b6f9de
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      iOSClient/Main/NCMainTabBar.swift

+ 1 - 3
iOSClient/Main/NCMainTabBar.swift

@@ -49,17 +49,15 @@ class NCMainTabBar: UITabBar {
         super.traitCollectionDidChange(previousTraitCollection)
         
         if #available(iOS 13.0, *) {
-            
             if traitCollection.userInterfaceStyle == .dark {
                 appDelegate.darkMode = true
             } else {
                 appDelegate.darkMode = false
             }
-            
-            NCBrandColor.shared.settingThemingColor(account: appDelegate.account, darkMode: appDelegate.darkMode)
         } else {
             appDelegate.darkMode = false
         }
+        NCBrandColor.shared.settingThemingColor(account: appDelegate.account, darkMode: appDelegate.darkMode)
     }
     
     @objc func changeTheming() {