feat: app icon, Fyne toml file

This commit is contained in:
José Carlos Cuevas 2023-12-05 12:58:10 +01:00
parent 234f4be42b
commit f5bec00a1b
3 changed files with 16 additions and 1 deletions

8
FyneApp.toml Normal file
View file

@ -0,0 +1,8 @@
Website = "https://radiospiral.net"
[Details]
Icon = "res/icon.png"
Name = "RadioSpiral Player"
ID = "net.radiospiral.player"
Version = "1.0.0"
Build = 1

View file

@ -196,9 +196,16 @@ func main() {
// Create our app and window
app := app.New()
window := app.NewWindow("RadioSpiral")
window := app.NewWindow("RadioSpiral Player")
window.Resize(fyne.NewSize(400, 600))
icon, err := fyne.LoadResourceFromPath("./res/icon.png")
if err != nil {
log.Println("[ERROR] Couldn't load the app icon!")
log.Println(err)
} else {
window.SetIcon(icon)
}
// Keep the status of the player
playStatus := false

BIN
res/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB