Преглед изворни кода

Merge pull request #326 from deltachat/disable-dark-mode-partially

disable dark-mode partially
björn petersen пре 5 година
родитељ
комит
cd02c138df
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() {
     override func viewDidLoad() {
         messagesCollectionView.register(CustomMessageCell.self)
         messagesCollectionView.register(CustomMessageCell.self)
         super.viewDidLoad()
         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
         view.backgroundColor = DcColors.chatBackgroundColor
         if !DcConfig.configured {
         if !DcConfig.configured {
             // TODO: display message about nothing being configured
             // TODO: display message about nothing being configured