Parcourir la source

use cells with disclosureIndicator for gallery and documents

cyberta il y a 5 ans
Parent
commit
8345ad0b19

+ 8 - 10
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -49,19 +49,17 @@ class ContactDetailViewController: UITableViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = SystemColor.blue.uiColor
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 

+ 8 - 10
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -93,19 +93,17 @@ class GroupChatDetailViewController: UIViewController {
         return cell
     }()
 
-    private lazy var galleryCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("gallery")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var galleryCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("gallery")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()
 
-    private lazy var documentsCell: ActionCell = {
-        let cell = ActionCell()
-        cell.actionTitle = String.localized("documents")
-        cell.actionColor = UIColor.systemBlue
-        cell.selectionStyle = .none
+    private lazy var documentsCell: UITableViewCell = {
+        let cell = UITableViewCell(style: .value1, reuseIdentifier: nil)
+        cell.textLabel?.text = String.localized("documents")
+        cell.accessoryType = .disclosureIndicator
         return cell
     }()