Skip to main content

Module albums_view

Module albums_view 

Source
Expand description

Albums landing page with Recent / Owned / Shared sections.

Fetches album cover thumbnails and renders them as clickable tiles in a responsive flow layout. Selecting a tile navigates the main grid to that album’s contents.

StructsΒ§

AlbumsViewParts
Contains references to individual grid widgets of the albums overview display.

EnumsΒ§

AlbumsSort
Sort modes available for the albums landing page.

FunctionsΒ§

album_tile πŸ”’
Build a clickable tile representing an individual album complete with cover art.
build_albums_view
Construct the hierarchical panels and containers for the albums listing page.
build_section πŸ”’
Build a single category grid section with a text label and a flow box layout.
clear πŸ”’
Remove all child widgets from the specified flow box.
populate_albums
Populate the album list grids grouped by ownership status.
project_albums πŸ”’
Pure projection over the cached album list. Returns the (recent, owned, shared) buckets that drive the three Albums-view rows after applying the active search filter and sort mode. Extracted from render_albums so the ordering rules can be unit-tested without GTK.
render_albums πŸ”’
set_search_filter
Set the current search filter and re-render. Empty string clears the filter.
set_sort_mode
Set the current sort mode and re-render.
spawn_thumbnail πŸ”’
Asynchronously load and set the thumbnail for an album cover art picture widget.

Type AliasesΒ§

AlbumClick