소스 검색

tweak system message background colors

cyberta 5 년 전
부모
커밋
baaa203928
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      deltachat-ios/Controller/ChatViewController.swift
  2. 1 0
      deltachat-ios/Helper/Colors.swift

+ 1 - 1
deltachat-ios/Controller/ChatViewController.swift

@@ -737,7 +737,7 @@ extension ChatViewController: MessagesDisplayDelegate {
         if isInfoMessage(at: indexPath) {
             return .custom { view in
                 view.style = .none
-                view.backgroundColor = UIColor(alpha: 10, red: 0, green: 0, blue: 0)
+                view.backgroundColor = DcColors.systemMessageBackgroundColor
                 let radius: CGFloat = 16
                 let path = UIBezierPath(roundedRect: view.bounds,
                                         byRoundingCorners: UIRectCorner.allCorners,

+ 1 - 0
deltachat-ios/Helper/Colors.swift

@@ -16,6 +16,7 @@ struct DcColors {
                                                      dark: UIColor(red: 10 / 255, green: 10 / 255, blue: 10 / 255, alpha: 1))
     static let placeholderColor = UIColor.themeColor(light: UIColor(red: 0.6, green: 0.6, blue: 0.6, alpha: 1),
                                                      dark: UIColor(red: 0.4, green: 0.4, blue: 0.4, alpha: 1))
+    static let systemMessageBackgroundColor = UIColor.themeColor(light: UIColor.rgb(red: 248, green: 248, blue: 248), dark: UIColor(white: 0.2, alpha: 0.5))
 }
 
 enum SystemColor {