CR: inline per code review

This commit is contained in:
Michael Kirk 2018-07-10 11:33:24 -06:00
parent 834021fe39
commit 998c2f392c
3 changed files with 2 additions and 7 deletions

View file

@ -66,7 +66,8 @@ NS_ASSUME_NONNULL_BEGIN
_viewConstraints = [NSMutableArray new];
UIView *selectedBackgroundView = [UIView new];
selectedBackgroundView.backgroundColor = UIColor.ows_tableCellSelectedBackgroundColor;
selectedBackgroundView.backgroundColor = [[UIColor colorWithRGBHex:0x000000] colorWithAlphaComponent:0.08];
self.selectedBackgroundView = selectedBackgroundView;
self.avatarView = [[AvatarImageView alloc] init];

View file

@ -31,7 +31,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (class, readonly, nonatomic) UIColor *ows_infoMessageBorderColor;
@property (class, readonly, nonatomic) UIColor *ows_toolbarBackgroundColor;
@property (class, readonly, nonatomic) UIColor *ows_messageBubbleLightGrayColor;
@property (class, readonly, nonatomic) UIColor *ows_tableCellSelectedBackgroundColor;
+ (UIColor *)colorWithRGBHex:(unsigned long)value;

View file

@ -117,11 +117,6 @@ NS_ASSUME_NONNULL_BEGIN
return [UIColor colorWithHue:240.0f / 360.0f saturation:0.02f brightness:0.92f alpha:1.0f];
}
+ (UIColor *)ows_tableCellSelectedBackgroundColor
{
return [[UIColor colorWithRGBHex:0x000000] colorWithAlphaComponent:0.08];
}
+ (UIColor *)colorWithRGBHex:(unsigned long)value
{
CGFloat red = ((value >> 16) & 0xff) / 255.f;