From f3cf682b387adeb8cbc6df5e93e3847426975165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 6 Dec 2023 18:44:57 +0100 Subject: [PATCH] feat: added link to RadioSpiral page --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index dfc2940..718f0f2 100644 --- a/main.go +++ b/main.go @@ -43,6 +43,7 @@ import ( "io" "log" "net/http" + "net/url" "os" "os/exec" "strings" @@ -333,6 +334,7 @@ func main() { showCard := widget.NewCard("RadioSpiral", "", showAvatar) centerCardContainer := container.NewCenter(showCard) + // Player section nowPlayingLabelHeader := widget.NewLabel("Now playing:") nowPlayingLabel := widget.NewLabel("") var playButton *widget.Button @@ -412,9 +414,16 @@ func main() { } }) + rsUrl, err := url.Parse("https://radiospiral.net") + + if err != nil { + log.Println("Error generating RadioSpiral url") + } + // Layout the whole thing window.SetContent(container.NewVBox( radioSpiralHeaderImage, + container.NewCenter(widget.NewHyperlink("https://radiospiral.net", rsUrl)), layout.NewSpacer(), widget.NewLabel("Next show:"), centerCardContainer,