Marino Faggiana 8 vuotta sitten
vanhempi
commit
60faecb17f

+ 2 - 0
iOSClient/CCStandardImages.h

@@ -75,6 +75,8 @@
 
 #define image_home                              @"home"
 
+#define image_localStorageNoRecord              @"localStorageNoRecord"
+
 #define image_lock                              @"lock"
 
 #define image_NextcloudMenuChangeAccount        @"typeCloudNextcloud"

+ 21 - 0
iOSClient/Images.xcassets/localStorageNoRecord.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "storageNoRecord@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
iOSClient/Images.xcassets/localStorageNoRecord.imageset/storageNoRecord@2x.png


+ 3 - 3
iOSClient/Local storage/CCLocalStorage.m

@@ -115,14 +115,14 @@
 
 - (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView
 {
-    return [UIImage imageNamed:image_brandBackgroundLite];
+    return [UIImage imageNamed:image_localStorageNoRecord];
 }
 
 - (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView
 {
-    NSString *text = [NSString stringWithFormat:@"%@", @""];
+    NSString *text = [NSString stringWithFormat:@"%@", NSLocalizedString(@"_local_storage_no_record_", nil)];
     
-    NSDictionary *attributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f], NSForegroundColorAttributeName:COLOR_BRAND};
+    NSDictionary *attributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f], NSForegroundColorAttributeName:[UIColor lightGrayColor]};
     
     return [[NSAttributedString alloc] initWithString:text attributes:attributes];
 }

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -220,6 +220,7 @@
 "_favorites_"                   = "Favorites";
 "_offline_"                     = "Offline";
 "_local_storage_"               = "Local storage";
+"_local_storage_no_record_"     = "No files yet";
 "_no_files_uploaded_"           = "No files uploaded";
 "_tutorial_favorite_view_"      = "Here is the list of files that you have selected as favorites.";
 "_tutorial_offline_view_"       = "Copy here the files that should be available offline.\n\nThey will be synchronized with your cloud.";