|
@@ -128,20 +128,6 @@
|
|
|
#pragma mark ==== DZNEmptyDataSetSource ====
|
|
|
#pragma --------------------------------------------------------------------------------------------
|
|
|
|
|
|
-- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView
|
|
|
-{
|
|
|
- // only for root
|
|
|
- if (!_serverUrl)
|
|
|
- return YES;
|
|
|
- else
|
|
|
- return NO;
|
|
|
-}
|
|
|
-
|
|
|
-- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
-{
|
|
|
- return 0.0f;
|
|
|
-}
|
|
|
-
|
|
|
- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
{
|
|
|
return [UIColor whiteColor];
|
|
@@ -149,14 +135,14 @@
|
|
|
|
|
|
- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
{
|
|
|
- return [UIImage imageNamed:image_brandBackgroundLite];
|
|
|
+ return [UIImage imageNamed:image_filesNoFiles];
|
|
|
}
|
|
|
|
|
|
- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
{
|
|
|
- NSString *text = [NSString stringWithFormat:@"%@", @""];
|
|
|
+ NSString *text = [NSString stringWithFormat:@"%@", NSLocalizedString(@"_files_no_files_", 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];
|
|
|
}
|