瀏覽代碼

improved UINavigationBarAppearance

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
cdc9354918
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      iOSClient/Main/NCMainNavigationController.swift

+ 3 - 3
iOSClient/Main/NCMainNavigationController.swift

@@ -33,15 +33,15 @@ class NCMainNavigationController: UINavigationController {
         navigationBar.tintColor = .systemBlue
 
         let standardAppearance = UINavigationBarAppearance()
+        standardAppearance.configureWithDefaultBackground()
 
-        standardAppearance.configureWithOpaqueBackground()
         standardAppearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label]
-        standardAppearance.configureWithOpaqueBackground()
         standardAppearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.label]
-        standardAppearance.backgroundColor = .systemGroupedBackground
+        standardAppearance.backgroundColor = NCBrandColor.shared.defaultNavigationBar
         navigationBar.standardAppearance = standardAppearance
 
         let scrollEdgeAppearance = UINavigationBarAppearance()
+        scrollEdgeAppearance.configureWithDefaultBackground()
 
         scrollEdgeAppearance.backgroundColor = .systemBackground
         scrollEdgeAppearance.shadowColor = .clear