Skip to main content

Module window_layout

Module window_layout 

Source
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ยง

AlbumLinkParts ๐Ÿ”’
BulkParts ๐Ÿ”’
Bottom selection bar; delete, download, and clear are wired by connect_bulk_actions.
ContentParts ๐Ÿ”’
Everything shown in the main content column, plus the sidebar.
ControlsParts ๐Ÿ”’
Source/timeline and sort/upload controls above the grid.
HeaderParts ๐Ÿ”’
TransferParts ๐Ÿ”’
WindowParts ๐Ÿ”’
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 ๐Ÿ”’