Update "attachment has caption" indicator.

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

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "add-caption-32@1x.png", "filename" : "caption-24@1x.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "add-caption-32@2x.png", "filename" : "caption-24@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "add-caption-32@3x.png", "filename" : "caption-24@3x.png",
"scale" : "3x" "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 // Add shadow in case overlayed on white content
lengthLimitLabel.layer.shadowColor = UIColor.black.cgColor 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.layer.shadowOpacity = 0.8
lengthLimitLabel.isHidden = true lengthLimitLabel.isHidden = true
@ -1694,6 +1694,7 @@ public class ApprovalRailCellView: GalleryRailCellView {
imageView.layer.shadowColor = UIColor.black.cgColor imageView.layer.shadowColor = UIColor.black.cgColor
imageView.layer.shadowRadius = 2 imageView.layer.shadowRadius = 2
imageView.layer.shadowOpacity = 0.66 imageView.layer.shadowOpacity = 0.66
imageView.layer.shadowOffset = .zero
return imageView return imageView
}() }()
@ -1725,8 +1726,8 @@ public class ApprovalRailCellView: GalleryRailCellView {
if hasCaption { if hasCaption {
addSubview(captionIndicator) addSubview(captionIndicator)
captionIndicator.autoPinEdge(toSuperviewEdge: .top, withInset: 0) captionIndicator.autoPinEdge(toSuperviewEdge: .top, withInset: 2)
captionIndicator.autoPinEdge(toSuperviewEdge: .leading, withInset: 4) captionIndicator.autoPinEdge(toSuperviewEdge: .leading, withInset: 6)
} else { } else {
captionIndicator.removeFromSuperview() captionIndicator.removeFromSuperview()
} }

@ -177,7 +177,7 @@ class AttachmentCaptionViewController: OWSViewController {
// Add shadow in case overlayed on white content // Add shadow in case overlayed on white content
lengthLimitLabel.layer.shadowColor = UIColor.black.cgColor 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.layer.shadowOpacity = 0.8
lengthLimitLabel.isHidden = true lengthLimitLabel.isHidden = true

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

Loading…
Cancel
Save