demetrisk03 / custom-accent-colors

A GNOME Shell Extension that provides 7 custom accent colors. The selected accent color can be applied to GTK4/GTK3 apps and the GNOME Shell.
https://extensions.gnome.org/extension/5547/custom-accent-colors
GNU General Public License v3.0
71 stars 14 forks source link

Wallpaper accent color? #36

Closed HironTez closed 5 months ago

HironTez commented 5 months ago

Hi. What do you think about adding a function to extract the accent color from a current desktop wallpaper automatically? It can be easily extracted using the 'node-vibrant' library.

import Vibrant from "node-vibrant";
const colors = await Vibrant.from(wallpaper).getPalette();
const accentColor = colors.LightVibrant;

Sorry for the duplicate, just wanted to show an easy solution for this.

demetrisk03 commented 5 months ago

hey @HironTez , that's indeed an easy way to get the accent color from the wallpaper, but the problem is that for the gnome shell (not the gtk apps) to use this color, the entire gnome-shell.css theme must be recompiled. the extension currently ships with 8 gnome shell themes (one for every accent color).

HironTez commented 5 months ago

Thank you for the reply! Yeah, looks like that's a big problem. Sorry for bothering you

demetrisk03 commented 5 months ago

you didn't bother me at all, any suggestion is always welcome even if it doesn't get implemented in the end :)