diff --git a/components/application.templ b/components/application.templ index 8631fde..2f72b67 100644 --- a/components/application.templ +++ b/components/application.templ @@ -6,7 +6,7 @@ import ( templ Application(application services.Application) { -
+
@templ.Raw(application.Icon)
{ application.Name }
diff --git a/services/bookmark.services.go b/services/bookmark.services.go index 5b5663b..64d3629 100644 --- a/services/bookmark.services.go +++ b/services/bookmark.services.go @@ -102,6 +102,10 @@ func (bs *BookmarkService) replaceIconString() { continue } color, ok := iconsByTitle[bookmark.Name] + if bookmark.OverwriteColor != "" { + ok = true + color = bookmark.OverwriteColor + } if !(bookmark.IgnoreColor || !ok || color == "") { data = []byte(insertColor(string(data), color)) } diff --git a/services/bookmark.types.go b/services/bookmark.types.go index 6d3a312..7d4ad23 100644 --- a/services/bookmark.types.go +++ b/services/bookmark.types.go @@ -22,10 +22,11 @@ type Link struct { } type Application struct { - Name string - Icon string - IgnoreColor bool `yaml:"ignore_color"` - URL string + Name string + Icon string + IgnoreColor bool `yaml:"ignore_color"` + OverwriteColor string `yaml:"overwrite_color"` + URL string } type SimpleIcons struct {