Skip to content

Commit

Permalink
feat(transparency): remove more backgrounds (#205)
Browse files Browse the repository at this point in the history
* feat(transparency): remove border background

* chore(transparency): remove telescope selection caret background
  • Loading branch information
mvllow authored Jan 8, 2024
1 parent d884b25 commit c6d53a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/rose-pine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ local function set_highlights()

local function make_border(fg)
fg = fg or groups.border
return { fg = fg, bg = config.options.extend_background_behind_borders and palette.surface or "NONE" }
return {
fg = fg,
bg = (config.options.extend_background_behind_borders and not styles.transparency) and palette.surface
or "NONE",
}
end

local function make_title(fg)
Expand Down Expand Up @@ -600,7 +604,7 @@ local function set_highlights()
TelescopeNormal = { fg = palette.subtle, bg = "NONE" },
TelescopePromptNormal = { fg = palette.text, bg = "NONE" },
TelescopeSelection = { fg = palette.text, bg = "NONE", bold = styles.bold },
TelescopeSelectionCaret = { fg = palette.rose, bg = palette.rose },
TelescopeSelectionCaret = { fg = palette.rose },

WhichKeyFloat = { bg = "NONE" },
}
Expand Down

0 comments on commit c6d53a9

Please sign in to comment.