Ver código fonte

fix button outline color on light/dark mode switch

cyberta 3 anos atrás
pai
commit
e21f7143d1
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      deltachat-ios/View/ContactDetailHeader.swift

+ 6 - 0
deltachat-ios/View/ContactDetailHeader.swift

@@ -179,4 +179,10 @@ class ContactDetailHeader: UIView {
         onMuteButtonTapped?()
     }
 
+    override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+        super.traitCollectionDidChange(previousTraitCollection)
+        searchButton.layer.borderColor = DcColors.colorDisabled.cgColor
+        muteButton.layer.borderColor = DcColors.colorDisabled.cgColor
+    }
+
 }