PdfViewerTopBarMinimalMono

fun PdfViewerTopBarMinimalMono(title: String, modifier: Modifier = Modifier, titleOverflow: PdfTopBarTitleOverflow = PdfTopBarTitleOverflow.Ellipsis, subtitle: String? = null, onBack: () -> Unit = {}, onSearch: () -> Unit = {}, onShare: () -> Unit = {}, onPrint: () -> Unit = {}, onDownload: () -> Unit = {}, onAnnotate: () -> Unit = {}, showBack: Boolean = true, showSearch: Boolean = false, showShare: Boolean = true, showPrint: Boolean = false, showDownload: Boolean = true, showAnnotate: Boolean = false, annotateActive: Boolean = false)

Minimal Mono topbar variant — modern, brand-neutral, with the download action visually elevated as the primary CTA.

Faithful implementation of Direction 1 from design_handoff_pdf_topbar/README.md:

  • 64dp tall, white background, single 1dp #F1F1F3 hairline divider.

  • Five children left → right, gap 4dp:

  1. 38×38 back chip (gray #F4F4F6 circle, Lucide arrow-left)

  2. Title block (filename 15sp semibold #0A0A0A + UPPERCASE 11sp meta line #8E8E93 truncated with ellipsis)

  3. 38×38 search chip (same gray, hidden when onSearch is null)

  4. 38×38 share chip (same gray, hidden when onShare is null)

  5. 38×38 print chip (same gray, hidden when showPrint is false)

  6. 38×38 download chip — primary action, filled #111111 with white icon, hidden when onDownload is null.

Recommended as the platform-agnostic default, especially on Android where it composes naturally with Material 3 surfaces. Pair it with PdfViewer in your own Scaffold(topBar = { … }).

Parameters

title

filename / document name surfaced as the bold first line.

titleOverflow

how the title line behaves when it is too long for the (weighted) title block — PdfTopBarTitleOverflow.Ellipsis (default) truncates with , PdfTopBarTitleOverflow.Marquee scrolls it horizontally. The icon chips are fixed-size and never shrink either way.

subtitle

optional UPPERCASE meta line — typically "PDF · 2.4 MB" or similar context. Set to null to drop the line.

onBack

tap callback for the back chip. Ignored when showBack is false.

onSearch

tap callback for the search chip. Ignored when showSearch is false.

onShare

tap callback for the share chip. Ignored when showShare is false.

onPrint

tap callback for the print chip. Ignored when showPrint is false.

onDownload

tap callback for the primary download chip. Ignored when showDownload is false.

onAnnotate

tap callback for the highlight-annotation toggle. Ignored when showAnnotate is false.

showBack

hide / show the back chip independently of onBack. true by default.

showSearch

hide / show the search chip. false by default because search is opt-in — wire onSearch and set this to true to surface it.

showShare

hide / show the share chip. true by default.

showPrint

hide / show the print chip. false by default because printing is opt-in — wire onPrint and set this to true to surface it.

showDownload

hide / show the primary download chip. true by default.

showAnnotate

hide / show the highlight-annotation toggle chip. false by default — annotation tools are opt-in.

annotateActive

whether annotation mode is on; the chip renders with the filled "primary" treatment while active so the user can see the mode is engaged.

modifier

applied to the outer Row container.