浏览代码

disable dark-mode partially

B. Petersen 5 年之前
父节点
当前提交
7b4d5b28f9
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      deltachat-ios/Controller/ChatViewController.swift

+ 6 - 0
deltachat-ios/Controller/ChatViewController.swift

@@ -58,6 +58,12 @@ class ChatViewController: MessagesViewController {
     override func viewDidLoad() {
         messagesCollectionView.register(CustomMessageCell.self)
         super.viewDidLoad()
+
+        // TODO: support dark mode for this view, see https://github.com/deltachat/deltachat-ios/issues/163#issuecomment-533797080
+        if #available(iOS 13.0, *) {
+            overrideUserInterfaceStyle = .light
+        }
+
         view.backgroundColor = DcColors.chatBackgroundColor
         if !DcConfig.configured {
             // TODO: display message about nothing being configured