Repository navigation
fix(xpub): keep the extended public key QR dark-on-light in dark mode - #1622
HashEngineering wants to merge 1 commit into
Conversation
The export QR tinted its margin-less ALPHA_8 mask with textPrimary, so in dark mode it rendered light modules on the dark sheet with no quiet zone — an inverted code many scanners reject. Draw it black inside a white 12dp quiet zone regardless of theme (same 180dp footprint), the same fix as the shielded receive QR in #1620. 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 f73745a) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
Verified the single-file diff at f73745a against the shared QR encoder and surrounding dialog code. The change renders the QR mask black on white with 12dp padding, preserves the overall 180dp footprint and existing export behavior, and introduces no confirmed in-scope defects. The supplied exact-head CI snapshot reports successful build and check jobs; this verification was static, and device-level dark-mode scanning remains unverified.
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); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — This is a small, contained UI rendering change that fixes QR contrast and padding without changing key handling or export data. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 90% left; passed overgemini-3.8-flash-high(antigravity below 15% reserve: weekly 14% left, 5h 100% left) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
|
not sure if we need this, not in the designs. |
Issue
ExtendedPublicKeyDialogtinted its QR withLocalDashColors.current.textPrimary.Qr.qrBitmap()returns an ALPHA_8 mask with zero margin, so in dark mode the code rendered as light modules on the dark sheet with no quiet zone. Many external scanners reject an inverted code like that, which breaks the extended public key export. The reviewer found this on #1620.Fix
The QR is now drawn black inside a white 12dp quiet zone in every theme, with the same overall 180dp footprint (156dp code plus padding). This is the same fix #1620 applied to the shielded receive QR.
Testing
:wallet:compile_testNet3DebugKotlinpasses.🤖 Generated with Claude Code
Summary by CodeRabbit