From 805272a2f0cbd237f4c40b0794fb214be5223ce8 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 5 Sep 2022 22:04:01 +0200 Subject: [PATCH] feat: added dim_inactive --- README.md | 1 + lua/tokyonight/config.lua | 1 + lua/tokyonight/theme.lua | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 81aa994..a810e48 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ require("tokyonight").setup({ sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` | day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors | hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. | + dim_inactive = false, -- dims inactive windows lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold | --- You can override specific color groups to use other groups or a hex color | diff --git a/lua/tokyonight/config.lua b/lua/tokyonight/config.lua index 68a9700..3c6a14f 100644 --- a/lua/tokyonight/config.lua +++ b/lua/tokyonight/config.lua @@ -19,6 +19,7 @@ local defaults = { sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]` | day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors | hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**. | + dim_inactive = true, -- dims inactive windows lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold | --- You can override specific color groups to use other groups or a hex color | diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index b08bb83..bb7ebec 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -59,7 +59,7 @@ function M.setup() MoreMsg = { fg = c.blue }, -- |more-prompt| NonText = { fg = c.dark3 }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|. Normal = { fg = c.fg, bg = config.transparent and c.none or c.bg }, -- normal text - 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 config.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. FloatBorder = { fg = c.border_highlight, bg = c.bg_float },