Skip to content

Commit

Permalink
fix: remove manual blend specifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 14, 2024
1 parent ade0b60 commit 8064465
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
4 changes: 0 additions & 4 deletions lua/astrotheme/groups/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
bold = true,
},
FloatBorder = {
Expand All @@ -37,7 +36,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
},
NormalFloat = {
fg = C.ui.text,
Expand All @@ -46,7 +44,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
},

--------------------
Expand All @@ -55,7 +52,6 @@ local function callback(opts)
Title = {
fg = (opts.title_invert and C.ui.tool) or C.ui.title,
bg = (opts.title_invert and C.ui.title) or C.ui.tool,
blend = vim.o.winblend or 0,
bold = true,
},

Expand Down
7 changes: 1 addition & 6 deletions lua/astrotheme/groups/plugins/spotlight.lua
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
---@type AstroThemeCallback
local function callback(opts)
local bg = (opts.float and C.ui.base) or (opts.transparent and C.none) or C.ui.base
local blend = vim.o.winblend or 0

return {
SpotlightTitle = {
fg = (opts.title_invert and C.ui.base) or C.ui.title,
bg = (opts.title_invert and C.ui.title) or (opts.transparent and C.none) or C.ui.base,
blend = opts.title_invert and 0 or vim.o.winblend or 0,
blend = opts.title_invert and 0 or nil,
bold = true,
},
SpotlightBorder = {
fg = opts.border and C.ui.border or C.ui.base,
bg = bg,
blend = blend,
},
SpotlightNormal = {
fg = C.ui.text,
bg = bg,
blend = blend,
},
SpotlightWinSeparator = {
fg = C.ui.inactive_base,
bg = opts.transparent and C.none or C.ui.inactive_base,
blend = blend,
},
SpotlightNormalNC = {
fg = C.syntax.text,
bg = opts.transparent and C.none or C.ui.inactive_base,
-- blend = blend,
},
}
end
Expand Down
6 changes: 0 additions & 6 deletions lua/astrotheme/groups/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
bold = true,
}

Expand All @@ -19,7 +18,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
}

local border = {
Expand All @@ -29,7 +27,6 @@ local function callback(opts)
or (opts.float and C.ui.float)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
}

return {
Expand All @@ -43,7 +40,6 @@ local function callback(opts)
or (opts.float and C.ui.prompt)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
bold = true,
},
TelescopeResultsTitle = title,
Expand All @@ -66,7 +62,6 @@ local function callback(opts)
or (opts.float and C.ui.prompt)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
},
TelescopeResultsNormal = normal,
TelescopePreviewNormal = normal,
Expand All @@ -83,7 +78,6 @@ local function callback(opts)
TelescopePromptBorder = {
fg = (opts.border and C.ui.border) or (opts.inactive and C.ui.base) or (opts.float and C.ui.prompt) or C.ui.base,
bg = (opts.border and opts.inactive and C.ui.base) or (opts.float and C.ui.prompt) or C.ui.prompt,
blend = vim.o.winblend or 0,
},
TelescopeResultsBorder = border,
TelescopePreviewBorder = border,
Expand Down

0 comments on commit 8064465

Please sign in to comment.