Browse Source

Merge pull request #510 from deltachat/contactCellColor

Changed color of contact cell
bjoern 5 năm trước cách đây
mục cha
commit
2fb9ffca02
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      deltachat-ios/Helper/Colors.swift
  2. 2 2
      deltachat-ios/View/ContactCell.swift

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

@@ -7,6 +7,7 @@ struct DcColors {
                                                         dark: UIColor.init(hexString: "224508"))
     static let messageSecondaryColor = UIColor.themeColor(light: UIColor.init(hexString: "ebebed"),
                                                           dark: UIColor.init(hexString: "333333"))
+    static let contactCellBackgroundColor = UIColor.themeColor(light: .white, dark: .black)
     static let chatBackgroundColor = UIColor.themeColor(light: UIColor(red: 255, green: 255, blue: 255, alpha: 0), dark: .black)
     static let checkmarkGreen = UIColor.themeColor(light: UIColor.rgb(red: 112, green: 177, blue: 92))
     static let defaultTextColor = UIColor.themeColor(light: .darkText, dark: .white)

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

@@ -63,8 +63,8 @@ class ContactCell: UITableViewCell {
     override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
         super.init(style: style, reuseIdentifier: reuseIdentifier)
         selectionStyle = .none
-        backgroundColor = DcColors.chatBackgroundColor
-        contentView.backgroundColor = DcColors.chatBackgroundColor
+        backgroundColor = DcColors.contactCellBackgroundColor
+        contentView.backgroundColor = DcColors.contactCellBackgroundColor
         setupSubviews()
     }