add Favorites page and toggle favorite button to album page

This commit is contained in:
Drew Weymouth
2023-01-21 17:31:52 -08:00
parent 6bae838f90
commit 96f0748767
5 changed files with 184 additions and 9 deletions
+3
View File
@@ -74,6 +74,9 @@ func (m *MainWindow) PromptForFirstServer(cb func(string, string, string, string
}
func (m *MainWindow) addNavigationButtons() {
m.BrowsingPane.AddNavigationButton(res.ResHeartFilledInvertPng, func() {
m.Router.OpenRoute(browsing.FavoritesRoute())
})
m.BrowsingPane.AddNavigationButton(res.ResDiscInvertPng, func() {
m.Router.OpenRoute(browsing.AlbumsRoute(backend.AlbumSortRecentlyAdded))
})