Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit df9d40a

Browse files
Use gravatarEmailTextColor from unified style for email text color.
1 parent f14d074 commit df9d40a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPressAuthenticator/Unified Auth/View Related/Reusable Views/GravatarEmailTableViewCell.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class GravatarEmailTableViewCell: UITableViewCell {
2020
///
2121
public func configure(withEmail email: String?, andPlaceholder placeholderImage: UIImage? = nil) {
2222
gravatarImageView?.tintColor = WordPressAuthenticator.shared.unifiedStyle?.borderColor ?? WordPressAuthenticator.shared.style.primaryNormalBorderColor
23-
emailLabel?.textColor = WordPressAuthenticator.shared.unifiedStyle?.textColor ?? WordPressAuthenticator.shared.style.instructionColor
23+
let emailTextColor = WordPressAuthenticator.shared.unifiedStyle?.gravatarEmailTextColor ?? WordPressAuthenticator.shared.unifiedStyle?.textSubtleColor ?? WordPressAuthenticator.shared.style.subheadlineColor
24+
emailLabel?.textColor = emailTextColor
2425
emailLabel?.font = UIFont.preferredFont(forTextStyle: .body)
2526
emailLabel?.text = email
2627

0 commit comments

Comments
 (0)