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:
parent
d0c4e9d846
commit
d656986413
3 changed files with 21 additions and 7 deletions
|
|
@ -62,7 +62,7 @@ func (widget *Monitor) Initialize() error {
|
|||
widget.withTitle("Monitor").withCacheDuration(5 * time.Minute)
|
||||
|
||||
for i := range widget.Sites {
|
||||
widget.Sites[i].IconUrl, widget.Sites[i].IconSource = toRemoteResourceIconIfPrefixed(widget.Sites[i].IconUrl)
|
||||
widget.Sites[i].IconUrl, widget.Sites[i].IconSource = toIconURIIfPrefixed(widget.Sites[i].IconUrl)
|
||||
widget.Sites[i].IsSimpleIcon = widget.Sites[i].IconSource == SimpleIcon
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue