Prepare Dark theme - Handle table view cell customization

This commit is contained in:
Giom Foret
2017-08-08 16:05:43 +02:00
parent 7cc4afba2b
commit 01ede51919
44 changed files with 204 additions and 132 deletions
+18 -11
View File
@@ -40,17 +40,6 @@
[_missedNotifAndUnreadBadgeBgView.layer setCornerRadius:10];
_missedNotifAndUnreadBadgeBgViewWidthConstraint.constant = 0;
self.roomTitle.textColor = kRiotTextColorBlack;
self.roomTitle1.textColor = kRiotTextColorBlack;
self.roomTitle2.textColor = kRiotTextColorBlack;
self.missedNotifAndUnreadBadgeLabel.textColor = [UIColor whiteColor];
// Prepare direct room border
[self.directRoomBorderView.layer setCornerRadius:self.directRoomBorderView.frame.size.width / 2];
self.directRoomBorderView.clipsToBounds = YES;
self.directRoomBorderView.layer.borderColor = CGColorCreateCopyWithAlpha(kRiotColorGreen.CGColor, 0.75);
self.directRoomBorderView.layer.borderWidth = 3;
// Disable the user interaction on the room avatar.
self.roomAvatar.userInteractionEnabled = NO;
@@ -67,6 +56,24 @@
self.editionArrowView.layer.mask = arrowMaskLayer;
}
- (void)customizeCollectionViewCellRendering
{
[super customizeCollectionViewCellRendering];
self.roomTitle.textColor = kRiotTextColorBlack;
self.roomTitle1.textColor = kRiotTextColorBlack;
self.roomTitle2.textColor = kRiotTextColorBlack;
self.missedNotifAndUnreadBadgeLabel.textColor = [UIColor whiteColor];
// Prepare direct room border
[self.directRoomBorderView.layer setCornerRadius:self.directRoomBorderView.frame.size.width / 2];
self.directRoomBorderView.clipsToBounds = YES;
self.directRoomBorderView.layer.borderColor = CGColorCreateCopyWithAlpha(kRiotColorGreen.CGColor, 0.75);
self.directRoomBorderView.layer.borderWidth = 3;
self.editionArrowView.backgroundColor = kRiotSecondaryBgColor;
}
- (void)layoutSubviews
{
[super layoutSubviews];