UX Rework: Replace the direct chat icon with a green ring on the room avatar.

This commit is contained in:
Giom Foret
2017-05-15 19:19:03 +02:00
parent 5eaa1484f5
commit 4fd7bd3f5f
5 changed files with 40 additions and 38 deletions
+8 -2
View File
@@ -41,6 +41,12 @@
self.lastEventDescription.textColor = kRiotTextColorGray;
self.lastEventDate.textColor = kRiotTextColorGray;
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;
}
- (void)layoutSubviews
@@ -127,8 +133,8 @@
}
self.roomAvatar.backgroundColor = [UIColor clearColor];
self.directRoomIcon.hidden = !roomCellData.roomSummary.room.isDirect;
self.directRoomBorderView.hidden = !roomCellData.roomSummary.room.isDirect;
self.encryptedRoomIcon.hidden = !roomCellData.roomSummary.isEncrypted;