Marino Faggiana 6 years ago
parent
commit
6872bd5da9
29 changed files with 52 additions and 29 deletions
  1. 1 0
      iOSClient/Brand/NCBrand.swift
  2. 3 3
      iOSClient/Favorites/CCFavorites.m
  3. BIN
      iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare.png
  4. BIN
      iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare@2x.png
  5. BIN
      iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare@3x.png
  6. 3 3
      iOSClient/Images.xcassets/more.imageset/Contents.json
  7. BIN
      iOSClient/Images.xcassets/more.imageset/more.png
  8. BIN
      iOSClient/Images.xcassets/more.imageset/more@2x.png
  9. BIN
      iOSClient/Images.xcassets/more.imageset/more@3x.png
  10. 3 3
      iOSClient/Images.xcassets/share.imageset/Contents.json
  11. BIN
      iOSClient/Images.xcassets/share.imageset/share.png
  12. BIN
      iOSClient/Images.xcassets/share.imageset/share@2x.png
  13. BIN
      iOSClient/Images.xcassets/share.imageset/share@3x.png
  14. BIN
      iOSClient/Images.xcassets/shareLink.imageset/shareLink.png
  15. BIN
      iOSClient/Images.xcassets/shareLink.imageset/shareLink@2x.png
  16. BIN
      iOSClient/Images.xcassets/shareLink.imageset/shareLink@3x.png
  17. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted.png
  18. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@2x.png
  19. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@3x.png
  20. 23 0
      iOSClient/Images.xcassets/sharebylink.imageset/Contents.json
  21. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink.png
  22. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@2x.png
  23. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@3x.png
  24. 1 1
      iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m
  25. 1 1
      iOSClient/Main/CCCellMain.h
  26. 2 5
      iOSClient/Main/CCCellMain.xib
  27. 1 1
      iOSClient/Main/CCCellMainTransfer.h
  28. 1 1
      iOSClient/Main/CCDetail.m
  29. 13 11
      iOSClient/Main/CCMain.m

+ 1 - 0
iOSClient/Brand/NCBrand.swift

@@ -46,6 +46,7 @@ class NCBrandColor: NSObject {
     @objc public var tabBar:                UIColor = .white
     @objc public var transferBackground:    UIColor = UIColor(red: 178.0/255.0, green: 244.0/255.0, blue: 258.0/255.0, alpha: 0.1)
     @objc public let nextcloud:             UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)
+    @objc public let gray:                  UIColor = UIColor(red: 152.0/255.0, green: 152.0/255.0, blue: 152.0/255.0, alpha: 1.0)
 
     override init() {
         self.brand = self.customer

+ 3 - 3
iOSClient/Favorites/CCFavorites.m

@@ -408,7 +408,7 @@
     ];
 
     // Share
-    [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil) image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"] color:[NCBrandColor sharedInstance].brandElement] backgroundColor:[NCBrandColor sharedInstance].backgroundView height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
+    [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil) image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"] color:[NCBrandColor sharedInstance].brandElement] backgroundColor:[NCBrandColor sharedInstance].backgroundView height: 50.0 type:AHKActionSheetButtonTypeDefault handler:^(AHKActionSheet *as) {
                                     
             [appDelegate.activeMain openWindowShare:metadata];
     }];
@@ -601,9 +601,9 @@
         if ([shareLink length] > 0 || [shareUserAndGroup length] > 0) {
             
             if ([shareLink length] > 0)
-                cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"shareLink"] color:[NCBrandColor sharedInstance].brandElement];
+                cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"sharebylink"] color:[NCBrandColor sharedInstance].gray];
             else
-                cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"] color:[NCBrandColor sharedInstance].brandElement];
+                cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"] color:[NCBrandColor sharedInstance].gray];
                 
             UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapActionConnectionMounted:)];
             [tap setNumberOfTapsRequired:1];

BIN
iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare.png


BIN
iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare@2x.png


BIN
iOSClient/Images.xcassets/actionSheetShare.imageset/actionSheetShare@3x.png


+ 3 - 3
iOSClient/Images.xcassets/shareLink.imageset/Contents.json → iOSClient/Images.xcassets/more.imageset/Contents.json

@@ -2,17 +2,17 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "shareLink.png",
+      "filename" : "more.png",
       "scale" : "1x"
     },
     {
       "idiom" : "universal",
-      "filename" : "shareLink@2x.png",
+      "filename" : "more@2x.png",
       "scale" : "2x"
     },
     {
       "idiom" : "universal",
-      "filename" : "shareLink@3x.png",
+      "filename" : "more@3x.png",
       "scale" : "3x"
     }
   ],

BIN
iOSClient/Images.xcassets/more.imageset/more.png


