Skip to content

Commit cd6dc12

Browse files
A-Lamiamehalter
authored andcommitted
feat: add transparency to notify
1 parent 4d32cd2 commit cd6dc12

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

lua/astrotheme/groups/plugins/nvim-notify.lua

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
local function callback(opts)
2-
local border_bg = (opts.inactive and C.ui.base)
3-
or (opts.popup and C.ui.base)
4-
or (opts.transparent and C.none)
5-
or C.ui.base
2+
local bg = (opts.transparent and C.none) or C.ui.tool
63

74
return {
8-
NotifyBackground = { link = "NormalPopup" },
5+
NotifyBackground = {
6+
fg = C.ui.text,
7+
bg = C.ui.base,
8+
},
99

10-
NotifyERRORBorder = { fg = C.ui.red, bg = border_bg },
11-
NotifyWARNBorder = { fg = C.ui.orange, bg = border_bg },
12-
NotifyINFOBorder = { fg = C.ui.green, bg = border_bg },
13-
NotifyDEBUGBorder = { fg = C.ui.cyan, bg = border_bg },
14-
NotifyTRACERBorder = { fg = C.ui.purple, bg = border_bg },
10+
NotifyERRORBorder = { fg = C.ui.red, bg = bg },
11+
NotifyWARNBorder = { fg = C.ui.orange, bg = bg },
12+
NotifyINFOBorder = { fg = C.ui.green, bg = bg },
13+
NotifyDEBUGBorder = { fg = C.ui.cyan, bg = bg },
14+
NotifyTRACERBorder = { fg = C.ui.purple, bg = bg },
1515

16-
NotifyERRORIcon = { fg = C.ui.red },
17-
NotifyWARNIcon = { fg = C.ui.orange },
18-
NotifyINFOIcon = { fg = C.ui.green },
19-
NotifyDEBUGIcon = { fg = C.ui.cyan },
20-
NotifyTRACEIcon = { fg = C.ui.purple },
16+
NotifyERRORIcon = { fg = C.ui.red, bg = bg },
17+
NotifyWARNIcon = { fg = C.ui.orange, bg = bg },
18+
NotifyINFOIcon = { fg = C.ui.green, bg = bg },
19+
NotifyDEBUGIcon = { fg = C.ui.cyan, bg = bg },
20+
NotifyTRACEIcon = { fg = C.ui.purple, bg = bg },
2121

22-
NotifyERRORTitle = { fg = C.ui.red },
23-
NotifyWARNTitle = { fg = C.ui.orange },
24-
NotifyINFOTitle = { fg = C.ui.green },
25-
NotifyDEBUGTitle = { fg = C.ui.cyan },
26-
NotifyTRACETitle = { fg = C.ui.purple },
22+
NotifyERRORTitle = { fg = C.ui.red, bg = bg },
23+
NotifyWARNTitle = { fg = C.ui.orange, bg = bg },
24+
NotifyINFOTitle = { fg = C.ui.green, bg = bg },
25+
NotifyDEBUGTitle = { fg = C.ui.cyan, bg = bg },
26+
NotifyTRACETitle = { fg = C.ui.purple, bg = bg },
2727

28-
NotifyERRORBody = { fg = C.ui.text, bg = border_bg },
29-
NotifyWARNBody = { fg = C.ui.text, bg = border_bg },
30-
NotifyINFOBody = { fg = C.ui.text, bg = border_bg },
31-
NotifyDEBUGBody = { fg = C.ui.text, bg = border_bg },
32-
NotifyTRACEBody = { fg = C.ui.text, bg = border_bg },
28+
NotifyERRORBody = { fg = C.ui.text, bg = bg },
29+
NotifyWARNBody = { fg = C.ui.text, bg = bg },
30+
NotifyINFOBody = { fg = C.ui.text, bg = bg },
31+
NotifyDEBUGBody = { fg = C.ui.text, bg = bg },
32+
NotifyTRACEBody = { fg = C.ui.text, bg = bg },
3333

34-
NotifyLogTime = { fg = C.ui.text_inactive },
35-
NotifyLogTitle = { fg = C.ui.blue },
34+
NotifyLogTime = { fg = C.ui.text_inactive, bg = bg },
35+
NotifyLogTitle = { fg = C.ui.blue, bg = bg },
3636
}
3737
end
3838

0 commit comments

Comments
 (0)