IOS-399 Finished
authorigor <igor@pep-project.org>
Tue, 17 Jan 2017 13:22:16 +0100
changeset 1438a95b5815208d
parent 1437 0b6c63f292ce
child 1439 74b536b71ebf
IOS-399 Finished
pEpForiOS/UI/Compose/ComposeTableViewController.swift
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
pEpForiOS/UI/EmailDisplay/EmailViewController.swift
pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift
pEpForiOS/Util/UIHelper.swift
     1.1 --- a/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Mon Jan 16 17:34:44 2017 +0100
     1.2 +++ b/pEpForiOS/UI/Compose/ComposeTableViewController.swift	Tue Jan 17 13:22:16 2017 +0100
     1.3 @@ -274,6 +274,7 @@
     1.4      
     1.5      @IBAction func cancel() {
     1.6          let alertCtrl = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
     1.7 +        alertCtrl.view.tintColor = .pEpGreen
     1.8          if let popoverPresentationController = alertCtrl.popoverPresentationController {
     1.9              popoverPresentationController.sourceView = view
    1.10          }
     2.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon Jan 16 17:34:44 2017 +0100
     2.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Jan 17 13:22:16 2017 +0100
     2.3 @@ -232,6 +232,7 @@
     2.4      
     2.5      func showMoreActionSheet(cell: EmailListViewCell) {
     2.6          let alertControler = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
     2.7 +        alertControler.view.tintColor = .pEpGreen
     2.8          let cancelAction = createCancelAction()
     2.9          let replyAction = createReplyAction(cell: cell)
    2.10          let forwardAction = createForwardAction(cell: cell)
     3.1 --- a/pEpForiOS/UI/EmailDisplay/EmailViewController.swift	Mon Jan 16 17:34:44 2017 +0100
     3.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailViewController.swift	Tue Jan 17 13:22:16 2017 +0100
     3.3 @@ -42,6 +42,7 @@
     3.4  
     3.5      @IBAction func pressReply(_ sender: UIBarButtonItem) {
     3.6          let alertViewWithoutTitle = UIAlertController()
     3.7 +        alertViewWithoutTitle.view.tintColor = .pEpGreen
     3.8          
     3.9          if let popoverPresentationController = alertViewWithoutTitle.popoverPresentationController {
    3.10              popoverPresentationController.sourceView = view
     4.1 --- a/pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift	Mon Jan 16 17:34:44 2017 +0100
     4.2 +++ b/pEpForiOS/UI/ImapSetup/SMTPSettingsTableView.swift	Tue Jan 17 13:22:16 2017 +0100
     4.3 @@ -86,7 +86,7 @@
     4.4              title: NSLocalizedString("Error",
     4.5                  comment: "the text in the title for the error message AlerView in account settings"),
     4.6              message:message, preferredStyle: .alert)
     4.7 -
     4.8 +        alertView.view.tintColor = .pEpGreen
     4.9          alertView.addAction(UIAlertAction(title: NSLocalizedString("Ok",
    4.10              comment: "confirmation button text for error message AlertView in account settings"),
    4.11              style: .default, handler: nil))
    4.12 @@ -100,7 +100,7 @@
    4.13              message: NSLocalizedString("Choose a Security protocol for your accont",
    4.14                  comment: "UI alert message for transport protocol"),
    4.15              preferredStyle: .actionSheet)
    4.16 -
    4.17 +        alertController.view.tintColor = .pEpGreen
    4.18          let block: (ConnectionTransport) -> () = { transport in
    4.19              self.model.transportSMTP = transport
    4.20              self.updateView()
     5.1 --- a/pEpForiOS/Util/UIHelper.swift	Mon Jan 16 17:34:44 2017 +0100
     5.2 +++ b/pEpForiOS/Util/UIHelper.swift	Tue Jan 17 13:22:16 2017 +0100
     5.3 @@ -183,13 +183,14 @@
     5.4              theTitle = NSLocalizedString(
     5.5                  "Error", comment: "General error alert title")
     5.6          }
     5.7 -        let alert = UIAlertController.init(
     5.8 +        let alertController = UIAlertController(
     5.9              title: theTitle, message: errorMessage, preferredStyle: .alert)
    5.10 +        alertController.view.tintColor = .pEpGreen
    5.11          let okTitle = NSLocalizedString(
    5.12              "Ok", comment: "OK for error alert (no other interaction possible)")
    5.13          let action = UIAlertAction.init(
    5.14              title: okTitle, style: .default, handler: nil)
    5.15 -        alert.addAction(action)
    5.16 -        controller.present(alert, animated: true, completion: nil)
    5.17 +        alertController.addAction(action)
    5.18 +        controller.present(alertController, animated: true, completion: nil)
    5.19      }
    5.20  }