IDE flashing non-selection colors

Now here’s an odd behavior… any guesses? How to fix?

(The flashing highlight while executing code also causes all plain-colored text in the same line to darken.)

hjh

I first thought this was a bug of the dracula theme, but actually every theme has the behavior of “hightlighting” code in the same line after the selection with a black border, see

There is probably a bug in this method?

edit: most likely these loc?

These set some hardcoded black color for the foreground, which could be responsible for the observed effect?