CR: inline per code review

pull/1/head
Michael Kirk 7 years ago
parent 834021fe39
commit 998c2f392c

@ -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];

@ -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;

@ -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;

Loading…
Cancel
Save