mirror of
https://github.com/Xevion/glance.git
synced 2025-12-15 02:11:55 -06:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user