Page MenuHomePhabricator

Implement color updates to diffs on Android
Open, Needs TriagePublic

Description

Background

As a result of T394327: Update color tokens for diff styling in Codex, Codex is now set up to support unified and accessible [colorblind friendly] color themes for diffs. As a part of T394117: [EPIC] Diff styling, the Android Apps team should replicate what is being done in the Codex color tokens for diffs in all places where diffs are used. This will unify the color of all ways of viewing diffs, especially with how they will work on web. To support the color themes, a Diff color theme switcher should be built and implemented. This switcher will use the new colorblind friendly color modes derived from Codex to change the color scheme of diffs. The Android team should determine the best design and functionality for the color theme switcher.

The default theme should be set to Trichromatic [red and green], which matches the current default color scheme within the mobile apps.

Acceptance criteria

  • All places where diffs appear should replicate the use and values of the tokens outlined in T394327
  • A color theme switcher should be implemented to enable diff color scheme customization