tweak selected color for homeview cells
This commit is contained in:
parent
8238406261
commit
834021fe39
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue