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§
- Albums
View Parts - Contains references to individual grid widgets of the albums overview display.
Enums§
- Album
Action - Right-click actions on the user’s own album tiles.
- Albums
Sort - Sort modes available for the albums landing page.
Functions§
- album_
tile 🔒 - Build a clickable tile representing an individual album complete with cover art.
- attach_
share_ 🔒menu - Right-click a tile for “Share…” and “Create Share Link…”.
- build_
albums_ view - Construct the hierarchical panels and containers for the albums listing page.
- build_
empty_ 🔒state - build_
header 🔒 - Page title with the filter entry and “Create album” button below it.
- 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.
- insert_
tiles 🔒 - Add a tile per album;
share(own albums only) enables the right-click “Share…”. - 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_albumsso 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_
share_ handler - Handler for “Share…” on the user’s own album tiles.
- set_
shared_ only - Switch between the full Albums page and the Shared Albums page, then re-render.
- set_
sort_ mode - Set the current sort mode and re-render.
- shared_
by_ 🔒you - The user’s albums that have at least one other member.
- show_
empty_ 🔒state - Explain an empty Shared Albums page; without the user id albums can’t be sorted by owner.
- spawn_
thumbnail 🔒 - Asynchronously load and set the thumbnail for an album cover art picture widget.
Type Aliases§
- Album
Click - Album
Share - Runs a right-click action for one of the user’s own albums.