Open leoheck opened 2 years ago
How would the accent colors be best determined? Is there another extension (or app) that has implemented this?
I think there might be a bunch of methods. I would say that this is some kind of art. But if I was implementing this on the first try I would check the colors used on each pixel of the image. Then I would sort colors by the number of occurrences. The colors with more occurrences would-be candidates for the selected accent. Then you could have the policy to select a color that drops colors black-ish and white-ish colors if they are on top of the list.
You could use websites like this to check if this method makes sense. https://brandfolder.com/workbench/color-palette http://colormind.io/image/
Another idea would be checking how Android 12 does that. It has a similar feature.
It would be really nice to have an option to adjust desktop's accent color based on the wallpaper.