marinofaggiana 4 years ago
parent
commit
313a1bdcfd

+ 1 - 1
iOSClient/Favorites/NCFavorite.swift

@@ -33,7 +33,7 @@ class NCFavorite: NCCollectionViewCommon  {
         titleCurrentFolder = NSLocalizedString("_favorites_", comment: "")
         layoutKey = k_layout_view_favorite
         enableSearchBar = true
-        DZNimage = "favorite"
+        DZNimage = CCGraphics.changeThemingColorImage(UIImage.init(named: "favorite"), width: 300, height: 300, color: NCBrandColor.sharedInstance.yellowFavorite)
         DZNtitle = "_favorite_no_files_"
         DZNdescription = "_tutorial_favorite_view_"
     }

+ 2 - 2
iOSClient/Main/NCCollectionCommon.swift

@@ -665,7 +665,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     internal var layoutKey = ""
     internal var titleCurrentFolder = ""
     internal var enableSearchBar: Bool = false
-    internal var DZNimage: String = ""
+    internal var DZNimage: UIImage?
     internal var DZNtitle: String = ""
     internal var DZNdescription: String = ""
     
@@ -935,7 +935,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             return CCGraphics.changeThemingColorImage(UIImage.init(named: "search"), width: 300, height: 300, color: NCBrandColor.sharedInstance.yellowFavorite)
         }
         
-        return CCGraphics.changeThemingColorImage(UIImage.init(named: DZNimage), width: 300, height: 300, color: NCBrandColor.sharedInstance.yellowFavorite)
+        return DZNimage
     }
     
     func title(forEmptyDataSet scrollView: UIScrollView) -> NSAttributedString? {

+ 1 - 1
iOSClient/Offline/NCOffline.swift

@@ -33,7 +33,7 @@ class NCOffline: NCCollectionViewCommon  {
         titleCurrentFolder = NSLocalizedString("_manage_file_offline_", comment: "")
         layoutKey = k_layout_view_offline
         enableSearchBar = true
-        DZNimage = "folder"
+        DZNimage = CCGraphics.changeThemingColorImage(UIImage.init(named: "folder"), width: 300, height: 300, color: NCBrandColor.sharedInstance.brandElement)
         DZNtitle = "_files_no_files_"
         DZNdescription = "_tutorial_offline_view_"
     }