marinofaggiana 5 жил өмнө
parent
commit
3bca036d35

+ 3 - 3
iOSClient/Viewer/NCViewerImage/NCViewerImageCommon.swift

@@ -109,18 +109,18 @@ class NCViewerImageCommon: NSObject {
     func getImageOffOutline(frame: CGRect, type: String) -> UIImage {
         
         if type == k_metadataTypeFile_video {
-            let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "video"), width: frame.width, height: frame.width, color: NCBrandColor.sharedInstance.brand)
+            let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "video"), width: frame.width/2, height: frame.width/2, color: NCBrandColor.sharedInstance.brand)
             
             return image!
         }
         
         if type == k_metadataTypeFile_audio {
-            let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "audio"), width: frame.width, height: frame.width, color: NCBrandColor.sharedInstance.brand)
+            let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "audio"), width: frame.width/2, height: frame.width/2, color: NCBrandColor.sharedInstance.brand)
             
             return image!
         }
         
-        let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: frame.width, height: frame.width, color: NCBrandColor.sharedInstance.brand)
+        let image = CCGraphics.changeThemingColorImage(UIImage.init(named: "imageOffOutline"), width: frame.width/2, height: frame.width/2, color: NCBrandColor.sharedInstance.brand)
 
         return image!
     }

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImageVideo.swift

@@ -42,7 +42,7 @@ class NCViewerImageVideo: UIViewController {
         
         view.backgroundColor = .black
         closeView.layer.cornerRadius = 7
-        let image = CCGraphics.changeThemingColorImage(UIImage(named: "exit"), width: 50, height: 50, color: .white)
+        let image = CCGraphics.changeThemingColorImage(UIImage(named: "exit"), width: 50, height: 50, color: .black)
         closeButton.setImage(image, for: .normal)
         
         let frame = CGRect(x: 0, y: 0, width: self.backgroundView.frame.width, height: self.backgroundView.frame.height)