Monday, 13 February 2023

Generating a Material3 theme based on a single arbitrary input color and applying it to Activities

I've set up my app to use Material3 colors roles and theme, and added an option to enable Material You support using DynamicColors.

However, I would also like the user to be able to select a single (preferably arbitrary) input color within the app, and have the app generate all the color roles and apply a theme from that. I feel like this should be possible somehow given that Material You is doing this based on the wallpaper colors, but don't really a way to do this for an arbitrary color. Is it possible?



from Generating a Material3 theme based on a single arbitrary input color and applying it to Activities

No comments:

Post a Comment