marinofaggiana 4 年之前
父節點
當前提交
8204b6f9de
共有 1 個文件被更改,包括 1 次插入3 次删除
  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() {