mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
UX Rework: Replace the direct chat icon with a green ring on the room avatar.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user