feat: app icon, Fyne toml file
This commit is contained in:
parent
234f4be42b
commit
f5bec00a1b
3 changed files with 16 additions and 1 deletions
8
FyneApp.toml
Normal file
8
FyneApp.toml
Normal 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
|
9
main.go
9
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
|
||||
|
|
BIN
res/icon.png
Normal file
BIN
res/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 135 KiB |
Loading…
Reference in a new issue