ITADN

When the background is transparent, the dim effect for inactive isn't great

#960OpenVentanYu 创建于 2025-11-30
bug
V
VentanYucommented
### Description When both `transparent_background = true`, `float = { transparent = true }`, and `dim_inactive` are set, it makes the inactive background opaque solid color. I think inactive text should be dimmed, while the floating window's background should have a semi-transparent color that is either brighter or darker. I'm not sure the latter is technically possible, but dimming the text alone can also effectively separate the content, allowing better focus on the currently active content. ### Neovim version ```markdown NVIM v0.12.0-dev-1707+g2c6469aca4-Homebrew Build type: Release LuaJIT 2.1.1744318430 ``` ### Terminal and multiplexer kitty 0.42.1 ### Catppuccin version / branch / rev catppuccin v1.11.0 ### Steps to reproduce ``` transparent_background = true, float = { transparent = true, }, term_colors = true, dim_inactive = { enabled = true, percentage = 0.1, }, ``` ### Expected behavior Dim the text, or differentiate with a semi-transparent background color ### Actual behavior <img width="1518" height="1372" alt="Image" src="https://github.com/user-attachments/assets/1943dfe4-d635-469d-add7-16a7e8c1e3e9" /> > This doesn't look good <img width="1638" height="628" alt="Image" src="https://github.com/user-attachments/assets/7a3b98f0-5a2c-464c-94dd-2ea53b96ef48" /> <img width="1638" height="628" alt="Image" src="https://github.com/user-attachments/assets/f16f6fbe-00f4-483e-b6c8-ed8015be28f4" /> > Difficult to identify when not set to dim inactive ### Repro ```Lua -- DO NOT change the paths and don't remove the colorscheme local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { "catppuccin/nvim", -- add any other plugins here } require("lazy").setup(plugins, { root = root .. "/plugins", }) vim.cmd.colorscheme("catppuccin") -- add anything else here ```
0 条评论