feat: mobile app: add high-contrast dark mode theme toggle (#695) - #875
Merged
ONEONUORA merged 1 commit intoSep 1, 2026
Merged
Conversation
|
@Divine-designs Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Divine-designs
force-pushed
the
feat/695-theme-toggle-high-contrast
branch
from
August 31, 2026 23:00
b27a6c1 to
dfc4097
Compare
ONEONUORA
approved these changes
Sep 1, 2026
ONEONUORA
left a comment
Contributor
There was a problem hiding this comment.
Great job @Divine-designs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #695
Summary
Adds a user-controlled theme system with a persisted high-contrast dark mode, selectable from the Settings tab.
ThemeProvidercontext (src/contexts/ThemeProvider.tsx): manages a persistedsystem | light | dark | high-contrastpreference (AsyncStorage) and re-resolves the palette immediately on change.src/constants/theme.ts): added a WCAG-friendlyhighContrastdark palette (pure-black backgrounds, brightest text/borders).useThemehook: now consumes the provider context (falls back to the system colour scheme when no provider is mounted, keeping components/tests working).ThemeProvider; the StackcontentStyle, rootView, andStatusBarnow use dynamic theme variables, so switching applies across navigation.app/appearance.tsx): System / Light / Dark / High Contrast Dark options with radio selection, reachable from a new Appearance row in Settings.Acceptance Criteria
ThemedText)Tests
__tests__/ThemeProvider.test.tsx(5 cases): system default, system-dark resolution, immediate theme switch + persistence, high-contrast palette flag, and preference rehydration on mount.Files pass tsc (no new errors), eslint, and prettier. The failing suites reported by
npm test(api, biometric, stellarWallet, BatchPayoutSummary etc.) fail identically on cleanmaster— pre-existing, unrelated to this change.