diff --git a/TalerWallet1/Views/OIM/ChartHistoryView.swift b/TalerWallet1/Views/OIM/ChartHistoryView.swift index 2b8c3242..3cb446dd 100644 --- a/TalerWallet1/Views/OIM/ChartHistoryView.swift +++ b/TalerWallet1/Views/OIM/ChartHistoryView.swift @@ -269,7 +269,7 @@ struct ChartOverlayV: View { let incoming = talerTX.common.isIncoming VStack { Text("Balance: \(balance2.pTwo)") - .foregroundStyle(WalletColors().gray2) + .foregroundStyle(.white) // on the card's coloured top; gray2 is 2.2:1 on the blue OIMamountV(amount: effective, currencyName: currency.currencyStr, factor: currency.factor, mayChangeSpeed: false) OIMlineView(stack: stack.push(), @@ -299,6 +299,7 @@ struct ChartOverlayV: View { ).opacity(0.85) ) ) + .environment(\.colorScheme, .light) // as in HistoryDetailView: the card ends in white Spacer() } } diff --git a/TalerWallet1/Views/OIM/HistoryDetailView.swift b/TalerWallet1/Views/OIM/HistoryDetailView.swift index 1ae70ac7..a371252c 100644 --- a/TalerWallet1/Views/OIM/HistoryDetailView.swift +++ b/TalerWallet1/Views/OIM/HistoryDetailView.swift @@ -68,7 +68,7 @@ struct HistoryDetailView: View { } VStack(alignment: .trailing) { Text("Balance: \(balance2.pTwo)") - .foregroundStyle(WalletColors().gray2) + .foregroundStyle(.white) // on the card's coloured top; gray2 is 2.2:1 on the blue Spacer() OIMamountV(amount: effective, currencyName: currency.currencyStr, factor: currency.factor, mayChangeSpeed: false) @@ -109,6 +109,9 @@ struct HistoryDetailView: View { .opacity(0.8)) ) ) + // The card is white-based in both appearances, so what is drawn on it must not follow the + // appearance: in dark mode the amount was light blue on near-white (1.4:1). + .environment(\.colorScheme, .light) Spacer() } }