marinofaggiana 6 years ago
parent
commit
bfe7a3cf55
30 changed files with 153 additions and 91 deletions
  1. 15 0
      iOSClient/Images.xcassets/closeCircle.imageset/Contents.json
  2. 51 0
      iOSClient/Images.xcassets/closeCircle.imageset/closeCircle.pdf
  3. 15 0
      iOSClient/Images.xcassets/details.imageset/Contents.json
  4. BIN
      iOSClient/Images.xcassets/details.imageset/details.pdf
  5. 4 12
      iOSClient/Images.xcassets/exit.imageset/Contents.json
  6. 51 0
      iOSClient/Images.xcassets/exit.imageset/exit.pdf
  7. BIN
      iOSClient/Images.xcassets/exit.imageset/exit.png
  8. BIN
      iOSClient/Images.xcassets/exit.imageset/exit@2x.png
  9. BIN
      iOSClient/Images.xcassets/exit.imageset/exit@3x.png
  10. 0 23
      iOSClient/Images.xcassets/no_red.imageset/Contents.json
  11. BIN
      iOSClient/Images.xcassets/no_red.imageset/no_red.png
  12. BIN
      iOSClient/Images.xcassets/no_red.imageset/no_red@2x.png
  13. BIN
      iOSClient/Images.xcassets/no_red.imageset/no_red@3x.png
  14. 0 23
      iOSClient/Images.xcassets/ok_green.imageset/Contents.json
  15. BIN
      iOSClient/Images.xcassets/ok_green.imageset/ok_green.png
  16. BIN
      iOSClient/Images.xcassets/ok_green.imageset/ok_green@2x.png
  17. BIN
      iOSClient/Images.xcassets/ok_green.imageset/ok_green@3x.png
  18. 4 12
      iOSClient/Images.xcassets/shareMounted.imageset/Contents.json
  19. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted.pdf
  20. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted.png
  21. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@2x.png
  22. BIN
      iOSClient/Images.xcassets/shareMounted.imageset/shareMounted@3x.png
  23. 4 12
      iOSClient/Images.xcassets/sharebylink.imageset/Contents.json
  24. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink.pdf
  25. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink.png
  26. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@2x.png
  27. BIN
      iOSClient/Images.xcassets/sharebylink.imageset/sharebylink@3x.png
  28. 6 6
      iOSClient/Main/NCMainCommon.swift
  29. 1 1
      iOSClient/Settings/CCAdvanced.m
  30. 2 2
      iOSClient/Settings/NCManageEndToEndEncryption.m

+ 15 - 0
iOSClient/Images.xcassets/closeCircle.imageset/Contents.json

@@ -0,0 +1,15 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "closeCircle.pdf"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
+  }
+}

+ 51 - 0
iOSClient/Images.xcassets/closeCircle.imageset/closeCircle.pdf

@@ -0,0 +1,51 @@
+%PDF-1.4
+%Óëéá
+1 0 obj
+<</Creator (Chromium)
+/Producer (Skia/PDF m66)
+/CreationDate (D:20190307161004+00'00')
+/ModDate (D:20190307161004+00'00')>>
+endobj
+2 0 obj
+<</Filter /FlateDecode
+/Length 172>> stream
+xœ]ŽKÂ0D÷>…×H;mH{Ö¬8@Åg‘"÷—HMµÍxÞL¢,X[ŧái¦ÉWØû<ÓiÃwL5†Tᶼ;__ð8òLšCBH*FÞ‡>CIgÈDöoŒ£«�øËxú×àZ[ó°5…4Ú,r¶Á�6)4„^F<ÜB™]È�«ëÊ|T-kÍ�O/ìÇ_Å\Ûuu¸¿w¡]èˆõè\O[
+endstream
+endobj
+3 0 obj
+<</Type /Catalog
+/Pages 4 0 R>>
+endobj
+4 0 obj
+<</Type /Pages
+/Count 1
+/Kids [5 0 R]>>
+endobj
+5 0 obj
+<</Type /Page
+/Resources <</ProcSets [/PDF /Text /ImageB /ImageC /ImageI]
+/ExtGState <</G0 6 0 R>>>>
+/MediaBox [0 0 300 300]
+/Contents 2 0 R
+/Parent 4 0 R>>
+endobj
+6 0 obj
+<</ca 1
+/BM /Normal>>
+endobj
+xref
+0 7
+0000000000 65535 f 
+0000000015 00000 n 
+0000000154 00000 n 
+0000000396 00000 n 
+0000000443 00000 n 
+0000000498 00000 n 
+0000000670 00000 n 
+trailer
+<</Size 7
+/Root 3 0 R
+/Info 1 0 R>>
+startxref
+707
+%%EOF

+ 15 - 0
iOSClient/Images.xcassets/details.imageset/Contents.json

@@ -0,0 +1,15 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "details.pdf"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
+  }
+}

BIN
iOSClient/Images.xcassets/details.imageset/details.pdf


+ 4 - 12
iOSClient/Images.xcassets/exit.imageset/Contents.json

@@ -2,22 +2,14 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "exit.png",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "exit@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "exit@3x.png",
-      "scale" : "3x"
+      "filename" : "exit.pdf"
     }
   ],
   "info" : {
     "version" : 1,
     "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
   }
 }

+ 51 - 0
iOSClient/Images.xcassets/exit.imageset/exit.pdf

