pass colors from builder
This commit is contained in:
@@ -16,8 +16,26 @@ end
|
|||||||
local function build()
|
local function build()
|
||||||
local templates = { "vim", "kitty", "alacritty", "wezterm", "lualine", "lightline", "tmux" }
|
local templates = { "vim", "kitty", "alacritty", "wezterm", "lualine", "lightline", "tmux" }
|
||||||
for _, t in ipairs(templates) do
|
for _, t in ipairs(templates) do
|
||||||
write_template(unpack(require("zenbones.build." .. t) "zenbones"))
|
write_template(
|
||||||
write_template(unpack(require("zenbones.build." .. t) "zenflesh"))
|
unpack(
|
||||||
|
require("zenbones.build." .. t)(
|
||||||
|
"zenbones",
|
||||||
|
require "zenbones",
|
||||||
|
require "zenbones.palette",
|
||||||
|
require "zenbones.terminal"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
write_template(
|
||||||
|
unpack(
|
||||||
|
require("zenbones.build." .. t)(
|
||||||
|
"zenflesh",
|
||||||
|
require "zenflesh",
|
||||||
|
require "zenflesh.palette",
|
||||||
|
require "zenflesh.terminal"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -26,10 +26,7 @@ colors:
|
|||||||
white: '${color15}'
|
white: '${color15}'
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
local terminal = require(name .. ".terminal")
|
|
||||||
|
|
||||||
local values = {
|
local values = {
|
||||||
name = name,
|
name = name,
|
||||||
bg = theme.Normal.bg.hex,
|
bg = theme.Normal.bg.hex,
|
||||||
|
|||||||
@@ -39,10 +39,7 @@ color14 ${color14}
|
|||||||
color15 ${color15}
|
color15 ${color15}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
local terminal = require(name .. ".terminal")
|
|
||||||
|
|
||||||
local bg = theme.Normal.bg.hex
|
local bg = theme.Normal.bg.hex
|
||||||
local fg = theme.Normal.fg.hex
|
local fg = theme.Normal.fg.hex
|
||||||
local values = {
|
local values = {
|
||||||
|
|||||||
@@ -22,9 +22,7 @@ let s:p.tabline.tabsel = [ [ "${tabsel_fg}", "${tabsel_bg}", "bold" ] ]
|
|||||||
let g:lightline#colorscheme#zenbones#palette = lightline#colorscheme#fill(s:p)
|
let g:lightline#colorscheme#zenbones#palette = lightline#colorscheme#fill(s:p)
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
string.format("autoload/lightline/colorscheme/%s.vim", name),
|
string.format("autoload/lightline/colorscheme/%s.vim", name),
|
||||||
template,
|
template,
|
||||||
|
|||||||
@@ -33,9 +33,7 @@ return {
|
|||||||
}
|
}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
string.format("lua/lualine/themes/%s.lua", name),
|
string.format("lua/lualine/themes/%s.lua", name),
|
||||||
template,
|
template,
|
||||||
|
|||||||
@@ -17,10 +17,7 @@ set -g clock-mode-colour '${color5}'
|
|||||||
set -g mode-style fg='${color0}',bg='${selection_background}'
|
set -g mode-style fg='${color0}',bg='${selection_background}'
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
local terminal = require(name .. ".terminal")
|
|
||||||
|
|
||||||
local values = {
|
local values = {
|
||||||
selection_background = theme.Visual.bg.hex,
|
selection_background = theme.Visual.bg.hex,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,9 +34,7 @@ endif
|
|||||||
${vimcolors}
|
${vimcolors}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
local terminal = require(name .. ".terminal")
|
|
||||||
local termcolors = ""
|
local termcolors = ""
|
||||||
for i, v in ipairs(terminal.colors) do
|
for i, v in ipairs(terminal.colors) do
|
||||||
termcolors = termcolors .. string.format("let g:terminal_color_%s = '%s'\n", (i - 1), v.hex)
|
termcolors = termcolors .. string.format("let g:terminal_color_%s = '%s'\n", (i - 1), v.hex)
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ ansi = ["${color0}", "${color1}", "${color2}", "${color3}", "${color4}", "${colo
|
|||||||
brights = ["${color8}", "${color9}", "${color10}", "${color11}", "${color12}", "${color13}", "${color14}", "${color15}"]
|
brights = ["${color8}", "${color9}", "${color10}", "${color11}", "${color12}", "${color13}", "${color14}", "${color15}"]
|
||||||
]]
|
]]
|
||||||
|
|
||||||
return function(name)
|
return function(name, theme, palette, terminal)
|
||||||
local theme = require(name)
|
|
||||||
local terminal = require(name .. ".terminal")
|
|
||||||
|
|
||||||
local name = name:sub(1, 1):upper() .. name:sub(2)
|
local name = name:sub(1, 1):upper() .. name:sub(2)
|
||||||
|
|
||||||
local values = {
|
local values = {
|
||||||
|
|||||||
Reference in New Issue
Block a user