Enable Dark theme

TODO:
- fix the app freeze when user changes the app theme.
This commit is contained in:
Giom Foret
2017-08-11 16:56:09 +02:00
parent 1c9fc7a910
commit c4aa8013be
109 changed files with 1528 additions and 339 deletions
+4 -4
View File
@@ -26,11 +26,11 @@
{
[super customizeTableViewCellRendering];
self.title.textColor = kRiotTextColorBlack;
self.title.textColor = kRiotPrimaryTextColor;
self.message.textColor = kRiotTextColorGray;
self.message.textColor = kRiotSecondaryTextColor;
self.date.tintColor = kRiotTextColorGray;
self.date.tintColor = kRiotSecondaryTextColor;
}
+ (CGFloat)heightForCellData:(MXKCellData *)cellData withMaximumWidth:(CGFloat)maxWidth
@@ -95,7 +95,7 @@
self.attachmentImageView.enableInMemoryCache = YES;
[self.attachmentImageView setImageURL:url withType:mimetype andImageOrientation:bubbleData.attachment.thumbnailOrientation previewImage:preview];
self.attachmentImageView.backgroundColor = [UIColor whiteColor];
self.attachmentImageView.backgroundColor = kRiotPrimaryBgColor;
}
}