marinofaggiana 5 years ago
parent
commit
33f3ef2fbd

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

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

+ 52 - 0
iOSClient/Images.xcassets/imageOffOutline.imageset/Untitled.pdf

@@ -0,0 +1,52 @@
+%PDF-1.4
+%Óëéá
+1 0 obj
+<</Creator (Mozilla/5.0 \(Macintosh; Intel Mac OS X 10_15_3\) AppleWebKit/537.36 \(KHTML, like Gecko\) BoxySVG/3.33.4 Chrome/73.0.3683.121 Electron/5.0.13 Safari/537.36)
+/Producer (Skia/PDF m73)
+/CreationDate (D:20200229113530+00'00')
+/ModDate (D:20200229113530+00'00')>>
+endobj
+3 0 obj
+<</ca 1
+/BM /Normal>>
+endobj
+4 0 obj
+<</Filter /FlateDecode
+/Length 320>> stream
+xœu’ARÃ0E÷>EÖÌ ,[–ätÍŠt€MÊpÿ¾Õ†¸¥$‹ÈÏö×ÿv¨ÔÏ’ñ>Ò4”Ò(cèËñ”>Ó˜g³L^k�ª¯×ôò°|`…U2+Z×#H<êòþ�¸‘±G”%3*[NÉÉ´åœëâT]A‹3(ƒZ÷˜T[	‰N¬Ú‡É™²P3Åâr‹!¥£2,hÃDåÂ�j·¨&xLØæ*·|IJÕ0‡R‡¹�ßI¸¦I~÷wšp§žÏN!R¨YðA<ÌÊ`Lªp\ÇŽKhÆ5x)¬•,¿ÍLûÙ[%—‘ZÇrì�ÎrÃ…˜ûßûëùÜu\d:Iü4Ž(ÀY‡«nئY.78aü[<²¶	�ÓGÓ};Ún­ŽiÂÒ¹îA¶~àl—|Åw™‚¬é-=ãý�ã
+endstream
+endobj
+2 0 obj
+<</Type /Page
+/Resources <</ProcSets [/PDF /Text /ImageB /ImageC /ImageI]
+/ExtGState <</G3 3 0 R>>>>
+/MediaBox [0 0 425.03998 425.03998]
+/Contents 4 0 R
+/StructParents 0
+/Parent 5 0 R>>
+endobj
+5 0 obj
+<</Type /Pages
+/Count 1
+/Kids [2 0 R]>>
+endobj
+6 0 obj
+<</Type /Catalog
+/Pages 5 0 R>>
+endobj
+xref
+0 7
+0000000000 65535 f 
+0000000015 00000 n 
+0000000729 00000 n 
+0000000302 00000 n 
+0000000339 00000 n 
+0000000930 00000 n 
+0000000985 00000 n 
+trailer
+<</Size 7
+/Root 6 0 R
+/Info 1 0 R>>
+startxref
+1032
+%%EOF

+ 3 - 2
iOSClient/Main/NCDetailViewController.swift

@@ -317,10 +317,11 @@ class NCDetailViewController: UIViewController, MediaBrowserViewControllerDelega
                     try data!.write(to: url, options: .atomic)
                     completion(index, UIImage.init(data: data!), ZoomScale.default, nil)
                 } catch {
-                    completion(index, UIImage.init(named: "logo"), ZoomScale.default, nil)
                 }
             } else {
-                completion(index, UIImage.init(named: "logo"), ZoomScale.default, nil)
+                let size = self.backgroundView.frame.width
+                let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: size, height: size, color: NCBrandColor.sharedInstance.brand)
+                completion(index, image, ZoomScale.default, nil)
             }
         }
     }