Skip to content

Add a color-blind-safe theme toggle #4

@whtis

Description

@whtis

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions