mirror of
https://github.com/gabehf/base46.git
synced 2026-03-11 00:10:32 -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"
|
||||
|
||||
return {
|
||||
local config = require("core.utils").load_config().ui
|
||||
|
||||
local highlights = {
|
||||
|
||||
TblineFill = {
|
||||
bg = colors.black2,
|
||||
|
|
@ -21,7 +23,7 @@ return {
|
|||
bg = colors.black,
|
||||
},
|
||||
|
||||
TbBufLineBufOffModified = {
|
||||
TbLineBufOffModified = {
|
||||
fg = colors.red,
|
||||
bg = colors.black2,
|
||||
},
|
||||
|
|
@ -75,3 +77,21 @@ return {
|
|||
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