farout.nvim/lua/tokyonight/extra/xfceterm.lua
Ian McGaunn 0b4fdc5d63
feat: add colorscheme generator and themes for xfce4 terminal (#81)
Co-authored-by: ian mcgaunn <ian@mcgaunn.com>
2021-07-21 13:55:33 -07:00

25 lines
497 B
Lua

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