BIN
iOSClient/Images.xcassets/more.imageset/more@2x.png


BIN
iOSClient/Images.xcassets/more.imageset/more@3x.png


+ 3 - 3
iOSClient/Images.xcassets/actionSheetShare.imageset/Contents.json → iOSClient/Images.xcassets/share.imageset/Contents.json

@@ -2,17 +2,17 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "actionSheetShare.png",
+      "filename" : "share.png",
       "scale" : "1x"
     },
     {
       "idiom" : "universal",
-      "filename" : "actionSheetShare@2x.png",
+      "filename" : "share@2x.png",
       "scale" : "2x"
     },
     {
       "idiom" : "universal",
-      "filename" : "actionSheetShare@3x.png",
+      "filename" : "share@3x.png",
       "scale" : "3x"
     }
   ],

BIN
iOSClient/Images.xcassets/share.imageset/share.png


BIN
iOSClient/Images.xcassets/share.imageset/share@2x.png


BIN
iOSClient/Images.xcassets/share.imageset/share@3x.png


BIN
iOSClient/Images.xcassets/shareLink.imageset/shareLink.png


BIN
iOSClient/Images.xcassets/shareLink.imageset/shareLink@2x.png


BIN
iOSClient/Images.xcassets/shareLink.imageset/shareLink@3x.png


BIN
iOSClient/Images.xcassets/shareMounted.imageset/shareMounted.png


BIN
iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@2x.png


BIN
iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@3x.png


+ 23 - 0
iOSClient/Images.xcassets/sharebylink.imageset/Contents.json

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

BIN
iOSClient/Images.xcassets/sharebylink.imageset/sharebylink.png


BIN
iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@2x.png


BIN
iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@3x.png


+ 1 - 1
iOSClient/Library/MWPhotoBrowser/MWPhotoBrowser.m

@@ -178,7 +178,7 @@ static void * MWVideoPlayerObservation = &MWVideoPlayerObservation;
     }
     
     if (self.displayShareButton) {
-        _shareButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"actionSheetShare"] style:UIBarButtonItemStylePlain target:self action:@selector(shareButtonPressed:)];
+        _shareButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share"] style:UIBarButtonItemStylePlain target:self action:@selector(shareButtonPressed:)];
     }
     
     // Update

+ 1 - 1
iOSClient/Main/CCCellMain.h

@@ -31,7 +31,7 @@
 @property(nonatomic, weak) IBOutlet UIImageView *favorite;
 @property(nonatomic, weak) IBOutlet UIImageView *local;
 @property(nonatomic, weak) IBOutlet UIImageView *shared;
-@property(nonatomic, weak) IBOutlet UIImageView *threeDots;
+@property(nonatomic, weak) IBOutlet UIImageView *more;
 
 @property(nonatomic, weak) IBOutlet UILabel *labelTitle;
 @property(nonatomic, weak) IBOutlet UILabel *labelInfoFile;

+ 2 - 5
iOSClient/Main/CCCellMain.xib

@@ -65,7 +65,7 @@
                             <constraint firstAttribute="height" constant="15" id="Oxa-YI-vu7"/>
                         </constraints>
                     </imageView>
-                    <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="threedots" translatesAutoresizingMaskIntoConstraints="NO" id="aRp-Ql-cyA" userLabel="three dots">
+                    <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aRp-Ql-cyA" userLabel="More">
                         <rect key="frame" x="550" y="-1" width="42" height="60"/>
                         <constraints>
                             <constraint firstAttribute="height" constant="60" id="2ti-Wp-PzP"/>
@@ -103,14 +103,11 @@
                 <outlet property="labelInfoFile" destination="p7I-KN-FVZ" id="5Yb-hH-k73"/>
                 <outlet property="labelTitle" destination="QNC-8X-DAC" id="dFX-Cb-8IE"/>
                 <outlet property="local" destination="DQR-yN-JaH" id="LBA-Bm-Mz9"/>
+                <outlet property="more" destination="aRp-Ql-cyA" id="vbC-Za-UhD"/>
                 <outlet property="shared" destination="qhJ-el-R92" id="qXO-Vc-N0d"/>
                 <outlet property="status" destination="Fw2-NW-hsK" id="PjC-tV-ROx"/>
-                <outlet property="threeDots" destination="aRp-Ql-cyA" id="8EJ-bQ-REd"/>
             </connections>
             <point key="canvasLocation" x="415" y="169"/>
         </tableViewCell>
     </objects>
-    <resources>
-        <image name="threedots" width="25" height="25"/>
-    </resources>
 </document>

+ 1 - 1
iOSClient/Main/CCCellMainTransfer.h

