diff --git a/resource/resource.go b/resource/resource.go index 781f3b6..7bd1a78 100644 --- a/resource/resource.go +++ b/resource/resource.go @@ -1,6 +1,9 @@ package resource -import "fyne.io/fyne/v2" +import ( + _ "embed" + "fyne.io/fyne/v2" +) var ImageEmpty = &fyne.StaticResource{ StaticName: "flat-color-icons--audio-file.svg", @@ -12,4 +15,10 @@ var ImageEmptyQrCode = &fyne.StaticResource{ StaticContent: []byte(""), } -var ImageIcon = resImageIcon +//go:embed static/icon2.png +var resImageIconData []byte + +var ImageIcon = &fyne.StaticResource{ + StaticName: "icon2.png", + StaticContent: resImageIconData, +} diff --git a/resource/static/icon2.png b/resource/static/icon2.png new file mode 100644 index 0000000..88ccf96 Binary files /dev/null and b/resource/static/icon2.png differ