Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent d081df9ded
commit 8a8b10b688

@ -65,7 +65,7 @@ NS_ASSUME_NONNULL_BEGIN
= ScaleFromIPhone5To7Plus(40, 50); = ScaleFromIPhone5To7Plus(40, 50);
const CGFloat imageLabelSpacing = ScaleFromIPhone5To7Plus(5, 8); const CGFloat imageLabelSpacing = ScaleFromIPhone5To7Plus(5, 8);
const CGFloat titleVSpacing = ScaleFromIPhone5To7Plus(10, 15); const CGFloat titleVSpacing = ScaleFromIPhone5To7Plus(10, 15);
const CGFloat contentVMargin = ScaleFromIPhone5To7Plus(20, 20); const CGFloat contentVMargin = 20;
UIView *header = [UIView new]; UIView *header = [UIView new];
header.backgroundColor = [UIColor whiteColor]; header.backgroundColor = [UIColor whiteColor];
@ -139,7 +139,6 @@ NS_ASSUME_NONNULL_BEGIN
label.text = [self formattedFileName]; label.text = [self formattedFileName];
label.textColor = [UIColor ows_materialBlueColor]; label.textColor = [UIColor ows_materialBlueColor];
label.font = [UIFont ows_regularFontWithSize:ScaleFromIPhone5To7Plus(16.f, 20.f)]; label.font = [UIFont ows_regularFontWithSize:ScaleFromIPhone5To7Plus(16.f, 20.f)];
label.lineBreakMode = NSLineBreakByTruncatingMiddle;
return label; return label;
} }

@ -2,6 +2,8 @@
// Copyright (c) 2017 Open Whisper Systems. All rights reserved. // Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// //
NS_ASSUME_NONNULL_BEGIN
@protocol ThreadViewHelperDelegate <NSObject> @protocol ThreadViewHelperDelegate <NSObject>
- (void)threadListDidChange; - (void)threadListDidChange;
@ -24,3 +26,5 @@
@property (nonatomic, readonly) NSMutableArray<TSThread *> *threads; @property (nonatomic, readonly) NSMutableArray<TSThread *> *threads;
@end @end
NS_ASSUME_NONNULL_END

@ -10,6 +10,8 @@
#import <YapDatabase/YapDatabaseViewChange.h> #import <YapDatabase/YapDatabaseViewChange.h>
#import <YapDatabase/YapDatabaseViewConnection.h> #import <YapDatabase/YapDatabaseViewConnection.h>
NS_ASSUME_NONNULL_BEGIN
@interface ThreadViewHelper () @interface ThreadViewHelper ()
@property (nonatomic) YapDatabaseConnection *uiDatabaseConnection; @property (nonatomic) YapDatabaseConnection *uiDatabaseConnection;
@ -134,3 +136,5 @@
} }
@end @end
NS_ASSUME_NONNULL_END

@ -53,10 +53,10 @@ NSString *const kContactsTable_CellReuseIdentifier = @"kContactsTable_CellReuseI
const CGFloat kAvatarSize = 40.f; const CGFloat kAvatarSize = 40.f;
_avatarView = [UIImageView new]; _avatarView = [UIImageView new];
_avatarView.image = [UIImage imageNamed:@"empty-group-avatar"]; _avatarView.image = [UIImage imageNamed:@"empty-group-avatar"];
_avatarView.contentMode = UIViewContentModeScaleToFill;
// applyRoundedBorderToImageView requires the avatar to have // applyRoundedBorderToImageView requires the avatar to have
// the correct size. // the correct size.
_avatarView.frame = CGRectMake(0, 0, kAvatarSize, kAvatarSize); _avatarView.frame = CGRectMake(0, 0, kAvatarSize, kAvatarSize);
_avatarView.contentMode = UIViewContentModeScaleToFill;
_avatarView.layer.minificationFilter = kCAFilterTrilinear; _avatarView.layer.minificationFilter = kCAFilterTrilinear;
_avatarView.layer.magnificationFilter = kCAFilterTrilinear; _avatarView.layer.magnificationFilter = kCAFilterTrilinear;
[self.contentView addSubview:_avatarView]; [self.contentView addSubview:_avatarView];

Loading…
Cancel
Save