Marino Faggiana 8 лет назад
Родитель
Сommit
40e5edcf7b
30 измененных файлов с 138 добавлено и 17 удалено
  1. 6 0
      iOSClient/CCStandardImages.h
  2. 17 17
      iOSClient/Create/CCCreateCloud.swift
  3. 23 0
      iOSClient/Images.xcassets/menuCreateFolder.imageset/Contents.json
  4. BIN
      iOSClient/Images.xcassets/menuCreateFolder.imageset/menuCreateFolder.png
  5. BIN
      iOSClient/Images.xcassets/menuCreateFolder.imageset/menuCreateFolder@2x.png
  6. BIN
      iOSClient/Images.xcassets/menuCreateFolder.imageset/menuCreateFolder@3x.png
  7. 0 0
      iOSClient/Images.xcassets/menuTemplate.imageset/Contents.json
  8. 0 0
      iOSClient/Images.xcassets/menuTemplate.imageset/template@1x.png
  9. 0 0
      iOSClient/Images.xcassets/menuTemplate.imageset/template@2x.png
  10. 0 0
      iOSClient/Images.xcassets/menuTemplate.imageset/template@3x.png
  11. 23 0
      iOSClient/Images.xcassets/menuUploadFile.imageset/Contents.json
  12. BIN
      iOSClient/Images.xcassets/menuUploadFile.imageset/menuUploadFile.png
  13. BIN
      iOSClient/Images.xcassets/menuUploadFile.imageset/menuUploadFile@2x.png
  14. BIN
      iOSClient/Images.xcassets/menuUploadFile.imageset/menuUploadFile@3x.png
  15. 0 0
      iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/Contents.json
  16. 0 0
      iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto.png
  17. 0 0
      iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto@2x.png
  18. 0 0
      iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto@3x.png
  19. 23 0
      iOSClient/Images.xcassets/menuUploadPhoto.imageset/Contents.json
  20. BIN
      iOSClient/Images.xcassets/menuUploadPhoto.imageset/menuUploadPhoto.png
  21. BIN
      iOSClient/Images.xcassets/menuUploadPhoto.imageset/menuUploadPhoto@2x.png
  22. BIN
      iOSClient/Images.xcassets/menuUploadPhoto.imageset/menuUploadPhoto@3x.png
  23. 23 0
      iOSClient/Images.xcassets/menuUploadPlainMode.imageset/Contents.json
  24. BIN
      iOSClient/Images.xcassets/menuUploadPlainMode.imageset/menuUploadPlainMode.png
  25. BIN
      iOSClient/Images.xcassets/menuUploadPlainMode.imageset/menuUploadPlainMode@2x.png
  26. BIN
      iOSClient/Images.xcassets/menuUploadPlainMode.imageset/menuUploadPlainMode@3x.png
  27. 23 0
      iOSClient/Images.xcassets/templateWebAccount.imageset/Contents.json
  28. BIN
      iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount.png
  29. BIN
      iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount@2x.png
  30. BIN
      iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount@3x.png

+ 6 - 0
iOSClient/CCStandardImages.h

@@ -70,6 +70,7 @@
 
 #define image_lock                              @"lock"
 
+#define image_MenuCreateFolder                  @"menuCreateFolder"
 #define image_MenuDirectoryOnTop                @"menuDirectoryOnTop"
 #define image_MenuGroupByAlphabetic             @"MenuGroupByAlphabetic"
 #define image_MenuGroupByDate                   @"MenuGroupByDate"
@@ -78,6 +79,11 @@
 #define image_MenuOrderByFileName               @"MenuOrderByFileName"
 #define image_MenuOrdinamentoDiscendente        @"MenuOrdinamentoDiscendente"
 #define image_MenuOrdinamentoAscendente         @"MenuOrdinamentoAscendente"
+#define image_MenuTemplate                      @"menuTemplate"
+#define image_MenuUploadFile                    @"menuUploadFile"
+#define image_MenuUploadFileCrypto              @"menuUploadFileCrypto"
+#define image_MenuUploadPhoto                   @"menuUploadPhoto"
+#define image_MenuUploadPlainMode               @"menuUploadPlainMode"
 #define image_moveSelectedFiles                 @"moveSelectedFiles"
 #define image_more                              @"more"
 #define image_movie                             @"movie"

