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 are not discernible when dim_inactive = true #316

Open
miguelbarao opened this issue Jan 23, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@miguelbarao
Copy link

Describe the bug

When dim_inactive = true, floating windows like Lazy and Mason have the background colors messed up.
Opening a floating window sets both backgrounds of the front and back windows to the same color, making them indistinguishable. This happens with all three contrasts.

My configuration with lazy nvim is:

  {
    'ellisonleao/gruvbox.nvim',
    enabled = true,
    event = 'VeryLazy',
    lazy = true,
    keys = { '<F54>', '<Cmd>colorscheme gruvbox', desc = 'Gruvbox (colorscheme)' },
    priority = 1000, -- load before the other start plugins
    opts = {
      contrast = 'soft', -- 'hard', 'soft', ''
      dim_inactive = true,
      overrides = {
        -- NormalFloat = { bg = '#32302f' }, -- make floating windows discernible
        SignColumn = { bg = '#32302f' }, -- fix bg color
      },
    },
    config = function(_, opts)
      require('gruvbox').setup(opts)
      vim.keymap.set('n', '<F54>', '<Cmd>colorscheme gruvbox<CR>')
    end,
  },

Expected behaviour

The background color of the floating window should be set to a different contrast because it's "active".

Screenshots

No response

@miguelbarao miguelbarao added the bug Something isn't working label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants