Device Verification: Verify screen: Theme emojis names

This commit is contained in:
manuroe
2019-04-08 17:10:40 +02:00
parent cc464031d1
commit 9b4e54d5e0
5 changed files with 36 additions and 1 deletions
@@ -34,6 +34,7 @@ final class DeviceVerificationVerifyViewController: UIViewController {
@IBOutlet private weak var titleLabel: UILabel!
@IBOutlet private weak var informationLabel: UILabel!
@IBOutlet weak var emojisCollectionView: UICollectionView!
@IBOutlet weak var waitingPartnerLabel: UILabel!
@IBOutlet weak var continueButtonBackgroundView: UIView!
@IBOutlet private weak var continueButton: UIButton!
@@ -116,6 +117,8 @@ final class DeviceVerificationVerifyViewController: UIViewController {
self.continueButton.backgroundColor = theme.backgroundColor
theme.applyStyle(onButton: self.continueButton)
emojisCollectionView.reloadData()
}
private func registerThemeServiceDidChangeThemeNotification() {
@@ -214,6 +217,8 @@ extension DeviceVerificationVerifyViewController: UICollectionViewDataSource {
cell.emoji.text = emoji.emoji
cell.name.text = emoji.name
cell.update(theme: self.theme)
return cell
}