reskin: Create ThemeService.shared

This commit is contained in:
manuroe
2019-01-11 11:45:27 +01:00
parent 712a632120
commit 744a0b8d4f
112 changed files with 758 additions and 728 deletions
@@ -28,11 +28,11 @@
{
[super customizeTableViewCellRendering];
self.title.textColor = ThemeService.theme.textPrimaryColor;
self.title.textColor = ThemeService.shared.theme.textPrimaryColor;
self.message.textColor = ThemeService.theme.textSecondaryColor;
self.message.textColor = ThemeService.shared.theme.textSecondaryColor;
self.date.tintColor = ThemeService.theme.textSecondaryColor;
self.date.tintColor = ThemeService.shared.theme.textSecondaryColor;
}
+ (CGFloat)heightForCellData:(MXKCellData *)cellData withMaximumWidth:(CGFloat)maxWidth
@@ -76,7 +76,7 @@
if (bubbleData.isAttachmentWithThumbnail)
{
self.attachmentImageView.backgroundColor = ThemeService.theme.backgroundColor;
self.attachmentImageView.backgroundColor = ThemeService.shared.theme.backgroundColor;
[self.attachmentImageView setAttachmentThumb:bubbleData.attachment];
}