A gnome-shell extension to set overview and panel background color to wallpaper's primary color.
NB: this extension is currently only made as a design test, most importantly for https://gitlab.gnome.org/Teams/Design/whiteboards/-/issues/21. It contains bugs, but fixing side issues is for the moment not intended, as I try to adjust the design for the best before removing bugs and pushing it to https://extensions.gnome.org.
You will need python3
along with python's PIL
, which you can install with pip install pillow
.
You can install the extension locally with:
make install
You can build a pkg with
make pkg
Don't forget to reload the shell after installing, and to enable the extension.
Normal wallpaper 1:
Normal wallpaper 2:
Very bright wallpaper:
Very dark wallpaper:
You can test changing the colour settings by changing the transform_color
in src/extension.js
.
It currently keeps the same hue (h = hue
), makes the lightness quite dark (l = Math.max(0.12, Math.min(0.2, 0.15 + (lightness - 0.4) / 5))
, so it keeps it between 0.12 and 0.20, and tries to adjust it to still have darker wallpaper making darker grey), and remove some saturation (s = saturation / 2.7
).
The best thing to tweak here probably is for the saturation, and maybe adjusting it with the lightness too would be good (for example s = saturation / ((7*lightness) + 0.1)
is quite good, but has some problems with very dark/light wallpapers.