소스 검색

show vertical bar in contact color if possible

cyberta 4 년 전
부모
커밋
05d1bae9b1
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift
  2. 3 2
      deltachat-ios/Chat/Views/QuoteView.swift

+ 1 - 0
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -275,6 +275,7 @@ public class BaseMessageCell: UITableViewCell {
                 let contact = quoteMsg.fromContact
                 quoteView.senderTitle.text = contact.displayName
                 quoteView.senderTitle.textColor = contact.color
+                quoteView.citeBar.backgroundColor = contact.color
             }
         } else {
             quoteView.isHidden = true

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

@@ -2,9 +2,9 @@ import UIKit
 import DcCore
 
 public class QuoteView: UIView {
-    lazy var citeBar: UIView = {
+    public lazy var citeBar: UIView = {
         let view = UIView()
-        view.backgroundColor = .systemGreen
+        view.backgroundColor = DcColors.grayDateColor
         view.clipsToBounds = true
         view.layer.cornerRadius = 1.5
         view.translatesAutoresizingMaskIntoConstraints = false
@@ -62,5 +62,6 @@ public class QuoteView: UIView {
         quote.attributedText = nil
         senderTitle.text = nil
         senderTitle.attributedText = nil
+        citeBar.backgroundColor = DcColors.grayDateColor
     }
 }