ui: re-add accent customization >api 31

Re-add accent customization on Android 12 and above.

Previously, I disabled accent customization since I thought they were
more or less useless with the new Material You dynamic colors system.
Turns out I severely underestimated how horribly OEMs would botch the
dynamic colors system. Guess I was blinded by my adherence to the pixel
line. Re-add the accent customization for those who do not have a good
dynamic color palette at all.

Resolves #131.
This commit is contained in:
OxygenCobalt
2022-05-24 12:52:09 -06:00
parent eb293022e8
commit e1e032d254
12 changed files with 87 additions and 68 deletions
+5 -3
View File
@@ -5,6 +5,10 @@
<color name="chrome_translucent">#80000000</color>
<color name="remote_translucent">#80ffffff</color>
<color name="widget_surface">@color/material_dynamic_primary95</color>
<color name="widget_surface_inverse">@color/material_dynamic_neutral80</color>
<color name="widget_on_surface_inverse">@color/material_dynamic_neutral95</color>
<color name="red_primary">#BC1714</color>
<color name="red_on_primary">#FFFFFF</color>
<color name="red_primary_container">#FFDAD3</color>
@@ -389,7 +393,5 @@
<color name="grey_surface_inverse">#1f1f1f</color>
<color name="grey_on_surface_inverse">#F0F0F0</color>
<color name="widget_surface">@color/material_dynamic_primary95</color>
<color name="widget_surface_inverse">@color/material_dynamic_neutral80</color>
<color name="widget_on_surface_inverse">@color/material_dynamic_neutral95</color>
<color name="dynamic_primary">@color/m3_ref_palette_dynamic_primary40</color>
</resources>
+1
View File
@@ -14,6 +14,7 @@
<dimen name="size_cover_compact">48dp</dimen>
<dimen name="size_cover_normal">56dp</dimen>
<dimen name="size_cover_mid_large">88dp</dimen>
<dimen name="size_cover_large">128dp</dimen>
<dimen name="size_cover_mid_huge">192dp</dimen>
<dimen name="size_cover_huge">256dp</dimen>