mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
chore: improve float transparency
This commit is contained in:
parent
703946dd54
commit
e1ffc902e8
2 changed files with 9 additions and 6 deletions
|
|
@ -470,7 +470,7 @@ local function set_highlights()
|
||||||
-- nvim-telescope/telescope.nvim
|
-- nvim-telescope/telescope.nvim
|
||||||
TelescopeBorder = make_border(),
|
TelescopeBorder = make_border(),
|
||||||
TelescopeMatching = { fg = palette.rose },
|
TelescopeMatching = { fg = palette.rose },
|
||||||
TelescopeNormal = { bg = groups.panel },
|
TelescopeNormal = { link = "NormalFloat" },
|
||||||
TelescopePromptNormal = { link = "TelescopeNormal" },
|
TelescopePromptNormal = { link = "TelescopeNormal" },
|
||||||
TelescopePromptPrefix = { fg = palette.subtle },
|
TelescopePromptPrefix = { fg = palette.subtle },
|
||||||
TelescopeSelection = { fg = palette.text, bg = palette.overlay },
|
TelescopeSelection = { fg = palette.text, bg = palette.overlay },
|
||||||
|
|
@ -587,10 +587,10 @@ local function set_highlights()
|
||||||
TabLineFill = { bg = "NONE" },
|
TabLineFill = { bg = "NONE" },
|
||||||
TabLineSel = { fg = palette.text, bg = "NONE", bold = styles.bold },
|
TabLineSel = { fg = palette.text, bg = "NONE", bold = styles.bold },
|
||||||
|
|
||||||
TelescopeNormal = { fg = palette.text, bg = "NONE" },
|
TelescopeNormal = { fg = palette.subtle, bg = "NONE" },
|
||||||
TelescopePromptNormal = { fg = palette.text, bg = "NONE" },
|
TelescopePromptNormal = { fg = palette.text, bg = "NONE" },
|
||||||
TelescopeSelection = { fg = palette.text, bg = "NONE", bold = styles.bold },
|
TelescopeSelection = { fg = palette.text, bg = "NONE", bold = styles.bold },
|
||||||
TelescopeSelectionCaret = { fg = palette.rose, bg = "NONE" },
|
TelescopeSelectionCaret = { fg = palette.rose, bg = palette.rose },
|
||||||
|
|
||||||
WhichKeyFloat = { bg = "NONE" },
|
WhichKeyFloat = { bg = "NONE" },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ config.options = {
|
||||||
-- dim_nc_background = false,
|
-- dim_nc_background = false,
|
||||||
---@deprecated Replaced by `options.enable.transparency`
|
---@deprecated Replaced by `options.enable.transparency`
|
||||||
-- disable_background = false,
|
-- disable_background = false,
|
||||||
---@deprecated Replaced by `options.enable.transparency`
|
---@deprecated Replaced by `options.highlight_groups["NormalFloat"]`
|
||||||
-- disable_float_background = false,
|
-- disable_float_background = false,
|
||||||
---@deprecated Replaced by `options.styles.italic`
|
---@deprecated Replaced by `options.styles.italic`
|
||||||
-- disable_italics = false,
|
-- disable_italics = false,
|
||||||
|
|
@ -101,6 +101,10 @@ local function migrate(options)
|
||||||
options.highlight_groups["VertSplit"] = { fg = "muted", bg = "muted" }
|
options.highlight_groups["VertSplit"] = { fg = "muted", bg = "muted" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if options.disable_float_background then
|
||||||
|
options.highlight_groups["NormalFloat"] = { bg = "NONE" }
|
||||||
|
end
|
||||||
|
|
||||||
options.dim_inactive_windows = options.dim_nc_background or options.dim_inactive_windows
|
options.dim_inactive_windows = options.dim_nc_background or options.dim_inactive_windows
|
||||||
|
|
||||||
if options.groups.background ~= nil then
|
if options.groups.background ~= nil then
|
||||||
|
|
@ -115,8 +119,7 @@ local function migrate(options)
|
||||||
options.highlight_groups["@punctuation"] = { fg = options.groups.punctuation }
|
options.highlight_groups["@punctuation"] = { fg = options.groups.punctuation }
|
||||||
end
|
end
|
||||||
|
|
||||||
options.styles.transparency = (options.disable_background or options.disable_float_background)
|
options.styles.transparency = options.disable_background or options.styles.transparency
|
||||||
or options.styles.transparency
|
|
||||||
|
|
||||||
-- These never actually existed, but may be set intuitively by the user
|
-- These never actually existed, but may be set intuitively by the user
|
||||||
-- because of `disable_italics` existing.
|
-- because of `disable_italics` existing.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue