Ver código fonte

improvements

marinofaggiana 4 anos atrás
pai
commit
2c89347078

+ 9 - 11
Share/NCSelectDestination.m

@@ -67,25 +67,23 @@
     [self.cancel setTitle:NSLocalizedString(@"_cancel_", nil)];
     [self.create setTitle:NSLocalizedString(@"_create_folder_", nil)];
     
+    UILabel* label = [[UILabel alloc] initWithFrame:CGRectMake(0,0, self.navigationItem.titleView.frame.size.width, 40)];
+    label.textColor = NCBrandColor.shared.brandText;
+    label.backgroundColor =[UIColor clearColor];
+    label.textAlignment = NSTextAlignmentCenter;
+    
     if (![_serverUrl length]) {
                 
         _serverUrl = [[NCUtilityFileSystem shared] getHomeServerWithUrlBase:urlBase account:account];
-        
-//        [self.navigationController.navigationBar.topItem setTitleView:[[UIImageView alloc] initWithImage: [UIImage imageNamed:@"themingLogo"]]];
-//        self.title = @"Home";
+        label.text = NSLocalizedString(@"_home_dir_", nil);
         
     } else {
-        
-        UILabel* label = [[UILabel alloc] initWithFrame:CGRectMake(0,0, self.navigationItem.titleView.frame.size.width, 40)];
+               
         label.text = self.passMetadata.fileNameView;
-        
-        label.textColor = NCBrandColor.shared.brandText;
-        
-        label.backgroundColor =[UIColor clearColor];
-        label.textAlignment = NSTextAlignmentCenter;
-        self.navigationItem.titleView=label;
     }
     
+    self.navigationItem.titleView = label;
+    
     // TableView : at the end of rows nothing
     self.tableView.tableFooterView = [UIView new];
     self.tableView.separatorColor =  NCBrandColor.shared.separator;

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

@@ -55,6 +55,8 @@
 "_select_all_"              = "Select all";
 "_upload_"                  = "Upload";
 "_home_"                    = "Files";
+"_files_"                   = "Files";
+"_home_dir_"                = "Home";
 "_file_to_upload_"          = "File to upload";
 "_destination_"             = "Destination";
 "_ok_"                      = "OK";