Skip to content

fix: make disabled buttons visible in light mode#94

Merged
samdaw13 merged 1 commit intomainfrom
fix/plugboard-light-mode-bg
Mar 6, 2026
Merged

fix: make disabled buttons visible in light mode#94
samdaw13 merged 1 commit intomainfrom
fix/plugboard-light-mode-bg

Conversation

@samdaw13
Copy link
Copy Markdown
Owner

@samdaw13 samdaw13 commented Mar 6, 2026

Summary

  • Adds disabledSurface and disabledText colour tokens to ColorPalette with theme-appropriate values for both light and dark modes
  • Overrides React Native Paper's surfaceDisabled/onSurfaceDisabled theme tokens on the Run Analysis button (Break Cipher) and the Paste confirm button (Keyboard) so disabled state is legible in light mode

Test plan

  • Switch to light mode and open the Break Cipher screen — verify the Run Analysis button is visible when disabled (before entering ciphertext)
  • Open the paste modal on the Keyboard screen — verify the confirm button is visible when disabled (before entering text)
  • Confirm both buttons still appear correctly in dark mode
  • Confirm both buttons look correct when enabled in both themes

🤖 Generated with Claude Code

Add disabledSurface and disabledText to ColorPalette and override
React Native Paper's surfaceDisabled/onSurfaceDisabled theme tokens
on contained buttons so disabled state is legible in light mode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@samdaw13 samdaw13 enabled auto-merge March 6, 2026 20:37
@samdaw13 samdaw13 merged commit 26dda72 into main Mar 6, 2026
2 checks passed
@samdaw13 samdaw13 deleted the fix/plugboard-light-mode-bg branch March 6, 2026 20:38
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.

1 participant