neffo / bing-wallpaper-gnome-extension

GNOME shell extension that syncs your desktop & lock screen wallpaper to Microsoft Bing's Image of the Day.
https://extensions.gnome.org/extension/1262/bing-wallpaper-changer/
GNU General Public License v3.0
300 stars 56 forks source link

[Feature Request] Accent colors #158

Open leoheck opened 2 years ago

leoheck commented 2 years ago

It would be really nice to have an option to adjust desktop's accent color based on the wallpaper.

neffo commented 2 years ago

How would the accent colors be best determined? Is there another extension (or app) that has implemented this?

leoheck commented 2 years ago

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.