1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Feat: wezterm theming support (#705)

* implemented logic for wezterm theming

added matugen configs and dank16 functions, updated matugen worked
scripta

* fixed theme dir

fixed path and moved output location to default wezterm dir
This commit is contained in:
Saurabh
2025-11-14 00:54:47 +11:00
committed by GitHub
parent 9322c79b4e
commit 76a60df88b
6 changed files with 51 additions and 1 deletions

View File

@@ -124,3 +124,17 @@ func GenerateGhosttyTheme(colors []string) string {
}
return result.String()
}
func GenerateWeztermTheme(colors []string) string {
var result strings.Builder
labels := []string{"ansi", "brights"}
for j, label := range labels {
start := j * 8
colorSlice := make([]string, 8)
for i, color := range colors[start : start+8] {
colorSlice[i] = fmt.Sprintf("'%s'", color)
}
fmt.Fprintf(&result, "%s = [%s]\n", label, strings.Join(colorSlice, ", "))
}
return result.String()
}