Transparent-mode corrections for SnacksPicker

This commit is contained in:
Webhooked
2025-05-08 09:15:24 +02:00
parent d380b66d81
commit 3cf33b0f15
3 changed files with 21 additions and 21 deletions
+5 -5
View File
@@ -41,7 +41,7 @@ function M.setup(colors, config)
-- ErrorMsg Error messages on the command line. -- ErrorMsg Error messages on the command line.
ErrorMsg = { fg = theme.diag.error }, ErrorMsg = { fg = theme.diag.error },
-- WinSeparator Separators between window splits. -- WinSeparator Separators between window splits.
WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or "NONE" }, WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },
VertSplit = { link = "WinSeparator" }, VertSplit = { link = "WinSeparator" },
-- Folded Line used for closed folds. -- Folded Line used for closed folds.
Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 }, Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 },
@@ -74,7 +74,7 @@ function M.setup(colors, config)
-- NonText '@' 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|. -- NonText '@' 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|.
NonText = { fg = theme.ui.nontext }, NonText = { fg = theme.ui.nontext },
-- Normal Normal text. -- Normal Normal text.
Normal = { fg = theme.ui.fg, bg = not config.transparent and theme.ui.bg or "NONE" }, 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 = theme.ui.float.bg },
-- FloatBorder Border of floating windows. -- FloatBorder Border of floating windows.
@@ -126,7 +126,7 @@ function M.setup(colors, config)
-- TabLineFill Tab pages line, where there are no labels. -- TabLineFill Tab pages line, where there are no labels.
TabLineFill = { bg = theme.ui.none }, TabLineFill = { bg = theme.ui.none },
-- TabLineSel Tab pages line, active tab page label. -- TabLineSel Tab pages line, active tab page label.
TabLineSel = { fg = theme.ui.fg_dim, bg = not config.transparent and theme.ui.bg_p1 or "NONE", bold = true }, TabLineSel = { fg = theme.ui.fg_dim, bg = not config.transparent and theme.ui.bg_p1 or theme.ui.none, bold = true },
-- Title Titles for output from ":set all", ":autocmd" etc. -- Title Titles for output from ":set all", ":autocmd" etc.
Title = { fg = theme.syn.fun, bold = true }, Title = { fg = theme.syn.fun, bold = true },
-- Visual Visual mode selection. -- Visual Visual mode selection.
@@ -140,9 +140,9 @@ function M.setup(colors, config)
-- WildMenu Current match in 'wildmenu' completion. -- WildMenu Current match in 'wildmenu' completion.
WildMenu = { link = "Pmenu" }, WildMenu = { link = "Pmenu" },
-- WinBar Window bar of current window. -- WinBar Window bar of current window.
WinBar = { fg = theme.ui.fg_dim, bg = "NONE" }, WinBar = { fg = theme.ui.fg_dim, bg = theme.ui.none },
-- WinBarNC Window bar of not-current windows. -- WinBarNC Window bar of not-current windows.
WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or "NONE" }, WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },
-- SignColumnSB = { link = "SignColumn" }, -- SignColumnSB = { link = "SignColumn" },
-- NormalSB = { link = "Normal" }, -- NormalSB = { link = "Normal" },
+14 -14
View File
@@ -39,7 +39,7 @@ function M.setup(colors, config)
TreesitterContext = { link = "Folded" }, TreesitterContext = { link = "Folded" },
TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none }, TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none },
-- Telescope -- Telescope
TelescopeBorder = { fg = theme.ui.float.fg_border, bg = theme.ui.bg }, TelescopeBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },
TelescopeTitle = { fg = theme.ui.special }, TelescopeTitle = { fg = theme.ui.special },
TelescopeSelection = { link = "CursorLine" }, TelescopeSelection = { link = "CursorLine" },
TelescopeSelectionCaret = { link = "CursorLineNr" }, TelescopeSelectionCaret = { link = "CursorLineNr" },
@@ -66,10 +66,10 @@ function M.setup(colors, config)
NvimTreeWinSeparator = { link = "WinSeparator" }, NvimTreeWinSeparator = { link = "WinSeparator" },
NvimTreeWindowPicker = { bg = theme.ui.bg_m1, fg = theme.syn.special1, bold = true }, NvimTreeWindowPicker = { bg = theme.ui.bg_m1, fg = theme.syn.special1, bold = true },
-- NeoTree -- NeoTree
NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and "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 "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 },
NeoTreeTabSeparatorInactive = { fg = theme.ui.special, bg = config.transparent and "NONE" or theme.ui.bg }, NeoTreeTabSeparatorInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },
NeoTreeTabSeparatorActive = { fg = theme.ui.fg_dim, bg = config.transparent and "NONE" or theme.ui.bg_p1 }, NeoTreeTabSeparatorActive = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },
NeoTreeRootName = { fg = theme.syn.identifier, bold = true }, NeoTreeRootName = { fg = theme.syn.identifier, bold = true },
NeoTreeModified = { link = "String" }, NeoTreeModified = { link = "String" },
NeoTreeGitModified = { fg = theme.vcs.changed }, NeoTreeGitModified = { fg = theme.vcs.changed },
@@ -467,24 +467,24 @@ function M.setup(colors, config)
NeotestUnknown = { fg = theme.syn.deprecated }, NeotestUnknown = { fg = theme.syn.deprecated },
NeotestWatching = { fg = theme.vcs.changed, }, NeotestWatching = { fg = theme.vcs.changed, },
SnacksPicker = { bg = theme.ui.bg }, SnacksPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerTitle = { fg = theme.ui.fg, bg = theme.ui.bg }, SnacksPickerTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none }, SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none },
SnacksPickerNormal = { fg = theme.ui.fg, bg = theme.ui.bg }, SnacksPickerNormal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerMatch = { fg = theme.ui.fg }, SnacksPickerMatch = { fg = theme.ui.fg },
SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg }, SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg },
SnacksPickerPrompt = { fg = theme.ui.fg }, SnacksPickerPrompt = { fg = theme.ui.fg },
SnacksPickerDim = { fg = theme.ui.fg_dim }, SnacksPickerDim = { fg = theme.ui.fg_dim },
SnacksInputIcon = { fg = theme.ui.fg, bg = theme.ui.bg }, SnacksInputIcon = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksIndent = { fg = theme.ui.indent_line, nocombine = true }, SnacksIndent = { fg = theme.ui.indent_line, nocombine = true },
SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true }, SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true },
SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true }, SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true },
SnacksPickerInputBorder = { fg = theme.ui.float.bg_border, bg = theme.ui.bg }, SnacksPickerInputBorder = { fg = theme.ui.float.bg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerInputTitle = { fg = theme.ui.bg, bg = theme.ui.bg }, SnacksPickerInputTitle = { fg = theme.ui.bg, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerBoxTitle = { fg = theme.ui.bg, bg = theme.ui.bg }, SnacksPickerBoxTitle = { fg = theme.ui.bg, bg = config.transparent and theme.ui.none or theme.ui.bg },
SnacksPickerSelected = { fg = theme.ui.bg }, SnacksPickerSelected = { fg = theme.ui.bg },
SnacksPickerPickWinCurrent = { fg = theme.ui.fg, bg = theme.ui.bg, bold = true }, SnacksPickerPickWinCurrent = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg, bold = true },
SnacksPickerPickWin = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = true }, SnacksPickerPickWin = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg_search, bold = true },
BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none }, BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none },
BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none }, BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none },
+1 -1
View File
@@ -95,7 +95,7 @@ function M.setup(colors, config)
-- markdownHeadingDelimiter = {}, -- markdownHeadingDelimiter = {},
markdownCode = { fg = theme.syn.string }, markdownCode = { fg = theme.syn.string },
markdownCodeBlock = { fg = theme.syn.string }, markdownCodeBlock = { fg = theme.syn.string },
markdownEscape = { fg = "NONE" }, markdownEscape = { fg = theme.ui.none },
-- markdownH1 = {}, -- markdownH1 = {},
-- markdownH2 = {}, -- markdownH2 = {},
-- markdownLinkText = {}, -- markdownLinkText = {},