mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Emoji picker: Fix reverse header and background colors (Fix #2630).
This commit is contained in:
parent
7a82c137ed
commit
82527c2a3f
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue