From c5ee360ee07fba3b35405ce36eb82d99e00a59fd Mon Sep 17 00:00:00 2001 From: luisiacc Date: Sat, 13 Aug 2022 20:28:06 -0400 Subject: [PATCH] feat: fix all background dark colors --- lua/gruvbox-baby/colors.lua | 8 +++++--- lua/gruvbox-baby/util.lua | 7 ++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lua/gruvbox-baby/colors.lua b/lua/gruvbox-baby/colors.lua index 1279c86..b77b449 100644 --- a/lua/gruvbox-baby/colors.lua +++ b/lua/gruvbox-baby/colors.lua @@ -1,3 +1,5 @@ +local util = require("gruvbox-baby.util") + local the_palette = { dark0 = "#0d0e0f", dark = "#202020", @@ -60,15 +62,15 @@ function M.config(config) ["dark"] = { dark = colors.dark0, background = colors.background_dark, - background_dark = colors.dark, + background_dark = util.darken(colors.background_dark, 0.8), }, ["medium"] = { background = colors.background, - background_dark = colors.background_dark, + background_dark = util.darken(colors.background, 0.9), }, ["soft"] = { background = colors.background_light, - background_dark = colors.background, + background_dark = util.darken(colors.background_light, 0.8), }, ["soft_flat"] = { background = colors.background_light, diff --git a/lua/gruvbox-baby/util.lua b/lua/gruvbox-baby/util.lua index 78e1871..32f0abd 100644 --- a/lua/gruvbox-baby/util.lua +++ b/lua/gruvbox-baby/util.lua @@ -1,9 +1,14 @@ +local hsluv = require("gruvbox-baby.hsluv") + local util = {} -local hsluv = require("hsluv") util.colorsUsed = {} util.colorCache = {} +util.bg = "#000000" +util.fg = "#ffffff" +util.day_brightness = 0.3 + -- will improve in future function util.getColor(color) return color