From 957a53ecd67e8532f279c8ec8521963f3722405a 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 ++++++- Dependencies/AltSign | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index 3dbdf35f..1fd89ff4 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -13,6 +13,11 @@ import Network import AltStoreCore import AltSign +private extension UIColor +{ + static let altInvertedPrimary = UIColor(named: "SettingsHighlighted")! +} + typealias AuthenticationError = AuthenticationErrorCode.Error enum AuthenticationErrorCode: Int, ALTErrorEnum, CaseIterable { @@ -288,7 +293,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 { diff --git a/Dependencies/AltSign b/Dependencies/AltSign index 3f300e4e..db120fcf 160000 --- a/Dependencies/AltSign +++ b/Dependencies/AltSign @@ -1 +1 @@ -Subproject commit 3f300e4ed8e4bbbc050cca88125269007d8ebf9f +Subproject commit db120fcfc499441538b119d544d3d52e448e6cf2