fix: theme colors not applied as default when color option is incomplete
fixes #631
This commit is contained in:
parent
7345986fb4
commit
c8e5a69085
|
@ -282,7 +282,9 @@ local function get_default_component_color(hl_name, mode, section, color, option
|
||||||
and options.color_highlight.name .. '_' .. mode ~= hl_name
|
and options.color_highlight.name .. '_' .. mode ~= hl_name
|
||||||
then
|
then
|
||||||
apply_default(options.color, options.color_highlight.name .. '_' .. mode)
|
apply_default(options.color, options.color_highlight.name .. '_' .. mode)
|
||||||
else
|
end
|
||||||
|
|
||||||
|
if not ret.fg or not ret.bg then
|
||||||
apply_default(default_theme_color, string.format('lualine_%s_%s', section, mode))
|
apply_default(default_theme_color, string.format('lualine_%s_%s', section, mode))
|
||||||
end
|
end
|
||||||
ret.fg = sanitize_color(ret.fg)
|
ret.fg = sanitize_color(ret.fg)
|
||||||
|
|
Loading…
Reference in New Issue