Skip to content

Commit

Permalink
fix(mellifluous): check option more thoroughly
Browse files Browse the repository at this point in the history
  • Loading branch information
ramojus committed Aug 31, 2024
1 parent 10865e3 commit 8c5a744
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/mellifluous/colors/colorsets/mellifluous.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ 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()
local config = require("mellifluous.config").config
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)
Expand Down

0 comments on commit 8c5a744

Please sign in to comment.