About modal
ui.about_modal (src/ui/about.fm) shows a standard About dialog for any program built with Trame. The
intent is src/md/features/about-modal.md.
Usage
Formula
ui.about_modal("about", &app.about_open, {
name = "Plume",
version = "0.15.0",
tagline = "A focused writing workspace",
licence = "MIT",
copyright = "© 2026 Froment Software",
icon = lucide.FEATHER,
on_whats_new = proc(user: rawptr) { open_whats_new((^App)(user)) },
website_url = "https://froment.software",
releases_url = "https://froment.software/plume/changelog/",
user = app,
})API
| Symbol | Role |
|---|---|
about_modal(id, showing, info) | Builds the modal while showing^ is true. Closes on Escape, Close button, corner cross, or scrim click. |
About_Info | Program metadata: name, version, tagline, licence, copyright, logo (render.Texture), logo_draw / logo_user, icon / icon_font (the logo, in this order: logo_draw, logo, the State's logo given once by ui.set_logo, the glyph icon), on_whats_new (primary in-app "What's new" action), website_url, releases_url (secondary "Online release notes"), links, diagnostics (shows "Copy diagnostics" when non-empty), on_link / user. |
About_Link | A link button: label, url, optional icon (defaults to lucide.EXTERNAL_LINK). Opens via on_link or ui.open(url, .Url). |
about_version_text(info) | Formats the one-line version string copied by "Copy version". |
about_diagnostics_text(info) | Formats the multi-line diagnostics text copied by "Copy diagnostics" (program version, ui.VERSION, compiler version, OS, licence, and info.diagnostics). |
The program's logo
ui.set_logo(state, files) gives the program's logo once: the PNG files of its desktop icons, one per size (the
program's constants). They are decoded on a chore. ui.logo(id, side) draws it in a box side pixels square, in the
title bar for one, from the smallest picture that covers the box; before it is decoded the box keeps its room.
ui.logo_ready(state) says whether it is. The About modal draws it when About_Info gives no logo_draw and no logo.
Formula
ui.set_logo(&app.main.state, {ICON_PNGS[2].png, ICON_PNGS[4].png, ICON_PNGS[6].png})
if ui.title_bar("###bar") {
ui.logo("logo", math.round(em * 1.2))
// ...
}