refactor: move ImageLoader to ui/util

This commit is contained in:
Drew Weymouth
2023-11-05 14:30:57 -08:00
parent 5fd3f96129
commit 7d7d315d74
5 changed files with 78 additions and 69 deletions
+2 -2
View File
@@ -3,10 +3,10 @@ package widgets
import (
"image"
"github.com/dweymouth/supersonic/backend"
"github.com/dweymouth/supersonic/res"
"github.com/dweymouth/supersonic/sharedutil"
"github.com/dweymouth/supersonic/ui/layouts"
"github.com/dweymouth/supersonic/ui/util"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
@@ -141,7 +141,7 @@ type GridViewItem struct {
// updated by GridView
Cover *coverImage
ImgLoader backend.ThumbnailLoader
ImgLoader util.ThumbnailLoader
OnPlay func()
OnShowContextMenu func(fyne.Position)