diff --git a/FyneApp.toml b/FyneApp.toml new file mode 100644 index 0000000..ea4f7c3 --- /dev/null +++ b/FyneApp.toml @@ -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 diff --git a/main.go b/main.go index c1a6887..7484161 100644 --- a/main.go +++ b/main.go @@ -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 diff --git a/res/icon.png b/res/icon.png new file mode 100644 index 0000000..6fcee7c Binary files /dev/null and b/res/icon.png differ