marinofaggiana 4 سال پیش
والد
کامیت
eb249ef15b

+ 1 - 1
iOSClient/Diagnostics/NCCapabilitiesViewController.swift

@@ -144,7 +144,7 @@ class NCCapabilitiesViewController: UIViewController, UIDocumentInteractionContr
         imageExternalSite.image = UIImage.init(named: "externalsites")!.image(color: .gray, size: 50)
         imageEndToEndEncryption.image = UIImage.init(named: "lock")!.image(color: .gray, size: 50)
         imageActivity.image = UIImage.init(named: "activity")!.image(color: .gray, size: 50)
-        imageNotification.image = UIImage.init(named: "notification")!.image(color: .gray, size: 50)
+        imageNotification.image = NCCollectionCommon.shared.loadImage(named: "bell", color: .gray)
         imageDeletedFiles.image = UIImage.init(named: "delete")!.image(color: .gray, size: 50)
         imageText.image = UIImage.init(named: "text")!.image(color: .gray, size: 50)
         imageCollabora.image = UIImage.init(named: "collabora")!.image(color: .gray, size: 50)

+ 1 - 1
iOSClient/Images.xcassets/notification.imageset/Contents.json → iOSClient/Images.xcassets/bell.imageset/Contents.json

@@ -1,7 +1,7 @@
 {
   "images" : [
     {
-      "filename" : "bell.pdf",
+      "filename" : "bell-outline.svg",
       "idiom" : "universal"
     }
   ],

+ 1 - 0
iOSClient/Images.xcassets/bell.imageset/bell-outline.svg

@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M16,17H7V10.5C7,8 9,6 11.5,6C14,6 16,8 16,10.5M18,16V10.5C18,7.43 15.86,4.86 13,4.18V3.5A1.5,1.5 0 0,0 11.5,2A1.5,1.5 0 0,0 10,3.5V4.18C7.13,4.86 5,7.43 5,10.5V16L3,18V19H20V18M11.5,22A2,2 0 0,0 13.5,20H9.5A2,2 0 0,0 11.5,22Z" /></svg>

BIN
iOSClient/Images.xcassets/notification.imageset/bell.pdf


+ 1 - 1
iOSClient/More/NCMore.swift

@@ -118,7 +118,7 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         // ITEM : Notification
         item = NCCommunicationExternalSite()
         item.name = "_notification_"
-        item.icon = "notification"
+        item.icon = "bell"
         item.url = "segueNotification"
         functionMenu.append(item)
 

+ 2 - 2
iOSClient/Notification/NCNotification.swift

@@ -74,7 +74,7 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty
     
     func emptyDataSetView(_ view: NCEmptyView) {
         
-        view.emptyImage.image = UIImage.init(named: "notification")?.image(color: .gray, size: UIScreen.main.bounds.width)
+        view.emptyImage.image = UIImage.init(named: "bell")?.image(color: .gray, size: UIScreen.main.bounds.width)
         view.emptyTitle.text = NSLocalizedString("_no_notification_", comment: "")
         view.emptyDescription.text = ""
     }
@@ -107,7 +107,7 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, NCEmpty
         if let image = image {
             cell.icon.image = image.image(color:  NCBrandColor.shared.brandElement, size: 25)
         } else {
-            cell.icon.image = #imageLiteral(resourceName: "notification").image(color: NCBrandColor.shared.brandElement, size: 25)
+            cell.icon.image = NCCollectionCommon.shared.loadImage(named: "bell", color: NCBrandColor.shared.brandElement)
         }
         
         // Avatar