feat: "day" variant

This commit is contained in:
Folke Lemaitre
2021-04-24 22:24:40 +02:00
parent 002bae49d4
commit 8889ad8848
5 changed files with 388 additions and 76 deletions

View File

@@ -1,4 +1,6 @@
local colors = require("tokyonight.colors").setup()
local config = require("tokyonight.config")
local colors = require("tokyonight.colors").setup(config)
local util = require("tokyonight.util")
local tokyonight = {}
@@ -34,4 +36,13 @@ tokyonight.inactive = {
c = { bg = colors.bg_statusline, fg = colors.fg_gutter },
}
if config.style == "day" then
for _, mode in pairs(tokyonight) do
for _, section in pairs(mode) do
if section.bg then section.bg = util.getColor(section.bg, config) end
if section.fg then section.fg = util.getColor(section.fg, config) end
end
end
end
return tokyonight