Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressAuthenticator"
s.version = "1.33.0"
s.version = "1.34.0-beta.1"
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public struct WordPressAuthenticatorStyle {

public let disabledTitleColor: UIColor

/// Color of the spinner that is shown when a button is disabled.
public let disabledButtonActivityIndicatorColor: UIColor

/// Style: Text Buttons
///
public let textButtonColor: UIColor
Expand Down Expand Up @@ -109,6 +112,7 @@ public struct WordPressAuthenticatorStyle {
primaryTitleColor: UIColor,
secondaryTitleColor: UIColor,
disabledTitleColor: UIColor,
disabledButtonActivityIndicatorColor: UIColor,
textButtonColor: UIColor,
textButtonHighlightColor: UIColor,
instructionColor: UIColor,
Expand Down Expand Up @@ -139,6 +143,7 @@ public struct WordPressAuthenticatorStyle {
self.primaryTitleColor = primaryTitleColor
self.secondaryTitleColor = secondaryTitleColor
self.disabledTitleColor = disabledTitleColor
self.disabledButtonActivityIndicatorColor = disabledButtonActivityIndicatorColor
self.textButtonColor = textButtonColor
self.textButtonHighlightColor = textButtonHighlightColor
self.instructionColor = instructionColor
Expand Down
2 changes: 1 addition & 1 deletion WordPressAuthenticator/NUX/NUXButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import WordPressKit
open override var isEnabled: Bool {
didSet {
if #available(iOS 13, *) {
activityIndicator.color = isEnabled ? style.primaryTitleColor : style.secondaryTitleColor
activityIndicator.color = isEnabled ? style.primaryTitleColor : style.disabledButtonActivityIndicatorColor
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class WordpressAuthenticatorProvider: NSObject {
primaryTitleColor: UIColor.random(),
secondaryTitleColor: UIColor.random(),
disabledTitleColor: UIColor.random(),
disabledButtonActivityIndicatorColor: UIColor.random(),
textButtonColor: UIColor.random(),
textButtonHighlightColor: UIColor.random(),
instructionColor: UIColor.random(),
Expand Down