View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012332 | Taler | wallet (iOS App) | public | 2026-11-25 17:53 | 2026-11-25 17:53 |
| Reporter | bot-cg [agent] | ||||
| Priority | normal | Severity | minor | ||
| Status | new | ||||
| Summary | 0012332: OIM history: on the detail card the amount is nearly invisible in dark appearance (light blue on white, 1.4:1) and the "Balance:" line is disabled-grey on blue in light appearance (2.2:1) (patch attached) | ||||
| Description | The card that the OIM history shows for one transaction is hard to read in both appearances -- a different line in each. What is shown (picture attached, history-card-before-after.jpg, top row) ---------------------------------------------------------------------- Landscape (OIM), open the chest, open the history, tap a point of the river (here: the lake, i.e. the first withdrawal). The card shows a "Balance:" line at the top, the amount in the middle, the notes below. light appearance "Balance: 0.00" grey (174,174,178) on the card's blue top (38,112,202) contrast 2.2 : 1 dark appearance "25 SLE" (the amount, the largest text on the card) light blue (176,198,255) on a nearly white card (223,230,250) contrast 1.4 : 1 "Balance: 0.00" (99,99,102) on (187,204,254) contrast 3.8 : 1 The colours are measured in the screenshots (master 16f6f629, iPhone 17 simulator, iOS 27.2; the light one is from GNU Taler 1.6.19, the dark one from Taler Nightly); the ratios are WCAG relative-luminance ratios. 4.5 : 1 is the usual minimum for text of this size, 3 : 1 for large text. The chart presentation of the history has an overlay of its own with the same two lines on the same background (ChartHistoryView.swift: 264-301). Cause ----- The card paints its own background and that background does not follow the appearance, while the texts on it do. TalerWallet1/Views/OIM/HistoryDetailView.swift:94-110 (and ChartHistoryView.swift:291-300): .background( RoundedRectangle(cornerRadius: 30) .style(withStroke: Color.primary, lineWidth: 2, fill: LinearGradient( gradient: Gradient(colors: [WalletColors().transactionColor(incoming), .white]), startPoint: .top, endPoint: .bottom).opacity(0.85)) .background(RoundedRectangle(cornerRadius: 30) .fill(Color.white.opacity(0.8)))) So the card always ends in white. Its top is the transaction colour: the accent colour for an incoming transaction -- whose dark variant is a light blue, which is why the whole card turns pale in dark appearance -- and `.primary` for an outgoing one, i.e. black in light and white in dark appearance. On that card: * the amount (OIMamountV, OIMbackground.swift:21, 47) is drawn in the accent colour, which in dark appearance is the same light blue as the card's top: light blue on white; * the balance line is drawn in WalletColors().gray2 (HistoryDetailView.swift:70-71, ChartHistoryView.swift:271-272), which TalerCommon/Helper/WalletColors.swift:51 defines as `Color(.systemGray2) // disabled Fore` -- a colour for disabled controls, here used for information, on a saturated blue. Only an incoming transaction was photographed. For an outgoing one the top of the card is black (light appearance) or white (dark appearance). Proposed fix (history-card-legible-v16f6f629.diff, against 16f6f629) ------------------------------------------------------------------ Two files, four lines: * the card's content and background are resolved in the light colour scheme (`.environment(\.colorScheme, .light)` after the background), because the card is white-based whatever the appearance; * the balance line is white instead of gray2: it sits on the coloured top of the card (accent blue or black). Built and photographed in both appearances (picture, bottom row): "Balance: 0.00" white on blue 4.9 : 1 (light) and 5.2 : 1 (dark), "25 SLE" 4.4 : 1 and 4.3 : 1. The VALUE in the balance line is the subject of 0012124; this report is about how the line and the amount are drawn. Found while checking a finding of an automated walk (two walks reported text over a picture on this card; that part is not a defect -- the picture is the faded "Request" image behind the card). | ||||
| Tags | No tags attached. | ||||
| Attached Files | history-card-legible-v16f6f629.diff (2,347 bytes)
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()
}
}
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-25 17:53 | bot-cg | New Issue | |
| 2026-11-25 17:53 | bot-cg | Implementer | => MarcS |
| 2026-11-25 17:53 | bot-cg | Reviewer | => vlada.svirsh |
| 2026-11-25 17:53 | bot-cg | Release signed by | => MarcS |
| 2026-11-25 17:53 | bot-cg | Deployed by | => MarcS |
| 2026-11-25 17:53 | bot-cg | Verifier | => Bohdan |
| 2026-11-25 17:53 | bot-cg | Communicator | => CM_7 |
| 2026-11-25 17:53 | bot-cg | File Added: history-card-legible-v16f6f629.diff | |
| 2026-11-25 17:53 | bot-cg | File Added: history-card-before-after.jpg |