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
@@ -186,6 +186,7 @@
<connections>
<outlet property="continueButton" destination="DOt-5E-FjF" id="ktw-U4-efQ"/>
<outlet property="continueButtonBackgroundView" destination="DtR-jx-UKY" id="9yG-wP-u8A"/>
<outlet property="emojisCollectionView" destination="34i-3X-YvQ" id="wDE-oG-peo"/>
<outlet property="informationLabel" destination="bxI-mu-qng" id="pbX-aZ-inC"/>
<outlet property="scrollView" destination="9U2-KL-ZVA" id="ojG-2y-X7b"/>
<outlet property="titleLabel" destination="he8-pl-xE9" id="btA-kv-E2B"/>
@@ -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
}
@@ -16,7 +16,11 @@
import UIKit
class VerifyEmojiCollectionViewCell: UICollectionViewCell {
class VerifyEmojiCollectionViewCell: UICollectionViewCell, Themable {
@IBOutlet weak var emoji: UILabel!
@IBOutlet weak var name: UILabel!
func update(theme: Theme) {
name.textColor = theme.textPrimaryColor
}
}