marinofaggiana 3 years ago
parent
commit
e83ab839b8

+ 3 - 1
iOSClient/Utility/NCUtility.swift

@@ -712,8 +712,8 @@ class NCUtility: NSObject {
         
         if #available(iOS 13.0, *) {
             
+            // iOS 14, 15
             let appearance = UINavigationBarAppearance()
-//            appearance.configureWithTransparentBackground()
             appearance.titleTextAttributes = [.foregroundColor: titleColor]
             appearance.largeTitleTextAttributes = [.foregroundColor: titleColor]
             
@@ -725,7 +725,9 @@ class NCUtility: NSObject {
             if let tintColor = tintColor {
                 navigationController?.navigationBar.tintColor = tintColor
             }
+
             navigationController?.view.backgroundColor = backgroundColor
+            navigationController?.navigationBar.barTintColor = titleColor
             navigationController?.navigationBar.standardAppearance = appearance
             navigationController?.navigationBar.compactAppearance = appearance
             navigationController?.navigationBar.scrollEdgeAppearance = appearance

+ 0 - 1
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -168,7 +168,6 @@ class NCViewerMedia: UIViewController {
             
             currentViewController.playerToolBar.hideToolBar()
 
-            NCUtility.shared.colorNavigationController(navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil, withoutShadow: false)
             view.backgroundColor = .black
             textColor = .white
         }