add artist discography page

This commit is contained in:
Drew Weymouth
2022-12-31 21:13:24 -08:00
parent 87b4762ae1
commit 0ff1b6bafd
8 changed files with 233 additions and 39 deletions
+7
View File
@@ -44,6 +44,8 @@ type CustomHyperlink struct {
widget.BaseWidget
h *hyperlinkWrapper
OnTapped func()
container *fyne.Container
minSize fyne.Size
}
@@ -52,6 +54,11 @@ func NewCustomHyperlink() *CustomHyperlink {
c := &CustomHyperlink{
h: newHyperlinkWrapper(200),
}
c.h.h.OnTapped = func() {
if c.OnTapped != nil {
c.OnTapped()
}
}
c.ExtendBaseWidget(c)
c.container = container.NewHBox(c.h, layout.NewSpacer())
return c