fix: sidebars dark bg on night style (#107)

This commit is contained in:
Jorge Mederos
2021-11-30 03:07:38 -05:00
committed by GitHub
parent 0d91764955
commit 3cbf86cf04
2 changed files with 2 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ function M.setup(config)
} }
if config.style == "night" or config.style == "day" or vim.o.background == "light" then if config.style == "night" or config.style == "day" or vim.o.background == "light" then
colors.bg = "#1a1b26" colors.bg = "#1a1b26"
colors.bg_dark = "#16161e"
end end
util.bg = colors.bg util.bg = colors.bg
util.day_brightness = config.dayBrightness util.day_brightness = config.dayBrightness

View File

@@ -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 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 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. 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. 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. 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. PmenuSbar = { bg = util.lighten(c.bg_popup, 0.95) }, -- Popup menu: scrollbar.