]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Deletion buttons are shown in red
authorRoopesh Chander <roop@roopc.net>
Thu, 1 Nov 2018 18:23:09 +0000 (23:53 +0530)
committerRoopesh Chander <roop@roopc.net>
Thu, 1 Nov 2018 18:23:09 +0000 (23:53 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift

index dc63258e893bebcd308570fa9755f83ecd862bfb..4094743a9a40d44929c77c1ab5aa22349369b82e 100644 (file)
@@ -198,6 +198,7 @@ extension TunnelDetailTableViewController {
             // Delete configuration
             let cell = tableView.dequeueReusableCell(withIdentifier: TunnelDetailTableViewButtonCell.id, for: indexPath) as! TunnelDetailTableViewButtonCell
             cell.buttonText = "Delete tunnel"
+            cell.button.tintColor = UIColor.red
             cell.onTapped = { [weak self] in
                 guard let s = self else { return }
                 s.showConfirmationAlert(message: "Delete this tunnel?", buttonTitle: "Delete", from: cell) { [weak s] in
index c9f159d01f49464d54b573ca5e6501bffac64464..7a3c935ce2f70c3adf7c1562341e50fb8c7abef5 100644 (file)
@@ -236,6 +236,7 @@ extension TunnelEditTableViewController {
             if (field == .deletePeer) {
                 let cell = tableView.dequeueReusableCell(withIdentifier: TunnelEditTableViewButtonCell.id, for: indexPath) as! TunnelEditTableViewButtonCell
                 cell.buttonText = field.rawValue
+                cell.button.tintColor = UIColor.red
                 cell.onTapped = { [weak self, weak peerData] in
                     guard let peerData = peerData else { return }
                     guard let s = self else { return }