mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Add objective C support to SwiftGen assets helpers (#5533)
* Add objective C support to SwiftGen assets helpers * Use dot notation in ObjC & fix minor issues Co-authored-by: Arnaud Ringenbach <arnaud.ringenbach@niji.fr>
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
[self.resendButton setTitle:[VectorL10n retry] forState:UIControlStateNormal];
|
||||
self.resendButton.backgroundColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
UIImage *image = [[UIImage imageNamed:@"room_context_menu_delete"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
UIImage *image = [AssetImages.roomContextMenuDelete.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[self.deleteButton setImage:image forState:UIControlStateNormal];
|
||||
self.deleteButton.tintColor = ThemeService.shared.theme.warningColor;
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
|
||||
if (labelText.length)
|
||||
{
|
||||
self.iconImageView.image = [UIImage imageNamed:@"error"];
|
||||
self.iconImageView.image = AssetImages.error.image;
|
||||
self.iconImageView.tintColor = ThemeService.shared.theme.noticeColor;
|
||||
self.messageLabel.text = labelText;
|
||||
self.messageLabel.textColor = ThemeService.shared.theme.warningColor;
|
||||
@@ -192,7 +192,7 @@
|
||||
|
||||
if (labelText.length)
|
||||
{
|
||||
self.iconImageView.image = [UIImage imageNamed:@"typing"];
|
||||
self.iconImageView.image = AssetImages.typing.image;
|
||||
self.iconImageView.tintColor = ThemeService.shared.theme.tintColor;
|
||||
self.messageLabel.text = labelText;
|
||||
|
||||
@@ -309,7 +309,7 @@
|
||||
self.messageTextView.hidden = NO;
|
||||
self.messageTextView.backgroundColor = [UIColor clearColor];
|
||||
|
||||
self.iconImageView.image = [UIImage imageNamed:@"error"];
|
||||
self.iconImageView.image = AssetImages.error.image;
|
||||
self.iconImageView.tintColor = ThemeService.shared.theme.noticeColor;
|
||||
self.iconImageView.hidden = NO;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user