浏览代码

Merge pull request #510 from deltachat/contactCellColor

Changed color of contact cell
bjoern 5 年之前
父节点
当前提交
2fb9ffca02
共有 2 个文件被更改,包括 3 次插入2 次删除
  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"))
                                                         dark: UIColor.init(hexString: "224508"))
     static let messageSecondaryColor = UIColor.themeColor(light: UIColor.init(hexString: "ebebed"),
     static let messageSecondaryColor = UIColor.themeColor(light: UIColor.init(hexString: "ebebed"),
                                                           dark: UIColor.init(hexString: "333333"))
                                                           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 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 checkmarkGreen = UIColor.themeColor(light: UIColor.rgb(red: 112, green: 177, blue: 92))
     static let defaultTextColor = UIColor.themeColor(light: .darkText, dark: .white)
     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?) {
     override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
         super.init(style: style, reuseIdentifier: reuseIdentifier)
         super.init(style: style, reuseIdentifier: reuseIdentifier)
         selectionStyle = .none
         selectionStyle = .none
-        backgroundColor = DcColors.chatBackgroundColor
-        contentView.backgroundColor = DcColors.chatBackgroundColor
+        backgroundColor = DcColors.contactCellBackgroundColor
+        contentView.backgroundColor = DcColors.contactCellBackgroundColor
         setupSubviews()
         setupSubviews()
     }
     }