feat: add colorscheme generator and themes for xfce4 terminal (#81)

Co-authored-by: ian mcgaunn <ian@mcgaunn.com>
This commit is contained in:
Ian McGaunn
2021-07-21 16:55:33 -04:00
committed by GitHub
parent f7af47749a
commit 0b4fdc5d63
5 changed files with 52 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ local extras = {
wezterm = "toml",
tmux = "tmux",
xresources = "Xresources",
xfceterm = "theme",
}
local styles = { "storm", "night", "day" }

View File

@@ -0,0 +1,24 @@
local util = require("tokyonight.util")
local M = {}
-- @param colors ColorScheme
function M.generate(colors)
local xfceterm = util.template(
[[
[Scheme]
Name=TokyoNight Colors
ColorBackground=${bg}
ColorForeground=${fg}
ColorSelectionBackground=${bg_visual}
ColorSelection=${fg}
ColorPalette=${black};${red};${green};${yellow};${blue};${magenta};${cyan};${fg_dark};${terminal_black};${red};${green};${yellow};${blue};${magenta};${cyan};${fg}
]],
colors
)
return xfceterm
end
return M