Repository navigation
fix(shielded): dark mode on the internal transfer screens - #1620
Conversation
The internal transfer flow (payments "Internal" tab card, transfer screen with its confirm/timing sheets and proving/ambiguous/locked/ stalled dialogs, plus the parked shielded send/receive screens) used the fixed light palette (MyTheme.Colors), and neither ShieldedBalanceActivity nor PaymentsInternalFragment wrapped its content in DashWalletTheme, so even the shared components (nav bar, amount entry, keypad, buttons, toast) rendered light. Both hosts now wrap in DashWalletTheme and the screens read LocalDashColors — the same fix as the privacy sheets in #1615. MO-1099 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
✅ Final review complete — no blockers (commit 94410e0) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The dark-mode conversion is generally consistent, but the receive QR now uses the dark-mode primary text color on a transparent ALPHA_8 bitmap. This produces light modules on the dark card with no QR margin, which can make the receive address unscannable by external wallets and cameras. The Dash glyph concern is refuted because the drawable supplies a theme-aware root tint.
🔴 1 blocking
1 finding(s) not shown inline (the lines are not part of this PR's diff)
🔴 Blocking: Keep the receive QR dark-on-light in dark mode
wallet/src/de/schildbach/wallet/ui/shielded/ShieldedReceiveScreen.kt:183-192
Qr.qrBitmap() creates an ALPHA_8 mask with the QR modules opaque and the background effectively transparent. Tinting that bitmap with LocalDashColors.current.textPrimary changes the modules to WhiteAlpha90 in dark mode, while the surrounding ReceiveCard remains Black800. Because the QR is generated with MARGIN 0, it is rendered as a light-on-dark code without a dedicated light quiet zone. Many external QR scanners do not reliably accept inverted codes, so this can break the receive flow in dark mode. Render the QR in a white container with a fixed black tint regardless of the app theme.
val qrBitmap = remember(address) { Qr.qrBitmap(address) }
qrBitmap?.let { bitmap ->
Box(
modifier = Modifier
.padding(top = 20.dp, bottom = 30.dp)
.background(Color.White, RoundedCornerShape(12.dp))
.padding(12.dp)
) {
Image(
bitmap = bitmap.asImageBitmap(),
contentDescription = null,
colorFilter = ColorFilter.tint(Color.Black, BlendMode.SrcIn),
modifier = Modifier.size(176.dp)
)
}
}
source: muse-spark-1.3-contributor (phase1-reviewer: general)
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
normalbygpt-6.1-sol(effort low) — This is a contained but cross-cutting UI theming change across several Compose screens and hosts, requiring verification that dark-mode colors and theme propagation remain correct without altering funds movement or other critical wallet logic. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort xhigh); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 14% left, 5h 100% left),glm-5.3-flash(not used above high effort; tier asks max) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort high); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `wallet/src/de/schildbach/wallet/ui/shielded/ShieldedReceiveScreen.kt`:
- [BLOCKING] wallet/src/de/schildbach/wallet/ui/shielded/ShieldedReceiveScreen.kt:183-192: Keep the receive QR dark-on-light in dark mode
Qr.qrBitmap() creates an ALPHA_8 mask with the QR modules opaque and the background effectively transparent. Tinting that bitmap with LocalDashColors.current.textPrimary changes the modules to WhiteAlpha90 in dark mode, while the surrounding ReceiveCard remains Black800. Because the QR is generated with MARGIN 0, it is rendered as a light-on-dark code without a dedicated light quiet zone. Many external QR scanners do not reliably accept inverted codes, so this can break the receive flow in dark mode. Render the QR in a white container with a fixed black tint regardless of the app theme.
Tinting the margin-less ALPHA_8 QR mask with textPrimary rendered light modules on the dark card in dark mode, which many scanners reject. Draw it black inside a white 12dp quiet zone regardless of theme (same 200dp footprint). Co-Authored-By: Claude Opus 5.5 <[email protected]>
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Final validation — Phase 1 + Phase 2
The complete diff at cfa8e08 consistently applies the night-aware palette without changing transaction or authentication behavior, and the receive QR regression is fixed. One dark-mode defect remains: the send address input retains a black insertion cursor against its newly dark background. Validation was static; the supplied CI snapshot shows build and check queued, and device-level visual validation remains outstanding.
🔴 1 blocking
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — The diff is a contained UI theming change across five screens and hosts, plus QR presentation adjustments, without changes to transfer logic or other critical surfaces. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 100% left, weekly 93% left; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 14% left, 5h 100% left) - Fresh final gate: an independent Phase-2 review ran after iterative findings were reconciled
- Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.
In `wallet/src/de/schildbach/wallet/ui/shielded/ShieldedSendScreen.kt`:
- [BLOCKING] wallet/src/de/schildbach/wallet/ui/shielded/ShieldedSendScreen.kt:287-291: Set a theme-aware cursor for the send address field
BasicTextField defaults its cursorBrush to SolidColor(Color.Black); the textStyle color does not affect that brush. This PR changes the address field background to the dark palette's #1E1F24, leaving the insertion cursor with almost no contrast while the text becomes light. Users entering or correcting a recipient address therefore cannot reliably locate the editing position. DashWalletTheme only supplies LocalDashColors and does not override the cursor. Set cursorBrush to LocalDashColors.current.textPrimary, matching the existing shared AddressField implementation.
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- The extended public key export QR remains inverted in dark mode — ExtendedPublicKeyDialog.kt still tints its QR with LocalDashColors.current.textPrimary and provides no fixed white backing. Because Qr.qrBitmap produces an ALPHA_8 bitmap with zero margin, dark mode renders light modules on the dark sheet, which can prevent external scanners from reading the exported key. This is a concrete export-compatibility issue, but the file and behavior predate this PR and are unrelated to the internal-transfer changes.
- Follow-up: Track a separate issue to render the extended public key QR with fixed black modules on a white backing and an explicit quiet zone.
BasicTextField's default cursorBrush is black, invisible on the dark field background now that the screen follows dark mode. Use textPrimary, matching the shared AddressField. Co-Authored-By: Claude Opus 5.5 <[email protected]>
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Final validation — Phase 1 + Phase 2
Independently reviewed the complete diff at 94410e0 and the surrounding theme, shared-component, drawable, and QR-generation implementations; no in-scope defects remain, and both prior findings are fixed. The theme wrappers and palette substitutions preserve the existing transfer and authentication behavior. Validation was static only: the supplied CI snapshot reports check successful with build and CodeRabbit pending, and device-level dark-mode validation remains outstanding.
🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — The changes are contained, straightforward UI theme and color substitutions across five related screens, without altering funds movement, cryptography, or other critical logic. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 100% left, weekly 90% left; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 14% left, 5h 100% left) - Fresh final gate: an independent Phase-2 review ran after iterative findings were reconciled
- Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.
No unresolved findings remain from the prior review on this head.
…sdk-phase-1-v11.9.1 Brings in #1614, #1606, #1620 and #1624. No textual conflicts. Checked for #1606 (stop logging amounts): none of this branch's new log lines or analytics events carry an amount. The two log lines that print SdkWriteResult.Broadcast.value print a txid. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Issue
MO-1099: in v12.0.0-beta, the internal transfer screens have no dark mode.
Cause
The shielded screens used the fixed light palette (
MyTheme.Colors). Their hosts (ShieldedBalanceActivityandPaymentsInternalFragment) also never wrapped their content inDashWalletTheme, so even the shared components (nav bar,EnterAmount, keypad,DashButton,Toast) stayed light.Fix
The same approach as the privacy sheets in #1615:
ShieldedBalanceActivityandPaymentsInternalFragmentnow wrap their content inDashWalletTheme.ShieldedTransferScreen,ShieldedSendScreen,ShieldedReceiveScreenand the Internal tab card now useLocalDashColors.currentinstead ofMyTheme.Colors.This covers the transfer screen, its confirm and timing sheets, and the proving, ambiguous, locked-pending and stalled dialogs. Send and receive share the activity, so they are converted as well; otherwise they would mix light and dark colors. The CoinJoin migration screens are out of scope.
Testing
:wallet:compile_testNet3DebugKotlinpasses.🤖 Generated with Claude Code
Summary by CodeRabbit