marinofaggiana 3 년 전
부모
커밋
4056269a8e
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      iOSClient/Main/Collection Common/NCGridCell.swift

+ 9 - 1
iOSClient/Main/Collection Common/NCGridCell.swift

@@ -131,9 +131,17 @@ class NCGridCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
     
     func selected(_ status: Bool) {
         if status {
+            if traitCollection.userInterfaceStyle == .dark {
+                imageVisualEffect.effect = UIBlurEffect(style: .dark)
+                imageVisualEffect.backgroundColor = .black
+                imageVisualEffect.alpha = 0.4
+            } else {
+                imageVisualEffect.effect = UIBlurEffect(style: .extraLight)
+                imageVisualEffect.backgroundColor = .lightGray
+                imageVisualEffect.alpha = 0.4
+            }
             imageSelect.image = NCBrandColor.cacheImages.checkedYes
             imageVisualEffect.isHidden = false
-            imageVisualEffect.alpha = 0.4
         } else {
             imageSelect.isHidden = true
             imageVisualEffect.isHidden = true