bakkeby / st-flexipatch

An st build with preprocessor directives to decide which patches to include during build time
MIT License
347 stars 107 forks source link

Remove black bars from sixel images and add... #107

Closed veltza closed 9 months ago

veltza commented 9 months ago

...support for transparency. Technically, the sixels do not have transparency, but empty pixels are now rendered with the current background color instead of black to make the them appear transparent. Same goes for the black bars. The current background color makes them disappear.

Before before

After after

There is one technical limitation with the alpha focus highlight patch. The alpha value and background color is taken from the current background color, so when the window is unfocused, images may have the wrong alpha and/or background color. This can't be fixed easily.

Ref. https://github.com/bakkeby/st-flexipatch/issues/102#issuecomment-1719963168

bakkeby commented 9 months ago

Looks good. I don't think the alpha focus highlight issue is worth spending time on. It may not even be feasible to fix.