From 169a6bb9d321f456df9ddc985bf469a3efc0090e Mon Sep 17 00:00:00 2001 From: giomfo Date: Wed, 16 Dec 2015 22:50:50 +0100 Subject: [PATCH] Chat screen: implementation Apply Ribot design on pagination title dispalyed between chat bubble cells --- .../RoomIncomingAttachmentWithPaginationTitleBubbleCell.m | 5 ++++- .../RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib | 4 ++-- .../RoomIncomingTextMsgWithPaginationTitleBubbleCell.m | 5 ++++- .../RoomIncomingTextMsgWithPaginationTitleBubbleCell.xib | 4 ++-- .../RoomOutgoingAttachmentWithPaginationTitleBubbleCell.m | 5 ++++- .../RoomOutgoingAttachmentWithPaginationTitleBubbleCell.xib | 4 ++-- .../RoomOutgoingTextMsgWithPaginationTitleBubbleCell.m | 5 ++++- .../RoomOutgoingTextMsgWithPaginationTitleBubbleCell.xib | 4 ++-- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m index db2f6defc..d2fbbdd56 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m @@ -25,6 +25,9 @@ [super awakeFromNib]; self.userNameLabel.textColor = VECTOR_TEXT_BLACK_COLOR; + + self.paginationLabel.textColor = VECTOR_GREEN_COLOR; + self.paginationSeparatorView.backgroundColor = VECTOR_GREEN_COLOR; } - (void)render:(MXKCellData *)cellData @@ -33,7 +36,7 @@ if (self.bubbleData) { - self.paginationLabel.text = [self.bubbleData.eventFormatter dateStringFromDate:self.bubbleData.date withTime:NO]; + self.paginationLabel.text = [[self.bubbleData.eventFormatter dateStringFromDate:self.bubbleData.date withTime:NO] uppercaseString]; } } diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib index dc4c17203..e0b87a727 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib @@ -18,13 +18,13 @@ -