From ddb2c821ef4dd73d014fe3d3b7bd7ebd29bf50db Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 25 Sep 2020 14:07:05 +1000 Subject: [PATCH] Fix incorrect color --- .../ConversationView/Cells/OWSQuotedMessageView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m index c0fe4d203..3c314fa36 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m @@ -322,7 +322,8 @@ const CGFloat kRemotelySourcedContentRowSpacing = 4; if (self.isForPreview) { UIButton *cancelButton = [UIButton buttonWithType:UIButtonTypeCustom]; - UIImage *cancelIcon = [[UIImage imageNamed:@"X"] asTintedImageWithColor:LKColors.text]; + UIColor *tintColor = [LKAppModeUtilities isLightMode] ? UIColor.blackColor : UIColor.whiteColor; + UIImage *cancelIcon = [[UIImage imageNamed:@"X"] asTintedImageWithColor:tintColor]; [cancelButton setImage:cancelIcon forState:UIControlStateNormal]; cancelButton.contentMode = UIViewContentModeScaleAspectFit; [cancelButton addTarget:self action:@selector(didTapCancel) forControlEvents:UIControlEventTouchUpInside];