commit ce239d32578f2816e1d8d6f2826a6d9ea567d4d2
parent 9e471610debbf055dc0462c7134aa5218266cca7
Author: Marc Stibane <marc@taler.net>
Date: Thu, 3 Sep 2026 23:27:42 +0200
strikethrough legacy
Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/Balances/BalanceCellV.swift b/TalerWallet1/Views/Balances/BalanceCellV.swift
@@ -13,6 +13,7 @@ struct BalanceCellV: View {
let stack: CallStack
let scope: ScopeInfo
let amount: Amount
+ let isLegacy: Bool
// let sizeCategory: ContentSizeCategory
// let rowAction: () -> Void
@Binding var historyTapped: Int?
@@ -51,7 +52,7 @@ struct BalanceCellV: View {
scope: scope,
amount: amount,
isNegative: nil, // don't show the + sign
- strikethrough: false,
+ strikethrough: isLegacy,
large: true)
.foregroundColor(.primary)
let hLayout = HStack {
@@ -97,7 +98,6 @@ struct BalanceCellV: View {
}
}
}
-
// MARK: -
#if false
struct BalanceCellV_Previews: PreviewProvider {
diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -107,8 +107,9 @@ extension BalancesSectionView: View {
oimEuro: oimEuro,
transactions: $completedTransactions,
reloadAllAction: loadCompleted)
+ let isLegacy = scopeInfo.type == .exchangeLegacyKeys
Section {
- if scopeInfo.type == .exchange {
+ if scopeInfo.type == .exchange || isLegacy {
let baseURL = scopeInfo.url?.trimURL ?? String(localized: "Unknown payment service", comment: "exchange url")
Text(baseURL)
.talerFont(.subheadline)
@@ -118,6 +119,7 @@ extension BalancesSectionView: View {
BalanceCellV(stack: stack.push("BalanceCell"),
scope: balance.scopeInfo,
amount: balance.available,
+ isLegacy: isLegacy,
historyTapped: $historyTapped,
balanceIndex: balanceIndex,
balanceDest: balanceDest)
diff --git a/TalerWallet1/Views/HelperViews/BarGraph.swift b/TalerWallet1/Views/HelperViews/BarGraph.swift
@@ -39,9 +39,11 @@ struct BarGraphHeader: View {
var body: some View {
let currencyInfo = controller.info(for: scope, controller.currencyTicker)
+ let isLegacy = scope.type == .exchangeLegacyKeys
HStack (alignment: .center, spacing: 10) {
if !minimalistic || currencyInfo.hasSymbol {
Text(currencyInfo.name)
+ .strikethrough(isLegacy, color: WalletColors().attention)
.talerFont(.title2)
.foregroundColor(WalletColors().secondary(colorScheme, colorSchemeContrast))
}