|
1 | 1 | ---@type AstroThemeCallback |
2 | 2 | local function callback(c, opts) |
| 3 | + local color = require "astrotheme.lib.color" |
| 4 | + local base = color.new(c.ui.base) |
3 | 5 | return { |
4 | 6 | -------------------- |
5 | 7 | --- Normal |
@@ -123,10 +125,10 @@ local function callback(c, opts) |
123 | 125 | -------------------- |
124 | 126 | --- Diagnostics |
125 | 127 | -------------------- |
126 | | - DiffAdd = { fg = c.ui.base, bg = c.syntax.green }, |
127 | | - DiffChange = { fg = c.ui.base, bg = c.syntax.yellow }, |
128 | | - DiffDelete = { fg = c.ui.base, bg = c.syntax.red }, |
129 | | - DiffText = { fg = c.ui.base, bg = c.syntax.yellow }, |
| 128 | + DiffAdd = { bg = color.new(c.syntax.green):blend(base, 0.75):tohex() }, |
| 129 | + DiffChange = { bg = color.new(c.syntax.yellow):blend(base, 0.75):tohex() }, |
| 130 | + DiffDelete = { bg = color.new(c.syntax.red):blend(base, 0.75):tohex() }, |
| 131 | + DiffText = { bg = color.new(c.syntax.yellow):blend(base, 0.7):tohex() }, |
130 | 132 | DiffAdded = { fg = c.syntax.green }, |
131 | 133 | DiffRemoved = { fg = c.syntax.red }, |
132 | 134 | DiffChanged = { fg = c.syntax.blue }, |
|
0 commit comments