zed icon indicating copy to clipboard operation
zed copied to clipboard

LSP "info" background and border not being overriden

Open seb-hyland opened this issue 10 months ago • 3 comments

Summary

The theme styles of info.background and info.border are not properly setting the popup colours. This does function properly for error and warning.

  • Open a theme json file and load that theme into Zed
  • Set info.background and info.border to some color for testing, e.g., #FF0000

Expected Behavior: info LSP alerts' hover popups change background and border colour to the new set colour Actual Behavior: They remain the default colour

Snippet from <themename>.json:

"info": "#b9d5eb",
"info.background": "#FF0000",
"info.border": "#FF0000",

This does function fine for error/warning:

"error": "#ff8a97",
"error.background": "#2A2A37",
"error.border": "#ff8a97",

The info underline renders properly, but the popup does not. This is true even if Zed is reloaded:

Image

Zed Version and System Specs

Zed: v0.181.6 (Zed) 
OS: Linux Wayland arch unknown
Memory: 7.7 GiB
Architecture: x86_64
GPU: Intel(R) HD Graphics 6000 (BDW GT3) || Intel open-source Mesa driver || Mesa 25.0.3-arch1.1

seb-hyland avatar Apr 16 '25 01:04 seb-hyland

I have also restarted the workspace, etc. and it does not work properly. Unless I am using the wrong theme attribute? But I do not believe so

seb-hyland avatar Apr 19 '25 09:04 seb-hyland

could you try adding an FF to the end of the colors like so and let me know if it works?

"info": "#b9d5ebFF",
"info.background": "#FF0000FF",
"info.border": "#FF0000FF",

probably-neb avatar May 30 '25 11:05 probably-neb

I eventually figured it out, it's actually hint not info

seb-hyland avatar May 30 '25 11:05 seb-hyland