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

Commit f5624bd

Browse files
Use OR divider colors from WordPressAuthenticatorStyle for text and separator line.
1 parent 6cc4778 commit f5624bd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

WordPressAuthenticator/NUX/Button/NUXStackedButtonsViewController.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,11 @@ private extension NUXStackedButtonsViewController {
169169
return dividerStackView.isHidden = true
170170
}
171171

172-
let color = WordPressAuthenticator.shared.unifiedStyle?.borderColor ?? style.primaryNormalBorderColor
173-
leadingDividerLine.backgroundColor = color
172+
leadingDividerLine.backgroundColor = style.orDividerSeparatorColor
174173
leadingDividerLineHeight.constant = WPStyleGuide.hairlineBorderWidth
175-
trailingDividerLine.backgroundColor = color
174+
trailingDividerLine.backgroundColor = style.orDividerSeparatorColor
176175
trailingDividerLineHeight.constant = WPStyleGuide.hairlineBorderWidth
177-
dividerLabel.textColor = color
176+
dividerLabel.textColor = style.orDividerTextColor
178177
dividerLabel.text = NSLocalizedString("Or", comment: "Divider on initial auth view separating auth options.").localizedUppercase
179178
}
180179

0 commit comments

Comments
 (0)