Skip to content

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

Open
@rdiaz02

Description

@rdiaz02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions