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 7a82c137ed
commit 82527c2a3f
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ final class EmojiPickerHeaderView: UICollectionReusableView, NibReusable {
// MARK: - Public // MARK: - Public
func update(theme: Theme) { func update(theme: Theme) {
self.backgroundColor = theme.backgroundColor self.backgroundColor = theme.headerBackgroundColor
self.titleLabel.textColor = theme.headerTextPrimaryColor self.titleLabel.textColor = theme.headerTextPrimaryColor
} }

View file

@ -90,7 +90,7 @@ final class EmojiPickerViewCell: UICollectionViewCell, NibReusable, Themable {
reactionBackgroundColor = self.theme?.tintBackgroundColor reactionBackgroundColor = self.theme?.tintBackgroundColor
reactionBackgroundBorderWidth = Constants.selectedBorderWidth reactionBackgroundBorderWidth = Constants.selectedBorderWidth
} else { } else {
reactionBackgroundColor = self.theme?.headerBackgroundColor reactionBackgroundColor = self.theme?.backgroundColor
reactionBackgroundBorderWidth = 0.0 reactionBackgroundBorderWidth = 0.0
} }

View file

@ -111,7 +111,7 @@ final class EmojiPickerViewController: UIViewController {
private func update(theme: Theme) { private func update(theme: Theme) {
self.theme = theme self.theme = theme
self.view.backgroundColor = theme.headerBackgroundColor self.view.backgroundColor = theme.backgroundColor
if let navigationBar = self.navigationController?.navigationBar { if let navigationBar = self.navigationController?.navigationBar {
theme.applyStyle(onNavigationBar: navigationBar) theme.applyStyle(onNavigationBar: navigationBar)