浏览代码

ensure the title text size is always the same

cyberta 4 年之前
父节点
当前提交
3e2aae0463
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      deltachat-ios/Controller/ChatListController.swift
  2. 1 0
      deltachat-ios/Coordinator/AppCoordinator.swift

+ 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: 20, weight: .semibold)
         return view
     }()
 

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

@@ -129,6 +129,7 @@ class AppCoordinator {
         } else {
             presentWelcomeController()
         }
+        UINavigationBar.appearance().titleTextAttributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 20, weight: .semibold)]
     }
 
     func presentWelcomeController() {