Pārlūkot izejas kodu

darker background for pinned chats

B. Petersen 5 gadi atpakaļ
vecāks
revīzija
f5d098d347
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      deltachat-ios/Controller/ChatListController.swift

+ 8 - 0
deltachat-ios/Controller/ChatListController.swift

@@ -193,6 +193,14 @@ extension ChatListController: UITableViewDataSource, UITableViewDelegate {
             } else {
                 cell.setBackupImage(name: chat.name, color: chat.color)
             }
+
+            if chat.visibility == DC_CHAT_VISIBILITY_PINNED {
+                cell.backgroundColor = DcColors.deaddropBackground
+                cell.contentView.backgroundColor = DcColors.deaddropBackground
+            } else {
+                cell.backgroundColor = DcColors.contactCellBackgroundColor
+                cell.contentView.backgroundColor = DcColors.contactCellBackgroundColor
+            }
         }
 
         cell.setVerified(isVerified: chat.isVerified)