浏览代码

don't present attachment icon as disabled

cyberta 5 年之前
父节点
当前提交
d7f62abdcd
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      deltachat-ios/Controller/ChatViewController.swift

+ 2 - 3
deltachat-ios/Controller/ChatViewController.swift

@@ -443,12 +443,11 @@ class ChatViewController: MessagesViewController {
                     $0.spacing = .fixed(0)
                     $0.spacing = .fixed(0)
                     let clipperIcon = #imageLiteral(resourceName: "ic_attach_file_36pt").withRenderingMode(.alwaysTemplate)
                     let clipperIcon = #imageLiteral(resourceName: "ic_attach_file_36pt").withRenderingMode(.alwaysTemplate)
                     $0.image = clipperIcon
                     $0.image = clipperIcon
-                    $0.tintColor = DcColors.colorDisabled
-                    $0.setSize(CGSize(width: 30, height: 30), animated: false)
+                    $0.tintColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
                 }.onSelected {
                 }.onSelected {
                     $0.tintColor = DcColors.primary
                     $0.tintColor = DcColors.primary
                 }.onDeselected {
                 }.onDeselected {
-                    $0.tintColor = DcColors.colorDisabled
+                    $0.tintColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
                 }.onTouchUpInside { _ in
                 }.onTouchUpInside { _ in
                     self.clipperButtonPressed()
                     self.clipperButtonPressed()
                 }
                 }