Browse Source

Notification view

Marino Faggiana 8 years ago
parent
commit
ae485bf12a
2 changed files with 6 additions and 4 deletions
  1. 3 1
      iOSClient/CCConstant.swift
  2. 3 3
      iOSClient/Notification/CCNotification.swift

+ 3 - 1
iOSClient/CCConstant.swift

@@ -29,9 +29,11 @@ class CCConstant: NSObject {
         
         // GLOBLE COLOR DEFINE
         
+        // [UIColor colorWithRed:241.0/255.0 green:90.0/255.0 blue:34.0/255.0 alpha:1.0]
+        
         static let kColor_Seperator: UIColor = UIColor(red: 53.0/255.0, green: 126.0/255.0, blue: 167.0/255.0, alpha: 1.0)
         
-        static let kColor_orange: UIColor = UIColor(red: 255.0/255.0, green: 147.0/255.0, blue: 38.0/255.0, alpha: 1.0)
+        static let kColor_cryptocloud: UIColor = UIColor(red: 241.0/255.0, green: 90.0/255.0, blue: 34.0/255.0, alpha: 1.0)
         
         static let kColor_NonCompliant: UIColor = UIColor(red: 190.0/255.0, green: 15.0/255.0, blue: 52.0/255.0, alpha: 1.0)
 

+ 3 - 3
iOSClient/Notification/CCNotification.swift

@@ -76,7 +76,7 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
         // No Action request
         if notification.actions.count == 0 {
             
-            let cancel = UITableViewRowAction(style: .normal, title: NSLocalizedString("_cancel_", comment: "")) { action, index in
+            let delete = UITableViewRowAction(style: .normal, title: NSLocalizedString("_delete_", comment: "")) { action, index in
 
                 tableView.setEditing(false, animated: true)
 
@@ -90,9 +90,9 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
                 self.appDelegate.addNetworkingOperationQueue(self.appDelegate.netQueue, delegate: self, metadataNet: metadataNet)
             }
             
-            cancel.backgroundColor = .orange
+            delete.backgroundColor = CCConstant.GlobalConstants.kColor_cryptocloud
  
-            return [cancel]
+            return [delete]
  
         } else {
         // Action request