From a9f4933221c315037cc6700e964ce4d97f074206 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 7 Nov 2022 15:09:32 +0100 Subject: [PATCH] fix: darker fg for floats --- lua/tokyonight/colors.lua | 4 +++- lua/tokyonight/theme.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/tokyonight/colors.lua b/lua/tokyonight/colors.lua index 6d49490..aa5e946 100644 --- a/lua/tokyonight/colors.lua +++ b/lua/tokyonight/colors.lua @@ -135,11 +135,13 @@ function M.setup(opts) colors.bg_float = config.options.styles.floats == "transparent" and colors.none 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_search = colors.blue0 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.warning = colors.yellow diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index d3cfe2f..45c8d9f 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -62,7 +62,7 @@ function M.setup() 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 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 }, 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.