@@ -31,7 +31,7 @@
 @property(nonatomic, weak) IBOutlet UIImageView *favorite;
 @property(nonatomic, weak) IBOutlet UIImageView *local;
 @property(nonatomic, weak) IBOutlet UIImageView *shared;
-@property(nonatomic, weak) IBOutlet UIImageView *threeDots;
+@property(nonatomic, weak) IBOutlet UIImageView *more;
 
 @property(nonatomic, weak) IBOutlet UILabel *labelTitle;
 @property(nonatomic, weak) IBOutlet UILabel *labelInfoFile;

+ 1 - 1
iOSClient/Main/CCDetail.m

@@ -198,7 +198,7 @@
     
     _buttonModifyTxt = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"actionSheetModify"] style:UIBarButtonItemStylePlain target:self action:@selector(modifyTxtButtonPressed:)];
     _buttonAction = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"actionSheetOpenIn"] style:UIBarButtonItemStylePlain target:self action:@selector(actionButtonPressed:)];
-    _buttonShare  = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"actionSheetShare"] style:UIBarButtonItemStylePlain target:self action:@selector(shareButtonPressed:)];
+    _buttonShare  = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share"] style:UIBarButtonItemStylePlain target:self action:@selector(shareButtonPressed:)];
     _buttonDelete = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemTrash target:self action:@selector(deleteButtonPressed:)];
     
     if ([_fileNameExtension isEqualToString:@"TXT"]) {

+ 13 - 11
iOSClient/Main/CCMain.m

@@ -3824,7 +3824,7 @@
         if (!lockDirectory && !isFolderEncrypted) {
             
             [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil)
-                                      image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"] color:[NCBrandColor sharedInstance].brandElement]
+                                      image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"] color:[NCBrandColor sharedInstance].brandElement]
                             backgroundColor:[NCBrandColor sharedInstance].backgroundView
                                      height:50.0
                                        type:AHKActionSheetButtonTypeDefault
@@ -4008,7 +4008,7 @@
         if (!_metadataFolder.e2eEncrypted) {
 
             [actionSheet addButtonWithTitle:NSLocalizedString(@"_share_", nil)
-                                      image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"]color:[NCBrandColor sharedInstance].brandElement]
+                                      image:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"]color:[NCBrandColor sharedInstance].brandElement]
                                 backgroundColor:[NCBrandColor sharedInstance].backgroundView
                                         height: 50.0
                                         type:AHKActionSheetButtonTypeDefault
@@ -4665,7 +4665,7 @@
                 cell.accessoryType = UITableViewCellAccessoryNone;
             }
             
-            cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"] color:[NCBrandColor sharedInstance].brandElement];
+            cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"] color:[NCBrandColor sharedInstance].gray];
             
             UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapActionConnectionMounted:)];
             [tap setNumberOfTapsRequired:1];
@@ -4683,7 +4683,7 @@
                 cell.accessoryType = UITableViewCellAccessoryNone;
             }
                 
-            cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"shareMounted"] color:[NCBrandColor sharedInstance].brandElement];
+            cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"shareMounted"] color:[NCBrandColor sharedInstance].gray];
                 
             UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapActionConnectionMounted:)];
             [tap setNumberOfTapsRequired:1];
@@ -4709,9 +4709,9 @@
             } else {
                 
                 if ([shareLink length] > 0) {
-                    cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"shareLink"] color:[NCBrandColor sharedInstance].brandElement];
+                    cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"sharebylink"] color:[NCBrandColor sharedInstance].gray];
                 } if ([shareUserAndGroup length] > 0) {
-                    cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"actionSheetShare"] color:[NCBrandColor sharedInstance].brandElement];
+                    cell.shared.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"share"] color:[NCBrandColor sharedInstance].gray];
                 }
                 
                 UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapActionShared:)];
@@ -4878,15 +4878,17 @@
     }
     
     // ----------------------------------------------------------------------------------------------------------
-    // 3 Dots
+    // More : 3 Dots
     // ----------------------------------------------------------------------------------------------------------
     
+    cell.more.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"more"] color:[NCBrandColor sharedInstance].gray];
+    
     if ([self canOpenMenuAction:metadata]) {
     
-        UITapGestureRecognizer *tapThreeDots = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(actionMore:)];
-        [tapThreeDots setNumberOfTapsRequired:1];
-        cell.threeDots.userInteractionEnabled = YES;
-        [cell.threeDots addGestureRecognizer:tapThreeDots];
+        UITapGestureRecognizer *tapMore = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(actionMore:)];
+        [tapMore setNumberOfTapsRequired:1];
+        cell.more.userInteractionEnabled = YES;
+        [cell.more addGestureRecognizer:tapMore];
     }
     
     return cell;