From 3cbf86cf045ea19253f9c8614863e22beb531868 Mon Sep 17 00:00:00 2001 From: Jorge Mederos <46798594+jmederosalvarado@users.noreply.github.com> Date: Tue, 30 Nov 2021 03:07:38 -0500 Subject: [PATCH] fix: sidebars dark bg on night style (#107) --- lua/tokyonight/colors.lua | 1 + lua/tokyonight/theme.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/tokyonight/colors.lua b/lua/tokyonight/colors.lua index 3f66e27..a2345a6 100644 --- a/lua/tokyonight/colors.lua +++ b/lua/tokyonight/colors.lua @@ -47,6 +47,7 @@ function M.setup(config) } if config.style == "night" or config.style == "day" or vim.o.background == "light" then colors.bg = "#1a1b26" + colors.bg_dark = "#16161e" end util.bg = colors.bg util.day_brightness = config.dayBrightness diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index d67fb1e..b9cf5b0 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -50,7 +50,7 @@ function M.setup(config) NormalNC = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text in non-current windows NormalSB = { fg = c.fg_sidebar, bg = c.bg_sidebar }, -- normal text in non-current windows NormalFloat = { fg = c.fg, bg = c.bg_float }, -- Normal text in floating windows. - FloatBorder = { fg = c.border_highlight }, + FloatBorder = { fg = c.border_highlight, bg = c.bg_float }, Pmenu = { bg = c.bg_popup, fg = c.fg }, -- Popup menu: normal item. PmenuSel = { bg = util.darken(c.fg_gutter, 0.8) }, -- Popup menu: selected item. PmenuSbar = { bg = util.lighten(c.bg_popup, 0.95) }, -- Popup menu: scrollbar.