ソースを参照

gallery+cell background color set

nayooti 5 年 前
コミット
25d0cd5ae0

+ 1 - 1
deltachat-ios/Controller/GalleryViewController.swift

@@ -23,7 +23,7 @@ class GalleryViewController: UIViewController {
         collection.delegate = self
         collection.register(GalleryCell.self, forCellWithReuseIdentifier: GalleryCell.reuseIdentifier)
         collection.contentInset = UIEdgeInsets(top: gridDefaultSpacing, left: gridDefaultSpacing, bottom: gridDefaultSpacing, right: gridDefaultSpacing)
-        collection.backgroundColor = .white
+        collection.backgroundColor = DcColors.defaultBackgroundColor
         collection.delaysContentTouches = false
         collection.alwaysBounceVertical = true
         return collection

+ 1 - 0
deltachat-ios/View/Cell/GalleryCell.swift

@@ -9,6 +9,7 @@ class GalleryCell: UICollectionViewCell {
         let view = UIImageView()
         view.contentMode = .scaleAspectFill
         view.clipsToBounds = true
+        view.backgroundColor = DcColors.defaultBackgroundColor
         return view
     }()