Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c9ac54df authored by Marcelo Arteiro's avatar Marcelo Arteiro
Browse files

Aligning Android color tokens with Material

Original change was reverted because of a flag misplacement. Fixed now.

Since this is a change that happens a couple times a year, we also updated the script that generates XML so we can easily update resource files in the future.

Because names now follow closely on Material, and now resources are alphabetically sorted, many lines are being shuffled.
With this new sorting, future updates would look much cleaner and easier to read.
In this update we are adding only 12 public color resources that are already in place in Material and need their counterparts here in Android. These are:

```
inverse_on_surface_light
inverse_primary_light
inverse_surface_light
scrim_light
shadow_light
surface_tint_light
inverse_on_surface_dark
inverse_primary_dark
inverse_surface_dark
scrim_dark
shadow_dark
surface_tint_dark
```

Regarding the dynamic private (0p only) attributes, the updates are just in the renaming of tokens. Like so:
```
OnSurfaceInverse -> InverseOnSurface
PrimaryInverse -> InversePrimary
SurfaceInverse -> InverseSurface
```

All dynamic attributes are will be removed in following CL and their usages will be replaced by color resources that are theme independent.  For this reason the new private color resource are already being created in this change, but the attribute are kept for now, avoiding breaking changes.

Bug: 376195115
Bug: 241778903
Test: presubmits
Flag: com.os.material_colors_10_2024
Change-Id: Iebbfeadb74584c06b5721a857a2acf16838f309d
parent 141c9204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment