Browse Source

fix dark mode

marinofaggiana 5 năm trước cách đây
mục cha
commit
6201728442
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      iOSClient/ScanDocument/ScanCollectionView.swift

+ 3 - 2
iOSClient/ScanDocument/ScanCollectionView.swift

@@ -65,13 +65,11 @@ class DragDropViewController: UIViewController {
         collectionViewSource.dragInteractionEnabled = true
         collectionViewSource.dragDelegate = self
         collectionViewSource.dropDelegate = self
-        collectionViewSource.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         collectionViewDestination.dragInteractionEnabled = true
         collectionViewDestination.dropDelegate = self
         collectionViewDestination.dragDelegate = self
         collectionViewDestination.reorderingCadence = .fast //default value - .immediate
-        collectionViewDestination.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         self.navigationItem.title = NSLocalizedString("_scanned_images_", comment: "")
         cancel.title = NSLocalizedString("_cancel_", comment: "")
@@ -113,6 +111,9 @@ class DragDropViewController: UIViewController {
     
     @objc func changeTheming() {
         appDelegate.changeTheming(self, tableView: nil, collectionView: nil)
+        
+        collectionViewSource.backgroundColor = NCBrandColor.sharedInstance.backgroundView
+        collectionViewDestination.backgroundColor = NCBrandColor.sharedInstance.backgroundView
     }
     
     //MARK: Button Action