fix(delta): move color defs to colors so it works properly with the day theme. Fixes #362
This commit is contained in:
@@ -149,6 +149,11 @@ function M.setup(opts)
|
||||
colors.info = colors.blue2
|
||||
colors.hint = colors.teal
|
||||
|
||||
colors.delta = {
|
||||
add = util.darken(colors.green2, 0.45),
|
||||
delete = util.darken(colors.red1, 0.45),
|
||||
}
|
||||
|
||||
config.options.on_colors(colors)
|
||||
if opts.transform and config.is_day() then
|
||||
util.invert_colors(colors)
|
||||
|
||||
@@ -4,10 +4,6 @@ local M = {}
|
||||
|
||||
--- @param colors ColorScheme
|
||||
function M.generate(colors)
|
||||
colors.delta = {
|
||||
add = util.darken(colors.green2, 0.45),
|
||||
delete = util.darken(colors.red1, 0.45),
|
||||
}
|
||||
local delta = util.template(
|
||||
[[
|
||||
[delta]
|
||||
|
||||
Reference in New Issue
Block a user