From 5da3974795d762b695fb7799b7d0b8bf4a0c9490 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 19 Jan 2023 12:59:45 -0600 Subject: [PATCH] Fixes non-readable error toast view when an authentication error occurs --- AltStore/Operations/AuthenticationOperation.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index 5648d842..988c6e9b 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -14,6 +14,11 @@ import AltStoreCore import AltSign import minimuxer +private extension UIColor +{ + static let altInvertedPrimary = UIColor(named: "SettingsHighlighted")! +} + typealias AuthenticationError = AuthenticationErrorCode.Error enum AuthenticationErrorCode: Int, ALTErrorEnum, CaseIterable { @@ -289,7 +294,7 @@ private extension AuthenticationOperation { guard let presentingViewController = self.presentingViewController else { return false } - self.navigationController.view.tintColor = .white + self.navigationController.view.tintColor = .altInvertedPrimary if self.navigationController.viewControllers.isEmpty {