@@ -0,0 +1,51 @@
+%PDF-1.4
+%Óëéá
+1 0 obj
+<</Creator (Chromium)
+/Producer (Skia/PDF m66)
+/CreationDate (D:20190307154558+00'00')
+/ModDate (D:20190307154558+00'00')>>
+endobj
+2 0 obj
+<</Filter /FlateDecode
+/Length 137>> stream
+xœUNË!¼ÏWôl²ØÂÊÂxöäl|Xõÿ[Ô…m™ig„X{½3Ížà±óºà¼£‡N%¹éPÕ
©|dº½!#‰wêÐò´ #º*H”]ÌVIYXq]ŠËÚlqÅæñ6	5›åÇÎÙÅT:’éÚÒw¼yïŽ+NÚOÇ6
+endstream
+endobj
+3 0 obj
+<</Type /Catalog
+/Pages 4 0 R>>
+endobj
+4 0 obj
+<</Type /Pages
+/Count 1
+/Kids [5 0 R]>>
+endobj
+5 0 obj
+<</Type /Page
+/Resources <</ProcSets [/PDF /Text /ImageB /ImageC /ImageI]
+/ExtGState <</G0 6 0 R>>>>
+/MediaBox [0 0 300 300]
+/Contents 2 0 R
+/Parent 4 0 R>>
+endobj
+6 0 obj
+<</ca 1
+/BM /Normal>>
+endobj
+xref
+0 7
+0000000000 65535 f 
+0000000015 00000 n 
+0000000154 00000 n 
+0000000361 00000 n 
+0000000408 00000 n 
+0000000463 00000 n 
+0000000635 00000 n 
+trailer
+<</Size 7
+/Root 3 0 R
+/Info 1 0 R>>
+startxref
+672
+%%EOF

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


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


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


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

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

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


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


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


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

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

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


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


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


+ 4 - 12
iOSClient/Images.xcassets/shareMounted.imageset/Contents.json

@@ -2,22 +2,14 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "shareMounted.png",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "shareMounted@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "shareMounted@3x.png",
-      "scale" : "3x"
+      "filename" : "shareMounted.pdf"
     }
   ],
   "info" : {
     "version" : 1,
     "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
   }
 }

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


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


+ 4 - 12
iOSClient/Images.xcassets/sharebylink.imageset/Contents.json

@@ -2,22 +2,14 @@
   "images" : [
     {
       "idiom" : "universal",
-      "filename" : "sharebylink.png",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "sharebylink@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "sharebylink@3x.png",
-      "scale" : "3x"
+      "filename" : "sharebylink.pdf"
     }
   ],
   "info" : {
     "version" : 1,
     "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
   }
 }

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


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


+ 6 - 6
iOSClient/Main/NCMainCommon.swift

@@ -307,10 +307,10 @@ class NCMainCommon: NSObject, PhotoEditorDelegate {
                     cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (isMounted) {
-                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (sharesLink != nil) {
-                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (sharesUserAndGroup != nil) {
                     cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
@@ -418,10 +418,10 @@ class NCMainCommon: NSObject, PhotoEditorDelegate {
                     cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (isMounted) {
-                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (sharesLink != nil) {
-                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                     cell.hide(buttonMore: hideButtonMore, hideImageShare: false)
                 } else if (sharesUserAndGroup != nil) {
                     cell.imageShare.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
@@ -615,9 +615,9 @@ class NCMainCommon: NSObject, PhotoEditorDelegate {
                 if (isShare) {
                     cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                 } else if (isMounted) {
-                    cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "shareMounted"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                 } else if (sharesLink != nil) {
-                    cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+                    cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "sharebylink"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                 } else if (sharesUserAndGroup != nil) {
                     cell.shared.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "share"), width: 50, height: 50, color: NCBrandColor.sharedInstance.optionItem)
                 }

+ 1 - 1
iOSClient/Settings/CCAdvanced.m

@@ -112,7 +112,7 @@
     [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
     [row.cellConfig setObject:[UIColor redColor] forKey:@"textLabel.textColor"];
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
-    [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"exit"] multiplier:2 color:[UIColor redColor]] forKey:@"imageView.image"];
+    [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"exit"] width:50 height:50 color:[UIColor redColor]] forKey:@"imageView.image"];
     row.action.formSelector = @selector(exitNextcloud:);
     [section addFormRow:row];
 

+ 2 - 2
iOSClient/Settings/NCManageEndToEndEncryption.m

@@ -80,7 +80,7 @@
         [form addFormSection:section];
         
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"serviceActivated" rowType:XLFormRowDescriptorTypeInfo title:NSLocalizedString(@"_e2e_settings_not_available_", nil)];
-        [row.cellConfig setObject:[UIImage imageNamed:@"no_red"] forKey:@"imageView.image"];
+        [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"closeCircle"] width:50 height:50 color:[UIColor redColor]] forKey:@"imageView.image"];
         [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
         [row.cellConfig setObject:[UIColor blackColor] forKey:@"textLabel.textColor"];
         [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
@@ -99,7 +99,7 @@
         [form addFormSection:section];
         
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"serviceActivated" rowType:XLFormRowDescriptorTypeInfo title:NSLocalizedString(@"_e2e_settings_activated_", nil)];
-        [row.cellConfig setObject:[UIImage imageNamed:@"ok_green"] forKey:@"imageView.image"];
+        [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"selectFull"] width:50 height:50 color:[UIColor greenColor]] forKey:@"imageView.image"];
         [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
         [row.cellConfig setObject:[UIColor blackColor] forKey:@"textLabel.textColor"];
         [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];