parent
d070693b72
commit
92de745528
|
@ -35,7 +35,7 @@ public struct MediaGalleryItem: Equatable, Hashable {
|
|||
|
||||
var thumbnailImage: UIImage {
|
||||
guard let image = attachmentStream.thumbnailImage() else {
|
||||
owsFail("\(logTag) in \(#function) unexpectedly unable to build attachment thumbnail")
|
||||
// owsFail("\(logTag) in \(#function) unexpectedly unable to build attachment thumbnail")
|
||||
return UIImage()
|
||||
}
|
||||
|
||||
|
|
|
@ -770,14 +770,17 @@ private class MediaGallerySectionHeader: UICollectionReusableView {
|
|||
|
||||
override init(frame: CGRect) {
|
||||
label = UILabel()
|
||||
label.textColor = Theme.primaryColor
|
||||
|
||||
let blurEffect = UIBlurEffect(style: .extraLight)
|
||||
let blurEffect = Theme.barBlurEffect
|
||||
let blurEffectView = UIVisualEffectView(effect: blurEffect)
|
||||
|
||||
blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||
|
||||
super.init(frame: frame)
|
||||
|
||||
self.backgroundColor = Theme.navbarBackgroundColor.withAlphaComponent(OWSNavigationBar.backgroundBlurMutingFactor)
|
||||
|
||||
self.addSubview(blurEffectView)
|
||||
self.addSubview(label)
|
||||
|
||||
|
@ -814,6 +817,7 @@ private class MediaGalleryStaticHeader: UICollectionViewCell {
|
|||
|
||||
addSubview(label)
|
||||
|
||||
label.textColor = Theme.primaryColor
|
||||
label.textAlignment = .center
|
||||
label.numberOfLines = 0
|
||||
label.autoPinEdgesToSuperviewMargins()
|
||||
|
|
Loading…
Reference in New Issue