mirror of
https://github.com/gabehf/base46.git
synced 2026-03-17 03:06:30 -07:00
add transparency support for tabufline #217
This commit is contained in:
parent
a88ada931f
commit
f1ad901512
1 changed files with 22 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
local colors = require("base46").get_theme_tb "base_30"
|
local colors = require("base46").get_theme_tb "base_30"
|
||||||
|
|
||||||
return {
|
local config = require("core.utils").load_config().ui
|
||||||
|
|
||||||
|
local highlights = {
|
||||||
|
|
||||||
TblineFill = {
|
TblineFill = {
|
||||||
bg = colors.black2,
|
bg = colors.black2,
|
||||||
|
|
@ -21,7 +23,7 @@ return {
|
||||||
bg = colors.black,
|
bg = colors.black,
|
||||||
},
|
},
|
||||||
|
|
||||||
TbBufLineBufOffModified = {
|
TbLineBufOffModified = {
|
||||||
fg = colors.red,
|
fg = colors.red,
|
||||||
bg = colors.black2,
|
bg = colors.black2,
|
||||||
},
|
},
|
||||||
|
|
@ -75,3 +77,21 @@ return {
|
||||||
fg = colors.black,
|
fg = colors.black,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local hlgroups_glassy = {
|
||||||
|
"TblineFill",
|
||||||
|
"TbLineBufOn",
|
||||||
|
"TbLineBufOff",
|
||||||
|
"TbLineBufOnClose",
|
||||||
|
"TbLineBufOffClose",
|
||||||
|
"TbLineBufOnModified",
|
||||||
|
"TbLineBufOffModified"
|
||||||
|
}
|
||||||
|
|
||||||
|
if config.transparency then
|
||||||
|
for _, val in ipairs(hlgroups_glassy) do
|
||||||
|
highlights[val].bg = "NONE"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return highlights
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue