Lockscreen: improve blur visuals
The blur + darken wallpaper approach in 3.36 works well for dark wallpapers, but for light ones it can look a bit less nice, because you end up with a mushy gray background, with white text. A better approach for these wallpapers would be to lighten rather than darken then wallpaper, and use dark gray text instead of white.
@verdre and @exalm did some work to detect different types of wallpapers for the transparent panel a while ago, perhaps this could be used here?
There are also some other things we could do that I think could help improve the blur visuals, including
- add a color filter to make colors more saturated/vibrant in the blurred state
- don't darken with pure black, but a slightly tinted dark gray, based on extracting the dominant color from the image
- try to equalize the brigthness/saturation somewhat between different parts of the image
- check if the image is dark/light enough with just blur, and if so don't do any darkening/lightening
Edited by Tobias Bernard