From 8c5a744222d7d57600ae7a507745f2c6082422d7 Mon Sep 17 00:00:00 2001 From: Ramojus Lapinskas Date: Sat, 31 Aug 2024 09:05:08 +0300 Subject: [PATCH] fix(mellifluous): check option more thoroughly --- lua/mellifluous/colors/colorsets/mellifluous.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/mellifluous/colors/colorsets/mellifluous.lua b/lua/mellifluous/colors/colorsets/mellifluous.lua index fc857f7..159f31c 100644 --- a/lua/mellifluous/colors/colorsets/mellifluous.lua +++ b/lua/mellifluous/colors/colorsets/mellifluous.lua @@ -8,10 +8,10 @@ function M.get_bg_dark() local mellifluous_config = config[colorset_name] local brightness = 11.5 - if mellifluous_config.neutral then - return color.new_from_hsl({ h = 0, s = 0, l = brightness }) + if mellifluous_config.neutral == false then + return color.new_from_hsl({ h = 24, s = 10, l = brightness }) end - return color.new_from_hsl({ h = 24, s = 10, l = brightness }) + return color.new_from_hsl({ h = 0, s = 0, l = brightness }) end function M.get_bg_light() @@ -19,10 +19,10 @@ function M.get_bg_light() local mellifluous_config = config[colorset_name] local brightness = 91.5 - if mellifluous_config.neutral then - return color.new_from_hsl({ h = 0, s = 0, l = brightness }) + if mellifluous_config.neutral == false then + return color.new_from_hsl({ h = 24, s = 10, l = brightness }) end - return color.new_from_hsl({ h = 24, s = 10, l = brightness }) + return color.new_from_hsl({ h = 0, s = 0, l = brightness }) end function M.get_colors_dark(bg)