feat(extras): add Tilix themes (#188)
This commit is contained in:
@@ -18,6 +18,7 @@ local extras = {
|
||||
tmux = "tmux",
|
||||
xresources = "Xresources",
|
||||
xfceterm = "theme",
|
||||
tilix = "json",
|
||||
}
|
||||
-- map of style to style name
|
||||
local styles = {
|
||||
|
||||
40
lua/tokyonight/extra/tilix.lua
Normal file
40
lua/tokyonight/extra/tilix.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
local util = require("tokyonight.util")
|
||||
|
||||
local M = {}
|
||||
|
||||
--- @param colors ColorScheme
|
||||
function M.generate(colors)
|
||||
local tilix = util.template(
|
||||
[[
|
||||
{
|
||||
"name": "${_style_name}",
|
||||
"comment": "",
|
||||
"use-theme-colors": false,
|
||||
"foreground-color": "${fg}",
|
||||
"background-color": "${bg}",
|
||||
"palette": [
|
||||
"${black}",
|
||||
"${red}",
|
||||
"${green}",
|
||||
"${yellow}",
|
||||
"${blue}",
|
||||
"${magenta}",
|
||||
"${cyan}",
|
||||
"${fg_dark}",
|
||||
"${terminal_black}",
|
||||
"${red}",
|
||||
"${green}",
|
||||
"${yellow}",
|
||||
"${blue}",
|
||||
"${magenta}",
|
||||
"${cyan}",
|
||||
"${fg}"
|
||||
]
|
||||
}
|
||||
]],
|
||||
colors
|
||||
)
|
||||
return tilix
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user