Function file_art

Source
fn file_art(
    ui: &Ui,
    thumbs: &mut Option<&mut ThumbCache>,
    path: &str,
    h: u32,
) -> Art
Expand description

The picture of a media file h px tall: its cached thumbnail, or the painted fallback for its kind. ponytail: asking for a thumbnail is what queues the decode, so expanding a folder of 500 clips queues 500 of them (LIFO, so what you look at wins). Upgrade: only ask for rows inside the viewport.