2023-12-01 20:30:50 +00:00
|
|
|
local util = require("farout.util")
|
2023-02-28 09:02:44 +00:00
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
--- @param colors ColorScheme
|
|
|
|
function M.generate(colors)
|
2023-12-01 20:30:50 +00:00
|
|
|
local windows_terminal = util.template(
|
|
|
|
[[
|
2023-02-28 09:02:44 +00:00
|
|
|
# Add the following object to your Windows Terminal configuration
|
|
|
|
# https://learn.microsoft.com/en-us/windows/terminal/customize-settings/color-schemes#creating-your-own-color-scheme
|
|
|
|
{
|
|
|
|
"background": "${bg}",
|
|
|
|
"black": "${black}",
|
|
|
|
"blue": "${blue}",
|
|
|
|
"brightBlack": "${terminal_black}",
|
|
|
|
"brightBlue": "${blue}",
|
|
|
|
"brightCyan": "${cyan}",
|
|
|
|
"brightGreen": "${green}",
|
|
|
|
"brightPurple": "${purple}",
|
|
|
|
"brightRed": "${red}",
|
|
|
|
"brightWhite": "${fg}",
|
|
|
|
"brightYellow": "${yellow}",
|
|
|
|
"cursorColor": "${fg}",
|
|
|
|
"cyan": "${cyan}",
|
|
|
|
"foreground": "${fg}",
|
|
|
|
"green": "${green}",
|
|
|
|
"name": "${_style_name}",
|
|
|
|
"purple": "${magenta}",
|
|
|
|
"red": "${red}",
|
|
|
|
"selectionBackground": "${bg_visual}",
|
|
|
|
"white": "${fg_dark}",
|
|
|
|
"yellow": "${yellow}"
|
|
|
|
}
|
|
|
|
]],
|
|
|
|
colors
|
|
|
|
)
|
|
|
|
|
|
|
|
return windows_terminal
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|