diff --git a/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m b/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m index 389c44ae5..7b9d3a879 100644 --- a/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m +++ b/Vector/Categories/MXKRoomBubbleTableViewCell+Vector.m @@ -18,6 +18,8 @@ #import "RoomBubbleCellData.h" +#import "VectorDesignValues.h" + #import @implementation MXKRoomBubbleTableViewCell (Vector) @@ -34,13 +36,20 @@ if (component && component.date) { - UILabel *dateTimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, component.position.y, self.bubbleInfoContainer.frame.size.width , 15)]; + UILabel *dateTimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, component.position.y, self.bubbleInfoContainer.frame.size.width , 18)]; dateTimeLabel.text = [self.bubbleData.eventFormatter timeStringFromDate:component.date]; dateTimeLabel.textAlignment = NSTextAlignmentRight; - dateTimeLabel.textColor = [UIColor lightGrayColor]; - dateTimeLabel.font = [UIFont systemFontOfSize:11]; - dateTimeLabel.adjustsFontSizeToFitWidth = NO; + dateTimeLabel.textColor = VECTOR_TEXT_GRAY_COLOR; + if ([UIFont respondsToSelector:@selector(systemFontOfSize:weight:)]) + { + dateTimeLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium]; + } + else + { + dateTimeLabel.font = [UIFont systemFontOfSize:15]; + } + dateTimeLabel.tag = componentIndex; [dateTimeLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.m b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.m index 89e68b84a..1acfff6c9 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.m +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.m @@ -16,6 +16,15 @@ #import "RoomIncomingAttachmentBubbleCell.h" +#import "VectorDesignValues.h" + @implementation RoomIncomingAttachmentBubbleCell +- (void)awakeFromNib +{ + [super awakeFromNib]; + + self.userNameLabel.textColor = VECTOR_TEXT_BLACK_COLOR; +} + @end diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.xib b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.xib index 517714adf..ae04ec335 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.xib +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentBubbleCell.xib @@ -9,14 +9,14 @@ - + - + - + @@ -24,36 +24,28 @@ - - + - + @@ -132,26 +124,24 @@ - + - - - + + + - + - + - - - + + - + - - + @@ -175,7 +165,6 @@ - diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.h b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.h index 4844d96cd..50bc9219e 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.h +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.h @@ -23,5 +23,6 @@ @property (weak, nonatomic) IBOutlet UIView *paginationTitleView; @property (weak, nonatomic) IBOutlet UILabel *paginationLabel; +@property (weak, nonatomic) IBOutlet UIView *paginationSeparatorView; @end diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m index a53445cc8..db2f6defc 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.m @@ -16,8 +16,17 @@ #import "RoomIncomingAttachmentWithPaginationTitleBubbleCell.h" +#import "VectorDesignValues.h" + @implementation RoomIncomingAttachmentWithPaginationTitleBubbleCell +- (void)awakeFromNib +{ + [super awakeFromNib]; + + self.userNameLabel.textColor = VECTOR_TEXT_BLACK_COLOR; +} + - (void)render:(MXKCellData *)cellData { [super render:cellData]; diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib index da644e81f..dc4c17203 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithPaginationTitleBubbleCell.xib @@ -9,37 +9,42 @@ - + - + - + + + + + + - - + - - - + - + @@ -47,36 +52,28 @@ - - + - + @@ -154,31 +151,29 @@ - - + - - - + + + - - + + - - + - - + + - - + + - - + + @@ -197,13 +192,13 @@ + - diff --git a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithoutSenderInfoBubbleCell.xib b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithoutSenderInfoBubbleCell.xib index 84a26bd3c..0c88024e0 100644 --- a/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithoutSenderInfoBubbleCell.xib +++ b/Vector/Views/RoomBubbleList/RoomIncomingAttachmentWithoutSenderInfoBubbleCell.xib @@ -9,14 +9,14 @@ - + - + - + @@ -25,7 +25,7 @@ diff --git a/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.m b/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.m index e817473a4..49a47576f 100644 --- a/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.m +++ b/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.m @@ -16,12 +16,16 @@ #import "RoomOutgoingAttachmentBubbleCell.h" +#import "VectorDesignValues.h" + @implementation RoomOutgoingAttachmentBubbleCell - (void)awakeFromNib { [super awakeFromNib]; self.readReceiptsAlignment = ReadReceiptAlignmentRight; + + self.userNameLabel.textColor = VECTOR_TEXT_BLACK_COLOR; } - (void)render:(MXKCellData *)cellData diff --git a/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.xib b/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.xib index eba62bada..9b196dfda 100644 --- a/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.xib +++ b/Vector/Views/RoomBubbleList/RoomOutgoingAttachmentBubbleCell.xib @@ -9,14 +9,14 @@ - + - + - + @@ -25,27 +25,27 @@ - + - + -