tokyonight.nvim icon indicating copy to clipboard operation
tokyonight.nvim copied to clipboard

Does not dim night theme

Open balazser opened this issue 3 years ago • 1 comments

Thank you for the awesome theme!

The config

dim_inactive = false, -- dims inactive windows

works well for the storm theme but not for the night theme. This is probably because we set the bg_dark for the dim.

NormalNC = { fg = c.fg, bg = options.transparent and c.none or options.dim_inactive and c.bg_dark or c.bg }, -- normal text in non-current windows

Should the dim feature make the text darker than the background? 🤔

balazser avatar Sep 13 '22 15:09 balazser

I ran into this as well, but I was able to get around it by re-mapping the background color schemes for night theme:

require("tokyonight").setup({
  style = "night",
  dim_inactive = true,

  on_colors = function(colors)
    colors.bg = "#181818"
    colors.bg_dark = "#101010"
  end
})

JohnnyGOX17 avatar Feb 21 '23 16:02 JohnnyGOX17