taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit f19e2336fde1c655d44730daf837467bd43c6d65
parent fa8436c1128f994bcf266d59e6ab7f1f5947b3c7
Author: Marc Stibane <marc@taler.net>
Date:   Sat,  9 Nov 2024 16:30:00 +0100

Yellow for confirm

Diffstat:
MTalerWallet1/Views/HelperViews/Buttons.swift | 4+++-
MTalerWallet1/Views/HelperViews/IconBadge.swift | 4+++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift @@ -284,12 +284,14 @@ struct TalerButtonStyle: ButtonStyle { .animation(.spring(response: 0.1), value: configuration.isPressed) .disabled(disabled) if hasBadge { + let badgeColor: Color = (badge == CONFIRM_BANK) ? .yellow + : .red let badgeV = Image(systemName: badge) .talerFont(.caption) HStack(alignment: .top, spacing: 0) { badgeV.foregroundColor(.clear) buttonLabel - badgeV.foregroundColor(.red) + badgeV.foregroundColor(badgeColor) } } else { buttonLabel diff --git a/TalerWallet1/Views/HelperViews/IconBadge.swift b/TalerWallet1/Views/HelperViews/IconBadge.swift @@ -88,7 +88,9 @@ struct IconBadge: View { : CONFIRM_BANK Image(systemName: badgeName) .talerFont(.caption) - .foregroundColor((needsKYC || shouldConfirm) ? .red : .clear) + .foregroundColor(needsKYC ? .red + : shouldConfirm ? .yellow + : .clear) } }.accessibilityHidden(true) }