mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Device Verification: Verify screen: Theme emojis names
This commit is contained in:
+1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user