pwmt / zathura

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

Synctex Highlights stack, completely obscure text #71

Closed sebastinas closed 5 months ago

sebastinas commented 6 years ago

On GitLab by @max-te on Jul 30, 2018, 16:21


I am using zathura as a viewer with LaTeXTools for Sublime Text. Lines highlighted via synctex seem to be highlighted to varying degrees of opacity. Sometimes this can lead to completely unreadable text as seen here: image

set highlight-transparency 0.05 alleviates this a bit, but leads to the highlighting being barely visible in other sections.

sebastinas commented 4 years ago

On GitLab by @dwap on Nov 8, 2019, 09:47


Same problem here, can be very annoying when using sync. I am wondering: is it really a zathura problem, or is just zathura being called with multiple overlapping highlight areas? Is there any workaround? Reducing the transparency as mentioned is not really a solution, but maybe there is a way to just draw the borders of the rectangle somehow rather than playing with the highlight color? I don't see anything related in the config though.

sebastinas commented 4 years ago

Fixed thanks to https://github.com/pwmt/zathura/pull/36

sebastinas commented 4 years ago

closed

BachoSeven commented 5 months ago

@sebastinas I'm currently experiencing this same problem with both normal search highlight and Synctex, on Zathura 0.5.5 with zathura-pdf-mupdf 0.4.1 on Arch Linux (but it's been happening for a few months) with DWM. I've tried de-activating picom but the compositor doesn't seem to have anything to do with it.

Any clues as to why it is happening?

BachoSeven commented 5 months ago

I think I got it, something must've changed in a (relatively) recent version regarding the configuration of the search highlight colors (highlight-color and highlight-active-color), I had them set to a simple HEX value while the default seems to be RGBA with 0.5 transparency.

I guess perhaps the fallback alpha value in this case shouldn't be 1 though(?)

dmadisetti commented 5 months ago

I've been having this issue for 1-2 months now, but the default seems to work strangely.

dmadisetti commented 5 months ago

Cool, https://github.com/pwmt/zathura/commit/fb2b5da84b7f6b0c003ea58edbdb1c2524ab387e

Transparency is defined on the highlight now. For transparency, must be in rgba format. e.g.

set highlight-active-color      rgba(0,188,0,0.5)