diff --git a/Signal/src/ViewControllers/HomeView/HomeViewCell.m b/Signal/src/ViewControllers/HomeView/HomeViewCell.m index e6e88f715..195bf690a 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewCell.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewCell.m @@ -65,6 +65,10 @@ NS_ASSUME_NONNULL_BEGIN _viewConstraints = [NSMutableArray new]; + UIView *selectedBackgroundView = [UIView new]; + selectedBackgroundView.backgroundColor = UIColor.ows_tableCellSelectedBackgroundColor; + self.selectedBackgroundView = selectedBackgroundView; + self.avatarView = [[AvatarImageView alloc] init]; [self.contentView addSubview:self.avatarView]; [self.avatarView autoSetDimension:ALDimensionWidth toSize:self.avatarSize]; diff --git a/SignalMessaging/categories/UIColor+OWS.h b/SignalMessaging/categories/UIColor+OWS.h index c412210d9..b5355e04b 100644 --- a/SignalMessaging/categories/UIColor+OWS.h +++ b/SignalMessaging/categories/UIColor+OWS.h @@ -31,6 +31,7 @@ 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; @@ -45,7 +46,7 @@ NS_ASSUME_NONNULL_BEGIN - (UIColor *)blendWithColor:(UIColor *)otherColor alpha:(CGFloat)alpha; -#pragma mark - +#pragma mark - Color Palette @property (class, readonly, nonatomic) UIColor *ows_signalBlueColor; @property (class, readonly, nonatomic) UIColor *ows_greenColor; diff --git a/SignalMessaging/categories/UIColor+OWS.m b/SignalMessaging/categories/UIColor+OWS.m index 45470a908..e02d26986 100644 --- a/SignalMessaging/categories/UIColor+OWS.m +++ b/SignalMessaging/categories/UIColor+OWS.m @@ -117,6 +117,11 @@ 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; @@ -147,7 +152,7 @@ NS_ASSUME_NONNULL_BEGIN alpha:CGFloatLerp(a0, a1, alpha)]; } -#pragma mark - New Colors +#pragma mark - Color Palette + (UIColor *)ows_signalBlueColor {