Embed application icon as a resource and refactor icon usage

Replaced the external `icon.png` file with an embedded resource using Go's embed functionality. Updated all references to use the new resource, eliminating the need for the standalone icon file.
This commit is contained in:
kor-elf committed 2025-06-01 19:58:28 +05:00
1 parent 3241b88158
commit 43d794373a
6 files changed
+19 -5

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package resources
import (
_ "embed"
"fyne.io/fyne/v2"
)
//go:embed icons/logo.png
var iconAppLogo []byte
func IconAppLogoResource() *fyne.StaticResource {
return fyne.NewStaticResource("icon.png", iconAppLogo)
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB