From 07bcc91274941b7b1d4d186611a5e92fcb3881cc Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 24 Apr 2021 22:31:32 +0200 Subject: [PATCH] fix: only increase lightness for darker collors --- lua/tokyonight/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tokyonight/util.lua b/lua/tokyonight/util.lua index 7f7c1d6..68fe304 100644 --- a/lua/tokyonight/util.lua +++ b/lua/tokyonight/util.lua @@ -40,7 +40,7 @@ function util.getDayColor(color) if color ~= "NONE" then local hsl = hsluv.hex_to_hsluv(color) hsl[3] = 100 - hsl[3] - hsl[3] = hsl[3] + (100 - hsl[3]) * .1 + if hsl[3] < 40 then hsl[3] = hsl[3] + (100 - hsl[3]) * .3 end return hsluv.hsluv_to_hex(hsl) end return color