Quellcode durchsuchen

layout media bit change

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana vor 2 Jahren
Ursprung
Commit
1710efc750
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 3 3
      iOSClient/Media/Cell/NCGridMediaCell.swift
  2. 1 1
      iOSClient/Media/NCMedia.swift

+ 3 - 3
iOSClient/Media/Cell/NCGridMediaCell.swift

@@ -59,12 +59,12 @@ class NCGridMediaCell: UICollectionViewCell, NCCellProtocol {
     }
 
     func initCell() {
-        imageItem.backgroundColor = UIColor.lightGray
+        imageItem.backgroundColor = .secondarySystemBackground
         imageStatus.image = nil
         imageItem.image = nil
         imageItem.layer.masksToBounds = true
-        imageItem.layer.cornerRadius = 6
-        imageVisualEffect.layer.cornerRadius = 6
+        imageItem.layer.cornerRadius = 3
+        imageVisualEffect.layer.cornerRadius = 3
         imageVisualEffect.clipsToBounds = true
     }
 

+ 1 - 1
iOSClient/Media/NCMedia.swift

@@ -781,7 +781,7 @@ class NCMediaCommandView: UIView {
 
 class NCGridMediaLayout: UICollectionViewFlowLayout {
 
-    var marginLeftRight: CGFloat = 6
+    var marginLeftRight: CGFloat = 2
     var itemForLine: CGFloat = 3
 
     override init() {