format_details_lines

Function format_details_lines 

Source
pub fn format_details_lines(
    app: &AppState,
    _area_width: u16,
    th: &Theme,
) -> Vec<Line<'static>>
Expand description

What: Format the current AppState::details into themed ratatui lines.

Inputs:

  • app: Read-only application state; uses app.details to render fields
  • _area_width: Reserved for future wrapping/layout needs (currently unused)
  • th: Active theme for colors/styles

Output:

  • Vector of formatted lines for the Details pane, ending with a Show/Hide PKGBUILD action line.

Details:

  • Applies repo-specific heuristics, formats numeric sizes via human_bytes, and appends a clickable PKGBUILD toggle line using accent styling.