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

+ 8 - 2
iOSClient/Main/Collection/NCCollectionCommon.swift

@@ -50,6 +50,9 @@ class NCCollectionCommon: NSObject {
         static var cellFolderAutomaticUploadImage = UIImage()
         static var cellFolderImage = UIImage()
         
+        static var cellCheckedYes = UIImage()
+        static var cellCheckedNo = UIImage()
+
         static var cellPlayImage = UIImage()
     }
     
@@ -72,6 +75,9 @@ class NCCollectionCommon: NSObject {
         NCCollectionCommonImages.cellFolderAutomaticUploadImage = CCGraphics.changeThemingColorImage(UIImage.init(named: "folderAutomaticUpload"), width: 600, height: 600, color: NCBrandColor.sharedInstance.brandElement)
         NCCollectionCommonImages.cellFolderImage = CCGraphics.changeThemingColorImage(UIImage.init(named: "folder"), width: 600, height: 600, color: NCBrandColor.sharedInstance.brandElement)
         
+        NCCollectionCommonImages.cellCheckedYes = CCGraphics.changeThemingColorImage(UIImage.init(named: "checkedYes"), width: 100, height: 100, color: NCBrandColor.sharedInstance.brandElement)
+        NCCollectionCommonImages.cellCheckedNo = CCGraphics.changeThemingColorImage(UIImage.init(named: "checkedNo"), width: 100, height: 100, color: NCBrandColor.sharedInstance.brandElement)
+        
         NCCollectionCommonImages.cellPlayImage = CCGraphics.changeThemingColorImage(UIImage.init(named: "play"), width: 100, height: 100, color: .white)
     }
     
@@ -222,10 +228,10 @@ class NCCollectionCommon: NSObject {
                 cell.imageSelect.isHidden = false
                 
                 if selectocId.contains(metadata.ocId) {
-                    cell.imageSelect.image = CCGraphics.scale(UIImage.init(named: "checkedYes"), to: CGSize(width: 50, height: 50), isAspectRation: true)
+                    cell.imageSelect.image = NCCollectionCommonImages.cellCheckedYes
                     cell.backgroundView = NCUtility.shared.cellBlurEffect(with: cell.bounds)
                 } else {
-                    cell.imageSelect.image = CCGraphics.scale(UIImage.init(named: "checkedNo"), to: CGSize(width: 50, height: 50), isAspectRation: true)
+                    cell.imageSelect.image = NCCollectionCommonImages.cellCheckedNo
                     cell.backgroundView = nil
                 }
             } else {