Why this is useful
The 红涨绿跌 (red = up, green = down) convention is core to the design, but is hostile to users with red-green color vision deficiency. A Settings toggle should let them swap to a higher-contrast colorblind-safe palette (e.g., Okabe–Ito orange/blue) while preserving the up/down semantic mapping.
Where to start
android/app/src/main/java/com/tis/ibkr/ui/theme/LbColors.kt — add a second Up/Down color pair.
android/app/src/main/java/com/tis/ibkr/ui/screens/SettingsScreen.kt — add the toggle.
- Wire it through DataStore + CompositionLocal so the visible Up/Down colors update immediately when toggled.
Definition of done
- Toggle persists across app restarts.
- Visible PnL repaints without recomposing the entire app.
- Both palettes look intentional in the dark theme (no muddy contrast).
Why this is useful
The 红涨绿跌 (red = up, green = down) convention is core to the design, but is hostile to users with red-green color vision deficiency. A Settings toggle should let them swap to a higher-contrast colorblind-safe palette (e.g., Okabe–Ito orange/blue) while preserving the up/down semantic mapping.
Where to start
android/app/src/main/java/com/tis/ibkr/ui/theme/LbColors.kt— add a secondUp/Downcolor pair.android/app/src/main/java/com/tis/ibkr/ui/screens/SettingsScreen.kt— add the toggle.Definition of done