فهرست منبع

use same font color in QuoteView as on Android

cyberta 3 سال پیش
والد
کامیت
65e82595d7

+ 2 - 2
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -394,8 +394,8 @@ public class BaseMessageCell: UITableViewCell {
                 quoteView.setImagePreview(quoteMsg.image)
                 if quoteMsg.isForwarded {
                     quoteView.senderTitle.text = String.localized("forwarded_message")
-                    quoteView.senderTitle.textColor = DcColors.grayDateColor
-                    quoteView.citeBar.backgroundColor = DcColors.grayDateColor
+                    quoteView.senderTitle.textColor = DcColors.unknownSender
+                    quoteView.citeBar.backgroundColor = DcColors.unknownSender
                 } else {
                     let contact = dcContext.getContact(id: quoteMsg.fromContactId)
                     quoteView.senderTitle.text = quoteMsg.getSenderName(contact, markOverride: true)

+ 2 - 2
deltachat-ios/Chat/Views/QuotePreview.swift

@@ -36,8 +36,8 @@ public class QuotePreview: DraftPreview {
                 quoteView.setImagePreview(quoteMessage.image)
                 if quoteMessage.isForwarded {
                     quoteView.senderTitle.text = String.localized("forwarded_message")
-                    quoteView.senderTitle.textColor = DcColors.grayDateColor
-                    quoteView.citeBar.backgroundColor = DcColors.grayDateColor
+                    quoteView.senderTitle.textColor = DcColors.unknownSender
+                    quoteView.citeBar.backgroundColor = DcColors.unknownSender
                 } else {
                     let contact = draft.dcContext.getContact(id: quoteMessage.fromContactId)
                     quoteView.senderTitle.text = quoteMessage.getSenderName(contact, markOverride: true)

+ 2 - 2
deltachat-ios/Chat/Views/QuoteView.swift

@@ -4,7 +4,7 @@ import DcCore
 public class QuoteView: UIView {
     public lazy var citeBar: UIView = {
         let view = UIView()
-        view.backgroundColor = DcColors.grayDateColor
+        view.backgroundColor = DcColors.unknownSender
         view.clipsToBounds = true
         view.layer.cornerRadius = 1.5
         view.translatesAutoresizingMaskIntoConstraints = false
@@ -99,7 +99,7 @@ public class QuoteView: UIView {
         quote.attributedText = nil
         senderTitle.text = nil
         senderTitle.attributedText = nil
-        citeBar.backgroundColor = DcColors.grayDateColor
+        citeBar.backgroundColor = DcColors.unknownSender
         imagePreview.image = nil
         imageWidthConstraint?.constant = 0
     }