Skip to content

Transparent windows don't translate well to multigrid. #1626

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

Closed
FlafyDev opened this issue Nov 4, 2022 · 3 comments · Fixed by #1977
Closed

Transparent windows don't translate well to multigrid. #1626

FlafyDev opened this issue Nov 4, 2022 · 3 comments · Fixed by #1977
Labels
enhancement New feature or request

Comments

@FlafyDev
Copy link

FlafyDev commented Nov 4, 2022

Is your feature request related to a problem? Please describe.
In Neovim I have my Telescope window transparent like this:
image

But when enabling Multigrid, because it makes all windows see through, the Telescope window merges with the contents behind, making it unreadable.

image

Describe the solution you'd like
I'd like to be able to choose whether or not I want floating windows to be see through. Currently the only way to hide the content behind them is by setting a background color to the floating window, which doesn't solve my issue.

Describe alternatives you've considered
Another solution would be being able to set the opacity for the content behind the floating window.

Additional context
I think this can be easily understood from the screenshots, but I insist on making my floating windows transparent because my terminal is also transparent and I'd like the regular windows and the floating windows to share the same background, which isn't a solid color.

@FlafyDev FlafyDev added the enhancement New feature or request label Nov 4, 2022
@FlafyDev FlafyDev changed the title Transparent windows doesn't translate well to multigrid. Transparent windows don't translate well to multigrid. Nov 4, 2022
@MultisampledNight
Copy link
Contributor

Thanks for reporting!

Depending on if you're running on git main, this is actually already implemented through the neovim winblend option. It controls the transparency of floating windows, similarly the pumblend option does this for pop-up menus.

A release containing the change respecting these two options will probably be pushed tomorrow, though who knows when that'll get into nixpkgs.

Let me know if that's actually missing the point you're having, because 100% transparency without blur is in no case the default I believe.

@FlafyDev
Copy link
Author

FlafyDev commented Nov 5, 2022

Thanks for reporting!

Depending on if you're running on git main, this is actually already implemented through the neovim winblend option. It controls the transparency of floating windows, similarly the pumblend option does this for pop-up menus.

A release containing the change respecting these two options will probably be pushed tomorrow, though who knows when that'll get into nixpkgs.

Let me know if that's actually missing the point you're having, because 100% transparency without blur is in no case the default I believe.

Oh, I'm actually using a fork of 0.9.0 so I can use Neovide in Wayland(wlroots). Was kind of stupid of me to report before trying to update to the latest version first...

I'll try to update and then respond here again

@MultisampledNight
Copy link
Contributor

Most floating windows can be configured globally through the winblend option in a range between 0 (opaque) and 100 transparent, telescope however uses its configuration option telescope.defaults.winblend instead, see :help telescope.defaults.winblend. Example configuration of telescope would be

require("telescope").setup({
    defaults = {
      winblend = 70
    }
})

Closing as most likely outdated.

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

Successfully merging a pull request may close this issue.

2 participants