Quellcode durchsuchen

disable special drawings of the titlebar for now

the online/offline "shadow" is not used in all viewcontrollers
and is not always in sync with the current state.
also onboarding is a bit weird.
so, if we really want to use such an indiactor,
this would require some more investigation.
also, with the commands commented out by this commit,
for some reasons, the opaque-look-n-feel is not ios-ish
and has additional problems in dark-mode.
B. Petersen vor 5 Jahren
Ursprung
Commit
e1bd64ffba
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      deltachat-ios/Controller/DcNavigationController.swift

+ 4 - 2
deltachat-ios/Controller/DcNavigationController.swift

@@ -10,13 +10,14 @@ final class DcNavigationController: UINavigationController {
         if #available(iOS 11.0, *) {
             // preferred height of navigation bar title is configured in ViewControllers
         } else {
-            navigationBar.setBackgroundImage(UIImage(), for: .default)
+            //navigationBar.setBackgroundImage(UIImage(), for: .default)
         }
-        navigationBar.backgroundColor = .white
+        //navigationBar.backgroundColor = .white
         setShadow(nil)
     }
 
     private func setShadow(_ state: String?) {
+        /*
         switch state {
         case "offline":
             navigationBar.shadowImage = Constants.defaultShadow
@@ -25,6 +26,7 @@ final class DcNavigationController: UINavigationController {
         default:
             navigationBar.shadowImage = Constants.defaultShadow
         }
+        */
     }
 
     override func viewWillAppear(_ animated: Bool) {