fix: darker fg for floats

This commit is contained in:
Folke Lemaitre
2022-11-07 15:09:32 +01:00
parent d6dcfa2c9c
commit a9f4933221
2 changed files with 4 additions and 2 deletions

View File

@@ -135,11 +135,13 @@ function M.setup(opts)
colors.bg_float = config.options.styles.floats == "transparent" and colors.none colors.bg_float = config.options.styles.floats == "transparent" and colors.none
or config.options.styles.floats == "dark" and colors.bg_dark or config.options.styles.floats == "dark" and colors.bg_dark
or "NONE" or colors.bg
colors.bg_visual = util.darken(colors.blue0, 0.7) colors.bg_visual = util.darken(colors.blue0, 0.7)
colors.bg_search = colors.blue0 colors.bg_search = colors.blue0
colors.fg_sidebar = colors.fg_dark colors.fg_sidebar = colors.fg_dark
-- colors.fg_float = config.options.styles.floats == "dark" and colors.fg_dark or colors.fg
colors.fg_float = colors.fg_dark
colors.error = colors.red1 colors.error = colors.red1
colors.warning = colors.yellow colors.warning = colors.yellow

View File

@@ -62,7 +62,7 @@ function M.setup()
Normal = { fg = c.fg, bg = options.transparent and c.none or c.bg }, -- normal text Normal = { fg = c.fg, bg = options.transparent and c.none or c.bg }, -- normal text
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 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
NormalSB = { fg = c.fg_sidebar, bg = c.bg_sidebar }, -- normal text in sidebar NormalSB = { fg = c.fg_sidebar, bg = c.bg_sidebar }, -- normal text in sidebar
NormalFloat = { fg = c.fg, bg = c.bg_float }, -- Normal text in floating windows. NormalFloat = { fg = c.fg_float, bg = c.bg_float }, -- Normal text in floating windows.
FloatBorder = { fg = c.border_highlight, bg = c.bg_float }, 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.