Parcourir la source

synchronize unread-badge-color with desktop and android (#1407)

bjoern il y a 3 ans
Parent
commit
8ee3b5d99c
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      DcCore/DcCore/Helper/DcColors.swift
  2. 1 1
      deltachat-ios/View/ContactCell.swift

+ 1 - 0
DcCore/DcCore/Helper/DcColors.swift

@@ -18,6 +18,7 @@ public struct DcColors {
     public static let sharedChatCellBackgroundColor = UIColor.themeColor(light: white, dark: actionCellBackgroundDark)
     public static let chatBackgroundColor = UIColor.themeColor(light: .white, dark: .black)
     public static let checkmarkGreen = UIColor.themeColor(light: UIColor.rgb(red: 112, green: 177, blue: 92))
+    public static let unreadBadge = UIColor(hexString: "3792fc")
     public static let defaultTextColor = UIColor.themeColor(light: .darkText, dark: .white)
     public static let grayTextColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
     public static let grayDateColor = UIColor.themeColor(lightHex: "999999", darkHex: "bbbbbb") // slight variations of lightGray (#aaaaaa)

+ 1 - 1
deltachat-ios/View/ContactCell.swift

@@ -251,7 +251,7 @@ class ContactCell: UITableViewCell {
             pinnedIndicator.isHidden = !(visibility == DC_CHAT_VISIBILITY_PINNED)
             unreadMessageCounter.setCount(unreadCount)
             unreadMessageCounter.isHidden = isContactRequest
-            unreadMessageCounter.backgroundColor = isMuted ? .gray : .red
+            unreadMessageCounter.backgroundColor = isMuted ? .gray : DcColors.unreadBadge
             deliveryStatusIndicator.isHidden = true
             archivedIndicator.isHidden = true
         } else {