Add DashboardIcon (PNG) Support

- Refactored to make better naming sense
- Added capability to select between the PNG and SVG offerings of DashboardIcons
This commit is contained in:
Doc Em
2024-11-14 20:06:54 +11:00
parent d0c4e9d846
commit d656986413
3 changed files with 21 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ func (widget *Bookmarks) Initialize() error {
}
link := &widget.Groups[g].Links[l]
link.Icon, link.IconSource = toRemoteResourceIconIfPrefixed(link.Icon)
link.Icon, link.IconSource = toIconURIIfPrefixed(link.Icon)
link.IsSimpleIcon = link.IconSource == SimpleIcon
}
}