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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Scheme]
Name=TokyoNight Colors
ColorBackground=#1a1b26
ColorForeground=#c0caf5
ColorSelectionBackground=#33467C
ColorSelection=#c0caf5
ColorPalette=#15161E;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#a9b1d6;#414868;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#c0caf5

View File

@ -0,0 +1,9 @@
[Scheme]
Name=TokyoNight Colors
ColorBackground=#1a1b26
ColorForeground=#c0caf5
ColorSelectionBackground=#33467C
ColorSelection=#c0caf5
ColorPalette=#15161E;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#a9b1d6;#414868;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#c0caf5

View File

@ -0,0 +1,9 @@
[Scheme]
Name=TokyoNight Colors
ColorBackground=#24283b
ColorForeground=#c0caf5
ColorSelectionBackground=#364A82
ColorSelection=#c0caf5
ColorPalette=#1D202F;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#a9b1d6;#414868;#f7768e;#9ece6a;#e0af68;#7aa2f7;#bb9af7;#7dcfff;#c0caf5

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