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

bug: Floating windows not transparent (always dark variant) #321

Open
sujanbasnet opened this issue Oct 15, 2024 · 2 comments
Open

bug: Floating windows not transparent (always dark variant) #321

sujanbasnet opened this issue Oct 15, 2024 · 2 comments
Labels

Comments

@sujanbasnet
Copy link

Neovim version (nvim -v)

NVIM v0.10.1 Build type: RelWithDebInfo LuaJIT 2.1.1713484068

Terminal / multiplexer

iTerm2 Build 3.5.5 / Tmux 3.5

Describe the bug

With transparency = true and on rose-pine-dawn floating windows are of dark variant.

image

Repro

vim.o.packpath = "/tmp/nvim/site"

local plugins = {
  rose_pine = "https://github.com/rose-pine/neovim",
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}

for name, url in pairs(plugins) do
  local install_path = "/tmp/nvim/site/pack/test/start/" .. name
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
  end
end

require("rose-pine").setup({
  -- ADD ROSÉ PINE CONFIG THAT IS _NECESSARY_ TO REPRODUCE THE ISSUE
  styles = {
    transparency = true,
  }
})

vim.cmd("colorscheme rose-pine-dawn")
@joaopedroaat
Copy link

2024-11-14-232749_hyprshot

Same here

@mvllow
Copy link
Member

mvllow commented Jan 8, 2025

I'm unable to reproduce this for both pmenu (pictured below) or any floating window. What is the output of :echo &bg?

Screenshot 2025-01-08 alle 09 15 16

Screenshot 2025-01-08 alle 09 14 53

Screenshot 2025-01-08 alle 09 22 28

The screenshots were not using this trick but maybe try an nvim alias to set the vim background based on system, e.g. for fish shell on macOS:

function nvim -w nvim -d "Start Neovim with adaptive background"
    set mode light
    defaults read -g AppleInterfaceStyle >/dev/null 2>&1

    if test $status -eq 0
        set mode dark
    end

    command nvim -c "set background=$mode" $argv
end

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

No branches or pull requests

3 participants