Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Monet / Dynamic theme on all devices (Sort of) #1

Open
prathameshmm02 opened this issue Apr 28, 2022 · 0 comments
Open

Implement Monet / Dynamic theme on all devices (Sort of) #1

prathameshmm02 opened this issue Apr 28, 2022 · 0 comments

Comments

@prathameshmm02
Copy link
Owner

We have 19 Material3 themes at our disposal. So, the idea is to get the primary color from the wallpaper with the help of WallpaperManager (or Palette API on lower than Android 8.1 devices) and compare it with the array of primary colors of the M3 themes we have, and get the closest color to the primary color of the wallpaper from the array. HSL Color space has given the best results so far by ignoring L(lightness) in the process of trial and error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant