Fix for transparent background support
This commit is contained in:
@@ -76,21 +76,21 @@ function M.setup(colors, config)
|
|||||||
-- Normal Normal text.
|
-- Normal Normal text.
|
||||||
Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },
|
Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },
|
||||||
-- NormalFloat Normal text in floating windows.
|
-- NormalFloat Normal text in floating windows.
|
||||||
NormalFloat = { fg = theme.ui.float.fg, bg = theme.ui.float.bg },
|
NormalFloat = { fg = theme.ui.float.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg },
|
||||||
-- FloatBorder Border of floating windows.
|
-- FloatBorder Border of floating windows.
|
||||||
FloatBorder = { fg = theme.ui.float.fg_border, bg = theme.ui.float.bg_border },
|
FloatBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },
|
||||||
-- FloatTitle Title of floating windows.
|
-- FloatTitle Title of floating windows.
|
||||||
FloatTitle = { fg = theme.ui.special, bg = theme.ui.float.bg_border, bold = true },
|
FloatTitle = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border, bold = true },
|
||||||
-- FloatFooter Footer of floating windows.
|
-- FloatFooter Footer of floating windows.
|
||||||
FloatFooter = { fg = theme.ui.nontext, bg = theme.ui.float.bg_border },
|
FloatFooter = { fg = theme.ui.nontext, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },
|
||||||
-- NormalNC Normal text in non-current windows.
|
-- NormalNC Normal text in non-current windows.
|
||||||
NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = "Normal" },
|
NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = "Normal" },
|
||||||
-- Pmenu Popup menu: Normal item.
|
-- Pmenu Popup menu: Normal item.
|
||||||
Pmenu = { fg = theme.ui.pmenu.fg, bg = theme.ui.pmenu.bg },
|
Pmenu = { fg = theme.ui.pmenu.fg, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },
|
||||||
-- PmenuSel Popup menu: Selected item.
|
-- PmenuSel Popup menu: Selected item.
|
||||||
PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },
|
PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },
|
||||||
-- PmenuKind Popup menu: Normal item "kind".
|
-- PmenuKind Popup menu: Normal item "kind".
|
||||||
PmenuKind = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg },
|
PmenuKind = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },
|
||||||
-- PmenuKindSel Popup menu: Selected item "kind".
|
-- PmenuKindSel Popup menu: Selected item "kind".
|
||||||
PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },
|
PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },
|
||||||
-- PmenuExtra Popup menu: Normal item "extra text".
|
-- PmenuExtra Popup menu: Normal item "extra text".
|
||||||
@@ -98,13 +98,13 @@ function M.setup(colors, config)
|
|||||||
-- PmenuExtraSel Popup menu: Selected item "extra text".
|
-- PmenuExtraSel Popup menu: Selected item "extra text".
|
||||||
PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },
|
PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },
|
||||||
-- PmenuSbar Popup menu: Scrollbar.
|
-- PmenuSbar Popup menu: Scrollbar.
|
||||||
PmenuSbar = { bg = theme.ui.pmenu.bg_sbar },
|
PmenuSbar = { bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg_sbar },
|
||||||
-- PmenuThumb Popup menu: Thumb of the scrollbar.
|
-- PmenuThumb Popup menu: Thumb of the scrollbar.
|
||||||
PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },
|
PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },
|
||||||
-- Question |hit-enter| prompt and yes/no questions.
|
-- Question |hit-enter| prompt and yes/no questions.
|
||||||
Question = { link = "MoreMsg" },
|
Question = { link = "MoreMsg" },
|
||||||
-- QuickFixLine Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
-- QuickFixLine Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
||||||
QuickFixLine = { bg = theme.ui.bg_p1 },
|
QuickFixLine = { bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },
|
||||||
-- Search Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
-- Search Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
||||||
Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },
|
Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },
|
||||||
-- SpecialKey Unprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
-- SpecialKey Unprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ function M.setup(colors, config)
|
|||||||
NvimTreeExecFile = { fg = theme.syn.string, bold = true },
|
NvimTreeExecFile = { fg = theme.syn.string, bold = true },
|
||||||
NvimTreeOpenedFile = { fg = theme.syn.special1, italic = not config.disableItalics },
|
NvimTreeOpenedFile = { fg = theme.syn.special1, italic = not config.disableItalics },
|
||||||
NvimTreeWinSeparator = { link = "WinSeparator" },
|
NvimTreeWinSeparator = { link = "WinSeparator" },
|
||||||
NvimTreeWindowPicker = { bg = theme.ui.bg_m1, fg = theme.syn.special1, bold = true },
|
NvimTreeWindowPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg_m1, fg = theme.syn.special1, bold = true },
|
||||||
-- NeoTree
|
-- NeoTree
|
||||||
NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },
|
NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },
|
||||||
NeoTreeTabActive = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1, bold = true },
|
NeoTreeTabActive = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1, bold = true },
|
||||||
@@ -92,7 +92,7 @@ function M.setup(colors, config)
|
|||||||
DashboardKey = { fg = theme.syn.special1 },
|
DashboardKey = { fg = theme.syn.special1 },
|
||||||
DashboardIcon = { fg = theme.ui.special },
|
DashboardIcon = { fg = theme.ui.special },
|
||||||
-- Notify
|
-- Notify
|
||||||
NotifyBackground = { bg = theme.ui.bg },
|
NotifyBackground = { bg = config.transparent and theme.ui.none or theme.ui.bg },
|
||||||
NotifyERRORBorder = { link = "DiagnosticError" },
|
NotifyERRORBorder = { link = "DiagnosticError" },
|
||||||
NotifyWARNBorder = { link = "DiagnosticWarn" },
|
NotifyWARNBorder = { link = "DiagnosticWarn" },
|
||||||
NotifyINFOBorder = { link = "DiagnosticInfo" },
|
NotifyINFOBorder = { link = "DiagnosticInfo" },
|
||||||
@@ -142,7 +142,7 @@ function M.setup(colors, config)
|
|||||||
DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68"
|
DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68"
|
||||||
DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242"
|
DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242"
|
||||||
-- Floaterm
|
-- Floaterm
|
||||||
FloatermBorder = { fg = theme.ui.float.fg_border, bg = theme.ui.bg },
|
FloatermBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },
|
||||||
-- NeoVim = {},
|
-- NeoVim = {},
|
||||||
healthError = { fg = theme.diag.error },
|
healthError = { fg = theme.diag.error },
|
||||||
healthSuccess = { fg = theme.diag.ok },
|
healthSuccess = { fg = theme.diag.ok },
|
||||||
@@ -358,8 +358,8 @@ function M.setup(colors, config)
|
|||||||
MiniFilesDirectory = { link = "Directory" },
|
MiniFilesDirectory = { link = "Directory" },
|
||||||
MiniFilesFile = { fg = theme.ui.fg },
|
MiniFilesFile = { fg = theme.ui.fg },
|
||||||
MiniFilesNormal = { link = "NormalFloat" },
|
MiniFilesNormal = { link = "NormalFloat" },
|
||||||
MiniFilesTitle = { fg = theme.ui.special, bg = theme.ui.float.bg_border, bold = true },
|
MiniFilesTitle = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border, bold = true },
|
||||||
MiniFilesTitleFocused = { fg = theme.ui.fg, bg = theme.ui.float.bg_border, bold = true },
|
MiniFilesTitleFocused = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border, bold = true },
|
||||||
|
|
||||||
MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = true },
|
MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = true },
|
||||||
MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = true },
|
MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = true },
|
||||||
@@ -409,7 +409,7 @@ function M.setup(colors, config)
|
|||||||
MiniPickNormal = { link = "NormalFloat" },
|
MiniPickNormal = { link = "NormalFloat" },
|
||||||
MiniPickPreviewLine = { link = "CursorLine" },
|
MiniPickPreviewLine = { link = "CursorLine" },
|
||||||
MiniPickPreviewRegion = { link = "IncSearch" },
|
MiniPickPreviewRegion = { link = "IncSearch" },
|
||||||
MiniPickPrompt = { fg = theme.syn.fun, bg = theme.ui.float.bg_border },
|
MiniPickPrompt = { fg = theme.syn.fun, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },
|
||||||
|
|
||||||
MiniStarterCurrent = { nocombine = true },
|
MiniStarterCurrent = { nocombine = true },
|
||||||
MiniStarterFooter = { fg = theme.syn.deprecated },
|
MiniStarterFooter = { fg = theme.syn.deprecated },
|
||||||
@@ -421,9 +421,9 @@ function M.setup(colors, config)
|
|||||||
MiniStarterSection = { fg = theme.diag.ok },
|
MiniStarterSection = { fg = theme.diag.ok },
|
||||||
MiniStarterQuery = { fg = theme.diag.info },
|
MiniStarterQuery = { fg = theme.diag.info },
|
||||||
|
|
||||||
MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = theme.ui.bg_p1 },
|
MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },
|
||||||
MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = theme.ui.bg_p1 },
|
MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },
|
||||||
MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim },
|
MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_dim },
|
||||||
MiniStatuslineInactive = { link = "StatusLineNC" },
|
MiniStatuslineInactive = { link = "StatusLineNC" },
|
||||||
MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = true },
|
MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = true },
|
||||||
MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = true },
|
MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = true },
|
||||||
@@ -434,7 +434,7 @@ function M.setup(colors, config)
|
|||||||
|
|
||||||
MiniSurround = { link = "IncSearch" },
|
MiniSurround = { link = "IncSearch" },
|
||||||
|
|
||||||
MiniTablineCurrent = { fg = theme.ui.fg_dim, bg = theme.ui.bg_p1, bold = true },
|
MiniTablineCurrent = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1, bold = true },
|
||||||
MiniTablineFill = { link = "TabLineFill" },
|
MiniTablineFill = { link = "TabLineFill" },
|
||||||
MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },
|
MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },
|
||||||
MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = true },
|
MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = true },
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ return {
|
|||||||
zen = function(palette)
|
zen = function(palette)
|
||||||
return {
|
return {
|
||||||
ui = {
|
ui = {
|
||||||
|
none = "NONE",
|
||||||
fg = palette.inkWhite,
|
fg = palette.inkWhite,
|
||||||
fg_dim = palette.oldWhite,
|
fg_dim = palette.oldWhite,
|
||||||
fg_reverse = palette.zenBlue1,
|
fg_reverse = palette.zenBlue1,
|
||||||
@@ -208,6 +209,7 @@ return {
|
|||||||
ink = function(palette)
|
ink = function(palette)
|
||||||
return {
|
return {
|
||||||
ui = {
|
ui = {
|
||||||
|
none = "NONE",
|
||||||
fg = palette.inkWhite,
|
fg = palette.inkWhite,
|
||||||
fg_dim = palette.oldWhite,
|
fg_dim = palette.oldWhite,
|
||||||
fg_reverse = palette.zenBlue1,
|
fg_reverse = palette.zenBlue1,
|
||||||
@@ -318,6 +320,7 @@ return {
|
|||||||
pearl = function(palette)
|
pearl = function(palette)
|
||||||
return {
|
return {
|
||||||
ui = {
|
ui = {
|
||||||
|
none = "NONE",
|
||||||
fg = palette.pearlInk0,
|
fg = palette.pearlInk0,
|
||||||
fg_dim = palette.pearlInk0,
|
fg_dim = palette.pearlInk0,
|
||||||
fg_reverse = palette.pearlGray,
|
fg_reverse = palette.pearlGray,
|
||||||
|
|||||||
Reference in New Issue
Block a user