make artist and album hyperlinks in tracklist; refactor navigation to the controller package

This commit is contained in:
Drew Weymouth
2023-02-23 17:23:14 -08:00
parent 6682e3923e
commit d01ac697bd
16 changed files with 218 additions and 195 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ package browsing
import (
"image/color"
"supersonic/backend"
"supersonic/ui/controller"
"supersonic/ui/layouts"
"fyne.io/fyne/v2"
@@ -19,7 +20,7 @@ type Page interface {
Save() SavedPage
Reload()
Route() Route
Route() controller.Route
}
type SavedPage interface {
@@ -216,7 +217,7 @@ var _ Page = (*blankPage)(nil)
func (p *blankPage) Reload() {}
func (p *blankPage) Route() Route { return Route{Page: Blank} }
func (p *blankPage) Route() controller.Route { return controller.Route{Page: controller.Blank} }
func (p *blankPage) Save() SavedPage { return p }