Fixes non-readable error toast view when an authentication error occurs

This commit is contained in:
Riley Testut
2023-01-19 12:59:45 -06:00
committed by Magesh K
parent a8f0d9da9b
commit 5da3974795

View File

@@ -14,6 +14,11 @@ import AltStoreCore
import AltSign import AltSign
import minimuxer import minimuxer
private extension UIColor
{
static let altInvertedPrimary = UIColor(named: "SettingsHighlighted")!
}
typealias AuthenticationError = AuthenticationErrorCode.Error typealias AuthenticationError = AuthenticationErrorCode.Error
enum AuthenticationErrorCode: Int, ALTErrorEnum, CaseIterable enum AuthenticationErrorCode: Int, ALTErrorEnum, CaseIterable
{ {
@@ -289,7 +294,7 @@ private extension AuthenticationOperation
{ {
guard let presentingViewController = self.presentingViewController else { return false } guard let presentingViewController = self.presentingViewController else { return false }
self.navigationController.view.tintColor = .white self.navigationController.view.tintColor = .altInvertedPrimary
if self.navigationController.viewControllers.isEmpty if self.navigationController.viewControllers.isEmpty
{ {