marinofaggiana 4 年之前
父节点
当前提交
7f0b1e08f5
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 2
      iOSClient/Main/Cell/NCListCell.swift
  2. 1 0
      iOSClient/Main/Collection/NCCollectionCommon.swift

+ 0 - 2
iOSClient/Main/Cell/NCListCell.swift

@@ -70,8 +70,6 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCImageCell
         progressView.transform = CGAffineTransform(scaleX: 1.0, y: 0.5)
         progressView.trackTintColor = .clear
 
-        separator.backgroundColor = NCBrandColor.sharedInstance.separator
-        
         let longPressedGesture = UILongPressGestureRecognizer(target: self, action: #selector(longPress(gestureRecognizer:)))
         longPressedGesture.minimumPressDuration = 0.5
         longPressedGesture.delegate = self

+ 1 - 0
iOSClient/Main/Collection/NCCollectionCommon.swift

@@ -120,6 +120,7 @@ class NCCollectionCommon: NSObject {
             cell.indexPath = indexPath
             cell.labelTitle.text = metadata.fileNameView
             cell.labelTitle.textColor = NCBrandColor.sharedInstance.textView
+            cell.separator.backgroundColor = NCBrandColor.sharedInstance.separator
             
             cell.imageSelect.image = nil
             cell.imageStatus.image = nil