Skip to content

fix(dashpay): show the Cancel button in the profile picture upload dialog in dark mode - #1660

Merged
HashEngineering merged 1 commit into
masterfrom
fix/profile-picture-dialog-dark-mode
Oct 31, 2026
Merged

HashEngineering merged 1 commit into
masterfrom
fix/profile-picture-dialog-dark-mode

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

MO-1093 (comment 91681): the profile picture dialogs on Edit Profile display improperly in dark mode. In the "Please Wait / Uploading your picture" dialog, the Cancel button is a white box with white text, so the label is invisible.

Fix

profile_picture_state_dialog.xml forced @drawable/white_button_background_no_shadow on top of the Button.Tertiary.Large style. That drawable is always white, and in dark mode the Tertiary text is near-white. Removing the override makes Cancel use the Tertiary style's own background, as the delete confirmation dialog's "No" button already does.

Not changed

The delete confirmation dialog ("Are you sure?") already uses themed styles. Its avatar area was blank in the screenshot because Glide loads the saved profile's avatarUrl there. That isn't a dark-mode styling issue, so it is not addressed here.

Testing

  • :wallet:process_testNet3DebugResources builds.
  • Pre-review is clean.
  • Not yet checked on a device in light and dark mode.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • The cancel button in the profile picture dialog now uses its style or default appearance instead of a forced white, shadow-free background.

…alog in dark mode

The Cancel button forced a white background over its Tertiary style, so in dark
mode its white text was invisible. Use the Tertiary style's own background, as
the delete confirmation dialog's "No" button does.

MO-1093

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The profile picture state dialog no longer sets an explicit background on its cancel button. The button background is now determined by its style or other defaults.

Changes: Dialog styling

Layer / File(s) Summary
Cancel button background
wallet/res/layout/profile_picture_state_dialog.xml
Removed the cancel button’s explicit white_button_background_no_shadow background assignment.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: thepastaclaw

Merge Risk: Minimal · up to 37dbd

The Cancel button now delegates its background to its style. No merge-blocking risk is identified; light- and dark-mode device checks remain advisable.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: fixing the Cancel button display in the profile picture upload dialog for dark mode.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit 37dbd08) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

The change correctly removes the hard-coded white background from the profile-picture upload dialog's Cancel button, allowing the existing themed Button.Tertiary.Large style to provide the dark-mode background and text contrast. The implementation matches the already-themed Cancel button in the delete confirmation dialog, and no in-scope correctness issues were found. The build check was still in progress at the supplied snapshot; the completed check and CodeRabbit checks succeeded.

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: low by gpt-6.1-sol (effort low) — This is a small, self-contained layout change that removes a forced white background so the existing themed button style can render correctly in dark mode.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 62% left, weekly 82% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer

@HashEngineering
HashEngineering merged commit 472e860 into master Oct 31, 2026
3 checks passed
HashEngineering added a commit that referenced this pull request Nov 3, 2026
…ase-1-2026-11-02

chore: merge master into feat/kotlin-sdk-phase-1 (#1660, #1665, #1671)
AshFrancis pushed a commit to AshFrancis/dash-wallet that referenced this pull request Nov 28, 2026
Brings in dashpay#1660, dashpay#1665, dashpay#1671 and the pre-review fail-closed fix (233a26c).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants