pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.87k stars 128 forks source link

background transparency alpha #425

Closed sebastinas closed 2 months ago

sebastinas commented 9 months ago

On GitLab by @asklow on Sep 28, 2023, 12:01


Give an option to enjoy background transparency under the compositor level.
Example: picom, compton, xcompmgr, etc on X11.
sway, river, hyperland, etc through wayland.

Apply it only on document background. Not for text, images and other graphical components.

sebastinas commented 6 months ago

On GitLab by @dogeystamp on Dec 16, 2023, 02:22


Hi, this should be already posssible with this configuration in zathurarc:

set recolor-lightcolor rgba(0,0,0,0)
set recolor true
sebastinas commented 6 months ago

On GitLab by @asklow on Dec 22, 2023, 22:28


That literally does nothing but dark mode. Tried modifying 4th (alpha) with (255,255,255,230), but didn't made any difference in the bg transparency. Am I missing something ?

sebastinas commented 5 months ago

On GitLab by @dogeystamp on Jan 8, 2024, 17:50


Apologies, I missed a necessary config line:

set recolor-darkcolor "#dddddd"
set recolor-lightcolor rgba(0,0,0,0)
set default-bg "#000000ff"
set recolor true

I can confirm this specific configuration works.

sebastinas commented 4 months ago

That appears to be solved.