+ 17 - 17
iOSClient/Create/CCCreateCloud.swift

@@ -27,10 +27,10 @@ import Foundation
 
 class CreateMenuAdd: NSObject {
     
-    let fontButton = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 14)!, NSForegroundColorAttributeName:UIColor(colorLiteralRed: 65.0/255.0, green: 64.0/255.0, blue: 66.0/255.0, alpha: 1.0)]
-    let fontEncrypted = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 14)!, NSForegroundColorAttributeName:UIColor(colorLiteralRed: 241.0/255.0, green: 90.0/255.0, blue: 34.0/255.0, alpha: 1.0)]
-    let fontCancel = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 16)!, NSForegroundColorAttributeName:UIColor(colorLiteralRed: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)]
-    let fontDisable = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 12)!, NSForegroundColorAttributeName:UIColor(colorLiteralRed: 65.0/255.0, green: 64.0/255.0, blue: 66.0/255.0, alpha: 1.0)]
+    let fontButton = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 14)!, NSForegroundColorAttributeName: UIColor(colorLiteralRed: 65.0/255.0, green: 64.0/255.0, blue: 66.0/255.0, alpha: 1.0)]
+    let fontEncrypted = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 14)!, NSForegroundColorAttributeName: Constant.GlobalConstants.k_Color_Cryptocloud]
+    let fontCancel = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 16)!, NSForegroundColorAttributeName: Constant.GlobalConstants.k_Color_NavigationBar]
+    let fontDisable = [NSFontAttributeName:UIFont(name: "HelveticaNeue", size: 12)!, NSForegroundColorAttributeName: UIColor(colorLiteralRed: 65.0/255.0, green: 64.0/255.0, blue: 66.0/255.0, alpha: 1.0)]
 
     let colorLightGray = UIColor(colorLiteralRed: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
     
@@ -49,7 +49,7 @@ class CreateMenuAdd: NSObject {
         actionSheet.cancelButtonHeight = 50.0
         actionSheet.separatorHeight = 5.0
         
-        actionSheet.separatorColor = UIColor(colorLiteralRed: 153.0/255.0, green: 153.0/255.0, blue: 153.0/255.0, alpha: 0.2)
+        actionSheet.separatorColor = Constant.GlobalConstants.k_Color_Seperator
         
         actionSheet.buttonTextAttributes = fontButton
         actionSheet.encryptedButtonTextAttributes = fontEncrypted
@@ -58,21 +58,21 @@ class CreateMenuAdd: NSObject {
         
         actionSheet.cancelButtonTitle = NSLocalizedString("_cancel_", comment: "")
 
-        actionSheet.addButton(withTitle: NSLocalizedString("_create_folder_", comment: ""), image: UIImage(named: "createFolderNextcloud"), backgroundColor: UIColor.white, height: 50.0 ,type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_create_folder_", comment: ""), image: UIImage(named: image_MenuCreateFolder), backgroundColor: UIColor.white, height: 50.0 ,type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFolderPlain))
         })
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: UIImage(named: "uploadPhotoNextcloud"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: UIImage(named: image_MenuUploadPhoto), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFotoVideoPlain))
         })
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: UIImage(named: "uploadFileNextcloud"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: UIImage(named: image_MenuUploadFile), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFilePlain))
         })
         
         if appDelegate.isCryptoCloudMode {
         
-            actionSheet.addButton(withTitle: NSLocalizedString("_upload_encrypted_mode", comment: ""), image: UIImage(named: "actionSheetLock"), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+            actionSheet.addButton(withTitle: NSLocalizedString("_upload_encrypted_mode", comment: ""), image: UIImage(named: image_actionSheetLock), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
                 self.createMenuEncrypted(view: view)
             })
         }
