Expand description
Widget construction for the library window.
Builds the header, controls, content stack, transfer and selection bars, and
the responsive breakpoints. build_library_window in the parent module wires
signal handlers onto the result.
Structsยง
- Album
Link ๐Parts - Bulk
Parts ๐ - Bottom selection bar;
delete,download, andclearare wired byconnect_bulk_actions. - Content
Parts ๐ - Everything shown in the main content column, plus the sidebar.
- Controls
Parts ๐ - Source/timeline and sort/upload controls above the grid.
- Header
Parts ๐ - Transfer
Parts ๐ - Window
Parts ๐ - The whole library window before signal handlers are connected.
Functionsยง
- add_
desktop_ ๐breakpoint - Desktop width: horizontal controls, docked sidebar, and longer album-link labels.
- add_
narrow_ ๐breakpoint - Phone width: show the bottom navigation bar and switch the grid to narrow layout.
- add_
sidebar_ ๐shortcut - F9 toggles the sidebar.
- breakpoint ๐
- build_
album_ ๐link - build_
bulk_ ๐bar - build_
content_ ๐stack - Stack of loading/empty/error states and the grid, Explore, and Albums views. Also returns the error viewโs subtitle label, which shows the load error.
- build_
controls ๐ - build_
header ๐ - build_
nav ๐ - Navigation view whose root page holds the header and split view.
- build_
split ๐ - build_
timeline_ ๐banner - build_
transfer_ ๐indicator - bulk_
buttons ๐ - Delete, download, clear, and share-link buttons for the selection bar.
- hbox ๐
- pressable_
button ๐