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

adapt border colors when changing from light mode to dark mode

cyberta пре 4 година
родитељ
комит
86d3a6cc0a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      deltachat-ios/Chat/ChatViewController.swift

+ 4 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -733,6 +733,10 @@ class ChatViewController: UITableViewController {
         }
         }
         _ = handleUIMenu()
         _ = handleUIMenu()
     }
     }
+    
+    override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+        scrollDownButton.layer.borderColor = DcColors.colorDisabled.cgColor
+    }
 
 
     func configureMessageStyle(for message: DcMsg, at indexPath: IndexPath) -> UIRectCorner {
     func configureMessageStyle(for message: DcMsg, at indexPath: IndexPath) -> UIRectCorner {