Update "attachment has caption" indicator.

pull/2/head
Matthew Chen 5 years ago
parent dd16986d79
commit 7521b3a145

@ -2,17 +2,17 @@
"images" : [
{
"idiom" : "universal",
"filename" : "add-caption-32@1x.png",
"filename" : "caption-24@1x.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "add-caption-32@2x.png",
"filename" : "caption-24@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "add-caption-32@3x.png",
"filename" : "caption-24@3x.png",
"scale" : "3x"
}
],

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

@ -1460,7 +1460,7 @@ class MediaMessageTextToolbar: UIView, UITextViewDelegate {
// Add shadow in case overlayed on white content
lengthLimitLabel.layer.shadowColor = UIColor.black.cgColor
lengthLimitLabel.layer.shadowOffset = CGSize(width: 0.0, height: 0.0)
lengthLimitLabel.layer.shadowOffset = .zero
lengthLimitLabel.layer.shadowOpacity = 0.8
lengthLimitLabel.isHidden = true
@ -1694,6 +1694,7 @@ public class ApprovalRailCellView: GalleryRailCellView {
imageView.layer.shadowColor = UIColor.black.cgColor
imageView.layer.shadowRadius = 2
imageView.layer.shadowOpacity = 0.66
imageView.layer.shadowOffset = .zero
return imageView
}()
@ -1725,8 +1726,8 @@ public class ApprovalRailCellView: GalleryRailCellView {
if hasCaption {
addSubview(captionIndicator)
captionIndicator.autoPinEdge(toSuperviewEdge: .top, withInset: 0)
captionIndicator.autoPinEdge(toSuperviewEdge: .leading, withInset: 4)
captionIndicator.autoPinEdge(toSuperviewEdge: .top, withInset: 2)
captionIndicator.autoPinEdge(toSuperviewEdge: .leading, withInset: 6)
} else {
captionIndicator.removeFromSuperview()
}

@ -177,7 +177,7 @@ class AttachmentCaptionViewController: OWSViewController {
// Add shadow in case overlayed on white content
lengthLimitLabel.layer.shadowColor = UIColor.black.cgColor
lengthLimitLabel.layer.shadowOffset = CGSize(width: 0.0, height: 0.0)
lengthLimitLabel.layer.shadowOffset = .zero
lengthLimitLabel.layer.shadowOpacity = 0.8
lengthLimitLabel.isHidden = true

@ -103,8 +103,9 @@ public class ImageEditorPaletteView: UIView {
imageView.layer.borderColor = UIColor.white.cgColor
imageView.layer.borderWidth = CGHairlineWidth()
imageView.layer.shadowColor = UIColor.black.cgColor
imageView.layer.shadowOpacity = 2.0
imageView.layer.shadowRadius = 2.0
imageView.layer.shadowOpacity = 0.33
imageView.layer.shadowOffset = .zero
selectionWrapper.layoutCallback = { [weak self] (view) in
guard let strongSelf = self else {
return

Loading…
Cancel
Save