marinofaggiana 4 năm trước cách đây
mục cha
commit
8d54822641
1 tập tin đã thay đổi với 1 bổ sung9 xóa
  1. 1 9
      iOSClient/Main/NCMainTabBar.swift

+ 1 - 9
iOSClient/Main/NCMainTabBar.swift

@@ -48,19 +48,11 @@ class NCMainTabBar: UITabBar {
         changeTheming()
         changeTheming()
     }
     }
     
     
-    override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
-        super.traitCollectionDidChange(previousTraitCollection)
-        
-        changeTheming()
-    }
-    
     @objc func changeTheming() {
     @objc func changeTheming() {
         tintColor = NCBrandColor.shared.brandElement
         tintColor = NCBrandColor.shared.brandElement
         if let centerButton = self.viewWithTag(99) {
         if let centerButton = self.viewWithTag(99) {
             centerButton.backgroundColor = NCBrandColor.shared.brandElement
             centerButton.backgroundColor = NCBrandColor.shared.brandElement
-        }
-        
-        NCBrandColor.shared.createImagesThemingColor()
+        }        
     }
     }
     
     
     override var backgroundColor: UIColor? {
     override var backgroundColor: UIColor? {