|
@@ -395,18 +395,13 @@
|
|
|
iconHeader = [UIImage imageNamed:metadata.iconName];
|
|
|
}
|
|
|
|
|
|
- [actionSheet addButtonWithTitle: metadata.fileNamePrint
|
|
|
- image: iconHeader
|
|
|
- backgroundColor: [NCBrandColor sharedInstance].tabBar
|
|
|
- height: 50.0
|
|
|
- type: AHKActionSheetButtonTypeDisabled
|
|
|
- handler: nil
|
|
|
+ [actionSheet addButtonWithTitle: metadata.fileNamePrint image: iconHeader backgroundColor: [NCBrandColor sharedInstance].tabBar height: 50.0 type: AHKActionSheetButtonTypeDisabled handler: nil
|
|
|
];
|
|
|
|
|
|
// ONLY Root Favorites : Remove file/folder Favorites
|
|
|
if (_serverUrl == nil) {
|
|
|
|
|
|
- [actionSheet addButtonWithTitle:NSLocalizedString(@"_remove_favorites_", nil) image:[UIImage imageNamed:image_actionSheetOffline] backgroundColor:[UIColor whiteColor] height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
|
|
|
+ [actionSheet addButtonWithTitle:NSLocalizedString(@"_remove_favorites_", nil) image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:image_actionSheetOffline] color:self.navigationController.navigationBar.barTintColor] backgroundColor:[UIColor whiteColor] height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
|
|
|
|
|
|
[self.tableView setEditing:NO animated:YES];
|
|
|
[[CCActions sharedInstance] settingFavorite:metadata favorite:NO delegate:self];
|
|
@@ -416,28 +411,21 @@
|
|
|
// Share
|
|
|
if (_metadata.cryptated == NO && app.hasServerShareSupport) {
|
|
|
|
|
|
- [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil)
|
|
|
- image:[UIImage imageNamed:image_actionSheetShare]
|
|
|
- backgroundColor:[UIColor whiteColor]
|
|
|
- height: 50.0
|
|
|
- type:AHKActionSheetButtonTypeDefault
|
|
|
- handler:^(AHKActionSheet *as) {
|
|
|
+ [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil) image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:image_actionSheetShare] color:self.navigationController.navigationBar.barTintColor] backgroundColor:[UIColor whiteColor] height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
|
|
|
+ // close swipe
|
|
|
+ [self setEditing:NO animated:YES];
|
|
|
|
|
|
- // close swipe
|
|
|
- [self setEditing:NO animated:YES];
|
|
|
-
|
|
|
- [app.activeMain openWindowShare:metadata];
|
|
|
- }];
|
|
|
+ [app.activeMain openWindowShare:metadata];
|
|
|
+ }];
|
|
|
}
|
|
|
|
|
|
// NO Directory - NO Template
|
|
|
if (metadata.directory == NO && [metadata.type isEqualToString:k_metadataType_template] == NO) {
|
|
|
|
|
|
- [actionSheet addButtonWithTitle:NSLocalizedString(@"_open_in_", nil) image:[UIImage imageNamed:image_actionSheetOpenIn] backgroundColor:[UIColor whiteColor] height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
|
|
|
-
|
|
|
- [self.tableView setEditing:NO animated:YES];
|
|
|
- [self openWith:metadata];
|
|
|
- }];
|
|
|
+ [actionSheet addButtonWithTitle:NSLocalizedString(@"_open_in_", nil) image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:image_actionSheetOpenIn] color:self.navigationController.navigationBar.barTintColor] backgroundColor:[UIColor whiteColor] height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
|
|
|
+ [self.tableView setEditing:NO animated:YES];
|
|
|
+ [self openWith:metadata];
|
|
|
+ }];
|
|
|
}
|
|
|
|
|
|
[actionSheet show];
|