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

Commit f14d074

Browse files
Introduce a property to WordPressAuthenticatorUnifiedStyle to customise gravatar email text color.
1 parent ad8e009 commit f14d074

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticatorStyles.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ public struct WordPressAuthenticatorUnifiedStyle {
230230
public let navButtonTextColor: UIColor
231231
public let navTitleTextColor: UIColor
232232

233+
/// Style: Text color to be used for email in `GravatarEmailTableViewCell`
234+
///
235+
public let gravatarEmailTextColor: UIColor?
236+
233237
/// Designated initializer
234238
///
235239
public init(borderColor: UIColor,
@@ -244,7 +248,8 @@ public struct WordPressAuthenticatorUnifiedStyle {
244248
statusBarStyle: UIStatusBarStyle = .default,
245249
navBarBackgroundColor: UIColor,
246250
navButtonTextColor: UIColor,
247-
navTitleTextColor: UIColor) {
251+
navTitleTextColor: UIColor,
252+
gravatarEmailTextColor: UIColor? = nil) {
248253
self.borderColor = borderColor
249254
self.errorColor = errorColor
250255
self.textColor = textColor
@@ -258,5 +263,6 @@ public struct WordPressAuthenticatorUnifiedStyle {
258263
self.navBarBackgroundColor = navBarBackgroundColor
259264
self.navButtonTextColor = navButtonTextColor
260265
self.navTitleTextColor = navTitleTextColor
266+
self.gravatarEmailTextColor = gravatarEmailTextColor
261267
}
262268
}

0 commit comments

Comments
 (0)