mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
reskin: Create ThemeService.shared
This commit is contained in:
@@ -53,8 +53,8 @@
|
||||
[super customizeTableViewCellRendering];
|
||||
|
||||
// apply the vector colours
|
||||
self.contactDisplayNameLabel.textColor = ThemeService.theme.textPrimaryColor;
|
||||
self.contactInformationLabel.textColor = ThemeService.theme.textSecondaryColor;
|
||||
self.contactDisplayNameLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
|
||||
self.contactInformationLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
|
||||
|
||||
// Clear the default background color of a MXKImageView instance
|
||||
self.thumbnailView.defaultBackgroundColor = [UIColor clearColor];
|
||||
@@ -223,11 +223,11 @@
|
||||
}
|
||||
else if ((!contact.isMatrixContact && contact.phoneNumbers.count && !contact.emailAddresses.count))
|
||||
{
|
||||
image = [AvatarGenerator imageFromText:@"#" withBackgroundColor:ThemeService.theme.tintColor];
|
||||
image = [AvatarGenerator imageFromText:@"#" withBackgroundColor:ThemeService.shared.theme.tintColor];
|
||||
}
|
||||
else
|
||||
{
|
||||
image = [AvatarGenerator imageFromText:@"@" withBackgroundColor:ThemeService.theme.tintColor];
|
||||
image = [AvatarGenerator imageFromText:@"@" withBackgroundColor:ThemeService.shared.theme.tintColor];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user