Apply design changes from Myles.

This commit is contained in:
Matthew Chen 2018-04-16 11:51:07 -04:00
parent 6a69070ce9
commit bb9c1fb23d
3 changed files with 6 additions and 4 deletions

View file

@ -13,7 +13,8 @@ extern const CGFloat kBubbleHRounding;
extern const CGFloat kBubbleThornSideInset;
extern const CGFloat kBubbleThornVInset;
extern const CGFloat kBubbleTextHInset;
extern const CGFloat kBubbleTextVInset;
extern const CGFloat kBubbleTextTopInset;
extern const CGFloat kBubbleTextBottomInset;
@class OWSBubbleView;

View file

@ -14,7 +14,8 @@ const CGFloat kBubbleHRounding = kOWSMessageCellCornerRadius;
const CGFloat kBubbleThornSideInset = 5.f;
const CGFloat kBubbleThornVInset = 0;
const CGFloat kBubbleTextHInset = 10.f;
const CGFloat kBubbleTextVInset = 10.f;
const CGFloat kBubbleTextTopInset = 8.f;
const CGFloat kBubbleTextBottomInset = 6.f;
@interface OWSBubbleView ()

View file

@ -1003,12 +1003,12 @@ NS_ASSUME_NONNULL_BEGIN
- (CGFloat)textTopMargin
{
return kBubbleTextVInset;
return kBubbleTextTopInset;
}
- (CGFloat)textBottomMargin
{
return kBubbleTextVInset + kBubbleThornVInset;
return kBubbleTextBottomInset + kBubbleThornVInset;
}
- (UIColor *)bodyTextColor