|
1 | 1 | 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 |
6 | 3 |
|
7 | 4 | return { |
8 | | - NotifyBackground = { link = "NormalPopup" }, |
| 5 | + NotifyBackground = { |
| 6 | + fg = C.ui.text, |
| 7 | + bg = C.ui.base, |
| 8 | + }, |
9 | 9 |
|
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 }, |
15 | 15 |
|
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 }, |
21 | 21 |
|
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 }, |
27 | 27 |
|
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 }, |
33 | 33 |
|
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 }, |
36 | 36 | } |
37 | 37 | end |
38 | 38 |
|
|
0 commit comments