Add dark mode support to study mode#17
Merged
Merged
Conversation
Replace hardcoded colors in study.tsx with theme-aware values using useThemeColor. Add studyCardBack and disabled color keys to Colors.ts for both light and dark palettes.
Use dedicated navButton/navButtonIcon colors with proper contrast instead of reusing border/tint which were too dark on dark backgrounds.
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.
Summary
study.tsxwith theme-aware values usinguseThemeColorstudyCardBackanddisabledcolor keys toColors.tsfor both light and dark palettesChanges
front/constants/Colors.ts: AddedstudyCardBack(#f0f8ff light / #1a2a3a dark) anddisabled(#ccc light / #555 dark) color keysfront/app/flashcards/study.tsx: Replaced hardcoded hex colors (#fff,#f0f8ff,#333,#888,#f0f0f0,#ccc,#03465b) withuseThemeColorhooks for card backgrounds, text, hints, nav buttons, and chevron icons