feat: added link to RadioSpiral page
This commit is contained in:
parent
67f8943e19
commit
f3cf682b38
1 changed files with 9 additions and 0 deletions
9
main.go
9
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,
|
||||
|
|
Loading…
Reference in a new issue