added theme system, makes it easier to add more color schemes

This commit is contained in:
2024-06-07 17:27:08 +02:00
parent 4695338323
commit 81c4b976e2
5 changed files with 188 additions and 74 deletions

View File

@@ -10,3 +10,10 @@ func Contains[E comparable](s []E, v E) bool {
return false
}
func Exists[K comparable, V any](m map[K]V, v K) bool {
if _, ok := m[v]; ok {
return true
}
return false
}