marinofaggiana 3 years ago
parent
commit
fb2d3b8bd2

+ 3 - 14
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -154,21 +154,11 @@ class NCViewerMedia: UIViewController {
             navigationController?.setNavigationBarHidden(false, animated: true)
             progressView.isHidden = false
 
-            // show playerToolBar
             currentViewController.playerToolBar.showToolBar(metadata: currentViewController.metadata, detailView: currentViewController.detailView)
             
-            if (!currentViewController.metadata.livePhoto && currentViewController.metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue) {
-                
-                NCUtility.shared.colorNavigationController(navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil)
-                view.backgroundColor = .black
-                textColor = .white
-                
-            } else {
-                
-                NCUtility.shared.colorNavigationController(navigationController, backgroundColor: NCBrandColor.shared.systemBackground, titleColor: NCBrandColor.shared.label, tintColor: nil)
-                view.backgroundColor = NCBrandColor.shared.systemBackground
-                textColor = NCBrandColor.shared.label
-            }
+            NCUtility.shared.colorNavigationController(navigationController, backgroundColor: NCBrandColor.shared.systemBackground, titleColor: NCBrandColor.shared.label, tintColor: nil)
+            view.backgroundColor = NCBrandColor.shared.systemBackground
+            textColor = NCBrandColor.shared.label
             
             currentMode = .normal
             
@@ -180,7 +170,6 @@ class NCViewerMedia: UIViewController {
             currentViewController.playerToolBar.hideToolBar()
 
             NCUtility.shared.colorNavigationController(navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil)
-            
             view.backgroundColor = .black
             textColor = .white
                         

+ 4 - 13
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -124,20 +124,11 @@ class NCViewerMediaZoom: UIViewController {
         } else {
             
             viewerMedia?.navigationController?.setNavigationBarHidden(false, animated: true)
-            
-            if (!metadata.livePhoto && metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue) {
-                
-                NCUtility.shared.colorNavigationController(viewerMedia?.navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil)
-                viewerMedia?.view.backgroundColor = .black
-                viewerMedia?.textColor = .white
-                
-            } else {
                 
-                NCUtility.shared.colorNavigationController(viewerMedia?.navigationController, backgroundColor: NCBrandColor.shared.systemBackground, titleColor: NCBrandColor.shared.label, tintColor: nil)
-                viewerMedia?.view.backgroundColor = NCBrandColor.shared.systemBackground
-                viewerMedia?.textColor = NCBrandColor.shared.label
-            }
-
+            NCUtility.shared.colorNavigationController(viewerMedia?.navigationController, backgroundColor: NCBrandColor.shared.systemBackground, titleColor: NCBrandColor.shared.label, tintColor: nil)
+            
+            viewerMedia?.view.backgroundColor = NCBrandColor.shared.systemBackground
+            viewerMedia?.textColor = NCBrandColor.shared.label
             viewerMedia?.progressView.isHidden = false
         }
     }