Make text bubbles a bit smaller

pull/261/head
nielsandriesse 4 years ago
parent 1f4104112c
commit 9e465a8872

@ -633,7 +633,7 @@ NS_ASSUME_NONNULL_BEGIN
- (CGFloat)quotedReplyTopMargin
{
return 22.f;
return 16.f;
}
- (nullable LinkPreviewSent *)linkPreviewState

@ -131,7 +131,7 @@ const CGFloat kRemotelySourcedContentRowSpacing = 4;
- (CGFloat)bubbleHMargin
{
return (self.isForPreview ? 0.f : LKValues.largeSpacing);
return (self.isForPreview ? 0.f : 20.f);
}
- (CGFloat)hSpacing
@ -648,7 +648,7 @@ const CGFloat kRemotelySourcedContentRowSpacing = 4;
- (UIFont *)quotedTextFont
{
return [UIFont systemFontOfSize:LKValues.mediumFontSize];
return [UIFont systemFontOfSize:LKValues.smallFontSize];
}
- (UIColor *)fileTypeTextColor

@ -116,7 +116,7 @@ public class ConversationStyle: NSObject {
let messageTextFont = UIFont.systemFont(ofSize: Values.smallFontSize)
let baseFontOffset: CGFloat = 16
let baseFontOffset: CGFloat = 12
// Don't include the distance from the "cap height" to the top of the UILabel
// in the top margin.
@ -126,7 +126,7 @@ public class ConversationStyle: NSObject {
// negative value.
textInsetBottom = max(0, round(baseFontOffset - abs(messageTextFont.descender)))
textInsetHorizontal = 16
textInsetHorizontal = 12
lastTextLineAxis = CGFloat(round(baseFontOffset + messageTextFont.capHeight * 0.5))

Loading…
Cancel
Save