@@ -95,7 +95,7 @@ class CreateMenuAdd: NSObject {
         actionSheet.cancelButtonHeight = 50.0
         actionSheet.separatorHeight = 5.0
         
-        actionSheet.separatorColor = UIColor(colorLiteralRed: 153.0/255.0, green: 153.0/255.0, blue: 153.0/255.0, alpha: 0.2)
+        actionSheet.separatorColor = Constant.GlobalConstants.k_Color_Seperator
 
         actionSheet.buttonTextAttributes = fontButton
         actionSheet.encryptedButtonTextAttributes = fontEncrypted
@@ -104,23 +104,23 @@ class CreateMenuAdd: NSObject {
         
         actionSheet.cancelButtonTitle = NSLocalizedString("_cancel_", comment: "")
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_create_folder_", comment: ""), image: UIImage(named: "foldercrypto"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_create_folder_", comment: ""), image: UIImage(named: image_foldercrypto), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFolderEncrypted))
         })
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: UIImage(named: "photocrypto"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_photos_videos_", comment: ""), image: UIImage(named: image_photocrypto), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFotoVideoEncrypted))
         })
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: UIImage(named: "importCloudCrypto"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_file_", comment: ""), image: UIImage(named: image_MenuUploadFileCrypto), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnCreateFileEncrypted))
         })
 
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_template_", comment: ""), image: UIImage(named: "template"), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_template_", comment: ""), image: UIImage(named: image_MenuTemplate), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
             self.createMenuTemplate(view: view)
         })
 
-        actionSheet.addButton(withTitle: NSLocalizedString("_upload_plain_mode", comment: ""), image: UIImage(named: "uploadPlainModeNextcloud"), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_upload_plain_mode", comment: ""), image: UIImage(named: image_MenuUploadPlainMode), backgroundColor: colorLightGray, height: 50.0, type: AHKActionSheetButtonType.default, handler: {(AHKActionSheet) -> Void in
             self.createMenuPlain(view: view)
         })
         
@@ -143,7 +143,7 @@ class CreateMenuAdd: NSObject {
         actionSheet.cancelButtonHeight = 50.0
         actionSheet.separatorHeight = 5.0
         
-        actionSheet.separatorColor = UIColor(colorLiteralRed: 153.0/255.0, green: 153.0/255.0, blue: 153.0/255.0, alpha: 0.2)
+        actionSheet.separatorColor = Constant.GlobalConstants.k_Color_Seperator
 
         actionSheet.buttonTextAttributes = fontButton
         actionSheet.encryptedButtonTextAttributes = fontEncrypted
@@ -156,7 +156,7 @@ class CreateMenuAdd: NSObject {
             appDelegate.activeMain.returnCreate(Int(k_returnNote))
         })
         
-        actionSheet.addButton(withTitle: NSLocalizedString("_add_web_account_", comment: ""), image: UIImage(named: "baseurl"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
+        actionSheet.addButton(withTitle: NSLocalizedString("_add_web_account_", comment: ""), image: UIImage(named: "templateWebAccount"), backgroundColor: UIColor.white, height: 50.0, type: AHKActionSheetButtonType.encrypted, handler: {(AHKActionSheet) -> Void in
             appDelegate.activeMain.returnCreate(Int(k_returnAccountWeb))
         })
         

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

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

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


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


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


+ 0 - 0
iOSClient/Images.xcassets/template.imageset/Contents.json → iOSClient/Images.xcassets/menuTemplate.imageset/Contents.json


+ 0 - 0
iOSClient/Images.xcassets/template.imageset/template@1x.png → iOSClient/Images.xcassets/menuTemplate.imageset/template@1x.png


+ 0 - 0
iOSClient/Images.xcassets/template.imageset/template@2x.png → iOSClient/Images.xcassets/menuTemplate.imageset/template@2x.png


+ 0 - 0
iOSClient/Images.xcassets/template.imageset/template@3x.png → iOSClient/Images.xcassets/menuTemplate.imageset/template@3x.png


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

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

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


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


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


+ 0 - 0
iOSClient/Images.xcassets/importCloudCrypto.imageset/Contents.json → iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/Contents.json


+ 0 - 0
iOSClient/Images.xcassets/importCloudCrypto.imageset/importCloudCrypto.png → iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto.png


+ 0 - 0
iOSClient/Images.xcassets/importCloudCrypto.imageset/importCloudCrypto@2x.png → iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto@2x.png


+ 0 - 0
iOSClient/Images.xcassets/importCloudCrypto.imageset/importCloudCrypto@3x.png → iOSClient/Images.xcassets/menuUploadFileCrypto.imageset/importCloudCrypto@3x.png


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

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

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


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


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


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

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

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


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


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


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

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

BIN
iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount.png


BIN
iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount@2x.png


BIN
iOSClient/Images.xcassets/templateWebAccount.imageset/webaccount@3x.png