diff --git a/Signal/src/ViewControllers/HomeView/HomeViewCell.m b/Signal/src/ViewControllers/HomeView/HomeViewCell.m index 195bf690a..6d4e9731c 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewCell.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewCell.m @@ -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]; diff --git a/SignalMessaging/categories/UIColor+OWS.h b/SignalMessaging/categories/UIColor+OWS.h index b5355e04b..419b20bc5 100644 --- a/SignalMessaging/categories/UIColor+OWS.h +++ b/SignalMessaging/categories/UIColor+OWS.h @@ -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; diff --git a/SignalMessaging/categories/UIColor+OWS.m b/SignalMessaging/categories/UIColor+OWS.m index e02d26986..3c979ad8c 100644 --- a/SignalMessaging/categories/UIColor+OWS.m +++ b/SignalMessaging/categories/UIColor+OWS.m @@ -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;