Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rdiaz02 opened this issue Oct 12, 2024 · 1 comment
Open

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

rdiaz02 opened this issue Oct 12, 2024 · 1 comment

Comments

@rdiaz02
Copy link

rdiaz02 commented Oct 12, 2024

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: #180 . Note that I am using (custom-set-faces '(nobreak-space ((t nil)))) as recommended there.

@laluxx
Copy link

laluxx commented Nov 8, 2024

The other face should be markdown-code-face

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants