feat(extras): add Tilix themes (#188)

This commit is contained in:
Flo
2022-09-02 07:56:05 +02:00
committed by GitHub
parent 8583ca39dd
commit e83f1d5b7d
5 changed files with 119 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ local extras = {
tmux = "tmux",
xresources = "Xresources",
xfceterm = "theme",
tilix = "json",
}
-- map of style to style name
local styles = {

View 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