emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.05k stars 141 forks source link

Alternating blocks of color in lsp-ui-doc #781

Open rdiaz02 opened 1 month ago

rdiaz02 commented 1 month ago

The help, for R, is displayed in alternating color blocks. This is jarring; for instance, this is how it looks using modus-operandi.

mo1

One of the colors is the background, but the other I have no idea what is, nor how I can control its color. I can remove the background by, in custom set faces, setting '(lsp-ui-doc-background ((t nil))): mo2

That improves things a bit by decreasing the contrast between blocks.

And then I can specify the background color, so as to match the color of the other block and that removes all contrast between blocks: mo3

This (in custom-set-faces) works for modus-vivendi and modus-operandi.

'(lsp-ui-doc-background ((((background light))
               :background "#f2f2f2")
                          (t :background "#1d1d1d")))

But, of course, it starts looking bad if I use other themes.

How can I get rid of the alternating pattern?

For what is worth, this does not happen with company-quickhelp, which I understand might be using a different input or ignoring all fancy color stuff: mo4

Edit: this could be related to: https://github.com/emacs-lsp/lsp-ui/issues/180 . Note that I am using (custom-set-faces '(nobreak-space ((t nil)))) as recommended there.

laluxx commented 6 days ago

The other face should be markdown-code-face