diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift b/TalerWallet1/Views/Actions/ActionsSheet.swift index d91e7e16..cb10c591 100755 --- a/TalerWallet1/Views/Actions/ActionsSheet.swift +++ b/TalerWallet1/Views/Actions/ActionsSheet.swift @@ -75,6 +75,7 @@ struct ScannedURLs: View { struct ActionsSheet: View { let stack: CallStack + @Environment(\.colorSchemeContrast) private var colorSchemeContrast @EnvironmentObject private var controller: Controller @AppStorage("demoHints") var demoHints: Bool = true @AppStorage("pasteAutomatically") var pasteAutomatically: Bool = false @@ -164,7 +165,11 @@ struct ActionsSheet: View { } } .labelStyle(.iconOnly) - .tint(WalletColors().primaryAccent) + // The system draws this control itself, and draws nothing but a blank + // square when its glyph would not have enough contrast on the tint. + // With "Increase Contrast" on, the Taler blue does not pass; black does. + .tint(colorSchemeContrast == .increased ? Color.black + : WalletColors().primaryAccent) .buttonBorderShape(.circle) // capsule .accessibility(sortPriority: 1) #else