Emoji picker: Fix reverse header and background colors (Fix #2630).

This commit is contained in:
SBiOSoftWhare
2019-10-22 18:54:59 +02:00
parent 084badf4a6
commit bd1a9b106a
3 changed files with 3 additions and 3 deletions
@@ -26,7 +26,7 @@ final class EmojiPickerHeaderView: UICollectionReusableView, NibReusable {
// MARK: - Public
func update(theme: Theme) {
self.backgroundColor = theme.backgroundColor
self.backgroundColor = theme.headerBackgroundColor
self.titleLabel.textColor = theme.headerTextPrimaryColor
}
@@ -90,7 +90,7 @@ final class EmojiPickerViewCell: UICollectionViewCell, NibReusable, Themable {
reactionBackgroundColor = self.theme?.tintBackgroundColor
reactionBackgroundBorderWidth = Constants.selectedBorderWidth
} else {
reactionBackgroundColor = self.theme?.headerBackgroundColor
reactionBackgroundColor = self.theme?.backgroundColor
reactionBackgroundBorderWidth = 0.0
}
@@ -111,7 +111,7 @@ final class EmojiPickerViewController: UIViewController {
private func update(theme: Theme) {
self.theme = theme
self.view.backgroundColor = theme.headerBackgroundColor
self.view.backgroundColor = theme.backgroundColor
if let navigationBar = self.navigationController?.navigationBar {
theme.applyStyle(onNavigationBar: navigationBar)