1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: use wakatime colors for editors and os (resolve #100)

This commit is contained in:
Ferdinand Mütsch
2021-01-30 09:51:36 +01:00
parent b732eea9b7
commit a6aff07b21
9 changed files with 366 additions and 1508 deletions

View File

@@ -5,9 +5,9 @@ import (
"strings"
)
func FilterLanguageColors(all map[string]string, summary *models.Summary) map[string]string {
func FilterColors(all map[string]string, haystack models.SummaryItems) map[string]string {
subset := make(map[string]string)
for _, item := range summary.Languages {
for _, item := range haystack {
if c, ok := all[strings.ToLower(item.Key)]; ok {
subset[strings.ToLower(item.Key)] = c
}