Răsfoiți Sursa

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

cyberta 4 ani în urmă
părinte
comite
397e87d1c2
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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