slightly reduce contrast for lualine

This commit is contained in:
Michael Chris Lopez
2021-12-02 19:17:42 +08:00
parent eeb9088315
commit d2d111fe42

View File

@@ -57,14 +57,16 @@ local function to_lualine(colors)
return { text }
end
local function specs_to_colors(specs)
local function specs_to_colors(colorscheme)
local specs, background = unpack(colorscheme)
local da = background == "light" and -3 or 3
return {
common_fg = specs.Folded.fg,
inactive_bg = specs.StatusLineNC.bg,
inactive_fg = specs.StatusLineNC.fg,
normal_a_bg = specs.PmenuSbar.bg,
normal_b_bg = specs.PmenuSel.bg,
normal_c_bg = specs.StatusLine.bg,
normal_a_bg = specs.PmenuSbar.bg.abs_da(da),
normal_b_bg = specs.PmenuSel.bg.abs_da(da),
normal_c_bg = specs.StatusLine.bg.abs_da(da),
normal_c_fg = specs.StatusLine.fg,
insert_a_bg = specs.DiffText.bg,
command_a_bg = specs.Search.bg,
@@ -82,7 +84,7 @@ for _, ness in ipairs(ness_list) do
---@diagnostic disable: undefined-global
-- selene: allow(undefined_variable)
run(
specs,
{ specs, background },
specs_to_colors,
to_lualine,
{ prepend, "-- This file is auto-generated by shipwright.nvim" },