Эх сурвалжийг харах

use correct height for title bar, according to https://learnui.design/blog/ios-font-size-guidelines.html

B. Petersen 4 жил өмнө
parent
commit
d3f179d56e

+ 1 - 1
deltachat-ios/Controller/ChatListController.swift

@@ -21,7 +21,7 @@ class ChatListController: UITableViewController {
         let navTapGesture = UITapGestureRecognizer(target: self, action: #selector(onNavigationTitleTapped))
         view.addGestureRecognizer(navTapGesture)
         view.isUserInteractionEnabled = true
-        view.font = UIFont.systemFont(ofSize: 18, weight: .semibold)
+        view.font = UIFont.systemFont(ofSize: 17, weight: .semibold)
         return view
     }()
 

+ 6 - 1
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -129,7 +129,12 @@ class AppCoordinator {
         } else {
             presentWelcomeController()
         }
-        UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 18, weight: .semibold)]
+
+        // make sure, we use the same font in all titles,
+        // here and in the custom chatlist title
+        // (according to https://learnui.design/blog/ios-font-size-guidelines.html )
+        // (it would be a bit nicer, if we would query the system font and pass it to chatlist, but well :)
+        UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 17, weight: .semibold)]
     }
 
     func presentWelcomeController() {