github-nvim-theme icon indicating copy to clipboard operation
github-nvim-theme copied to clipboard

github light high contrast: Floating window has same color as background

Open bluss opened this issue 1 year ago • 1 comments

Using nvim v0.9.5, github-nvim-theme d832925 with lazy.nvim package manager.

It looks like Normal and NormalFloat have the same background color, and this means that things like hover floaters (using NormalFloat) wash out against the background. github light default does not have this problem.

Both light/dark high contrast themes have this same issue.

bluss avatar May 09 '24 09:05 bluss

Thanks for reporting this. You are right, and this only affects github_light_high_contrast and github_dark_high_contrast.

Screenshot 2024-07-11 at 1 19 10 PM

https://github.com/projekt0n/github-nvim-theme/blob/6829ce38c1337c5858f7d1abd2c84a492c2c46b3/lua/github-theme/palette/primitives/light_high_contrast.lua#L410-L415

https://github.com/projekt0n/github-nvim-theme/blob/6829ce38c1337c5858f7d1abd2c84a492c2c46b3/lua/github-theme/palette/primitives/dark_high_contrast.lua#L410-L415

canvas.default is used for spec.bg1 (global bg), and canvas.inset is used for spec.bg0 (darkened bg)

We might need manual/custom overrides for these two themes (for spec.bg0). In the meantime, you can configure spec.bg0 via setup() locally.

tmillr avatar Jul 11 '24 20:07 tmillr