瀏覽代碼

use 'cancel' string instead of the 'X' icon in editing bar

cyberta 4 年之前
父節點
當前提交
397e87d1c2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      deltachat-ios/Chat/Views/ChatEditingBar.swift

+ 2 - 2
deltachat-ios/Chat/Views/ChatEditingBar.swift

@@ -28,8 +28,8 @@ public class ChatEditingBar: UIView, InputItem {
 
     private lazy var cancelButton: UIButton = {
         let view = UIButton()
-        view.tintColor = .systemBlue
-        view.setImage(#imageLiteral(resourceName: "ic_close_36pt").withRenderingMode(.alwaysTemplate), for: .normal)
+        view.setTitle(String.localized("cancel"), for: .normal)
+        view.setTitleColor(.systemBlue, for: .normal)
         view.translatesAutoresizingMaskIntoConstraints = false
         view.contentMode = .scaleAspectFit
         view.isUserInteractionEnabled = true