소스 검색

add select color Notification

Marino Faggiana 8 년 전
부모
커밋
705c672f4b
2개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 3
      iOSClient/CCConstant.swift
  2. 5 1
      iOSClient/Notification/CCNotification.swift

+ 4 - 3
iOSClient/CCConstant.swift

@@ -28,12 +28,13 @@ class CCConstant: NSObject {
     struct GlobalConstants {
         
         // GLOBLE COLOR DEFINE
+                
+        static let kColor_Seperator: UIColor = UIColor(red: 53.0/255.0, green: 126.0/255.0, blue: 167.0/255.0, alpha: 1.0)
         
-        // [UIColor colorWithRed:241.0/255.0 green:90.0/255.0 blue:34.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_Seperator: UIColor = UIColor(red: 53.0/255.0, green: 126.0/255.0, blue: 167.0/255.0, alpha: 1.0)
+        static let kColor_SelectBackgrond: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 0.1)
         
-        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)
 

+ 5 - 1
iOSClient/Notification/CCNotification.swift

@@ -83,7 +83,7 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
                 self.appDelegate.addNetworkingOperationQueue(self.appDelegate.netQueue, delegate: self, metadataNet: metadataNet)
             }
             
-            remove.backgroundColor = CCConstant.GlobalConstants.kColor_cryptocloud
+            remove.backgroundColor = CCConstant.GlobalConstants.kColor_Cryptocloud
  
             return [remove]
  
@@ -154,6 +154,10 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
     
         let cell = self.tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! CCNotificationCell
         
+        let selectionColor : UIView = UIView.init()
+        selectionColor.backgroundColor = CCConstant.GlobalConstants.kColor_SelectBackgrond
+        cell.selectedBackgroundView = selectionColor
+        
         if self.resultSearchController.isActive {
             
         } else {