Skip to content

Commit 655a345

Browse files
committed
feat(extras): add XFCE Terminal theme
1 parent 6e92bf7 commit 655a345

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ M.extras = {
2828
vim = { ext = "vim", url = "https://vimhelp.org/", label = "Vim", subdir = "colors"},
2929
wezterm = { ext = "toml", url = "https://wezfurlong.org/wezterm/config/files.html", label = "WezTerm" },
3030
windows_terminal = { ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal" },
31+
xfceterm = { ext = "theme", url = "https://docs.xfce.org/apps/terminal/advanced", label = "Xfce Terminal" },
3132
}
3233

3334
function M.setup()

lua/astrotheme/extras/xfceterm.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
local util = require "astrotheme.extras"
2+
3+
local M = {}
4+
5+
--- @param colors AstroThemePalette
6+
function M.generate(colors)
7+
return util.template(
8+
[[
9+
[Scheme]
10+
Name="${_style_name}"
11+
ColorBackground=${ui.base}
12+
ColorForeground=${syntax.text}
13+
14+
ColorSelectionBackground=${ui.selection}
15+
ColorSelection=${syntax.text}
16+
17+
ColorPalette=${term.black};${term.red};${term.green};${term.yellow};${term.blue};${term.purple};${term.cyan};${term.white};${term.bright_black};${term.bright_red};${term.bright_green};${term.bright_yellow};${term.bright_blue};${term.bright_purple};${term.bright_cyan};${term.bright_white}
18+
]],
19+
colors
20+
)
21+
end
22+
23+
return M

0 commit comments

Comments
 (0)