The gallery
The gallery (crates/egui-pop-gallery, not published) is the catalogue
of egui-pop, itself a plugin application: each page is a story a plugin
registers.
cargo run -p egui-pop-gallery -- --theme pop-light --page zones
cargo run -p egui-pop-gallery -- --help
The media pages. The viewer’s MP4 page (feature video, GStreamer) and
YouTube page (feature webview, WebKitGTK, Linux only) need the system’s
libraries to build, so they are off by default. cargo gallery (short for
cargo xtask gallery) asks pkg-config for them, turns on each feature it can
build, prints a line per feature, off with the packages to install, then runs
the gallery:
cargo gallery # what the system allows
cargo gallery --check # only print the decision
cargo gallery --release -- --page viewer
cargo gallery --no-detect --features video # only what is asked
video needs gstreamer-1.0, gstreamer-base-1.0, gstreamer-app-1.0 and
gstreamer-video-1.0 (Fedora: gstreamer1-devel gstreamer1-plugins-base-devel;
Debian/Ubuntu: libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev); its demo
clip is written with the AVI muxer of the good plugins (gstreamer1-plugins-good,
gstreamer1.0-plugins-good). webview needs webkit2gtk-4.1 and gtk+-3.0
(Fedora: webkit2gtk4.1-devel; Debian/Ubuntu: libwebkit2gtk-4.1-dev). Off
Linux, webview stays off and video is probed the same way, through the
pkg-config files of GStreamer’s installers.
Driven by an agent. cargo gallery --features inspection opens the
egui_inspection endpoint Rerun’s egui-mcp attaches to, on loopback and
without authentication: the accessibility tree, clicks by label,
screenshots and waits (Driving the gallery with egui-mcp).
It bypasses the bridge’s mode, the agent socket’s grants and its input
lock, so an agent behind it acts as the user and can click a
confirmation or a pairing dialog: development builds only, never an
application you ship.
Options: --theme, --density (comfortable or compact),
--accent, --reduced-motion, --page (the page shown first),
--lang (the language setting’s default: en, fr or system),
--quit-after <frames>, --dump-debug, --no-persistence and
--detach <panel> (a panel opened in a window of its own at start) for
scripted runs, and
--platform (the desktop’s own platform services: a single instance
answering gallery://page/<name> links, notifications, a tray icon, the
global shortcut Ctrl+Alt+G, logs and crash reports in the user’s state
directory; without it they are simulated and nothing reaches the
desktop).
The side bar lists the pages in egui-pop’s own tree view (the tree), one scroll for all, their groups as folders. A click or Enter opens a page; the arrows walk the list, Left and Right fold and open a group, letters find a row. The folds are kept with the window’s layout, and the group of the page shown opens by itself.
A field above the list filters it (the tree’s filter): a page
shows when every word typed is in its title, its description or its group,
ignoring case and accents, its group opened for it; the words found are
underlined in the titles, and “3 of 63” beside the field says how many rows
match. Ctrl+F or / in the list goes to the field, Down goes back to the list
on the first match, Escape clears the field and then leaves it. The folds kept
are left as they were.
A page scrolls, each keeping its place, as its playground does: a shell panel
gives no scroll area of its own (bare panels). Those
that stay inside the zone by themselves are marked (shell::FILLS_THE_ZONE): the
pages with a scroll area of their own around nearly all of them (overview,
tokens, builtins, icons, grading, inputs, platform, sliders), and
graph-file, a canvas and the file beside it sized to what is left. A canvas in
a scrolling page keeps the wheel over itself. A test walks every page in a short
window.
What survives a restart (eframe’s persistence): the folds of the page list,
the stacked sections, the panels’ sizes and how far pages are scrolled (egui’s
memory), the workbench’s layout, and on the desktop the window’s size and place.
They are in a file in the application’s data directory, or in the browser’s local
storage for this origin on the web, where egui’s memory is under its shared key
egui_memory_ron and they are written when the page loses the focus and
every 30 seconds. The page, the theme and the settings start over. --size wins
over the size kept. --no-persistence or --quit-after run the gallery with
nothing read and nothing kept, as tools/wbox/app.sh does.
Pages: overview (the theme overview), tokens, builtins (egui’s
built-ins, and egui-pop’s kit-drawn checkbox, radio, rows and chips), roles (layout by role: text roles, spacing by intent, cards and buttons by tone, rows and grids on one baseline), regions (slot regions: cards around and over an image, folding by priority), scoped (egui’s own buttons, toggles, combo box and text fields restyled by the kit in a scope), theme-editor (the theme editor), fonts (candidate font pairs side by side), icons, indicators (dots, badges, pips, flags, swatches), notes (inline messages in every severity: wrapped, selectable, copyable, with folded details), sections (collapsible sections stacked in a panel), folds (groups folding inside a panel, a hand-built tree’s rows with their toggles), motion (the motion clock), values, history (the application’s history: its panel’s list, a click jumping to a step), sliders, faders (vertical sliders as a strip of faders, knobs in their three layouts, sliders in narrow slots, a standalone section band), compact (controls for a slot of a given size: scrub fields, compact cells, a value’s marks, value bars, menu rows), ramps (sliders and knobs drawn in a colour ramp from their minimum’s colour to their maximum’s: the colour at the value, or the whole ramp on the track), inputs (decorated inputs, field states and Tab order),
menus, toolbars (toolbars of commands, More tools, a tool palette), dialogs, files (the file chooser), toasts, tips (tips of the day and
hints), about (Help > About: what the gallery says about itself, its
version info to copy), progress,
placeholders (skeletons and empty states), viewport (the image
viewport), viewport-labels (labels over a bright and a dark image), navigator (the zoom control and the navigator), images,
grading (curves and colour wheels), cursors (tool cursors, brush
outlines and the loupe), node-graph (the node graph editor), graph-file (the node graph editor over a YAML file), display (wide gamut and HDR surfaces),
preview (a custom dialog previewing an export in a viewport), tree
(the live tree), list-items (dense rows on their own and in a tree,
property rows in a selection panel), table (lists and tables), plot (charts: a time
series with a time cursor, a scatter and bars), plot-time (a plot over a
timeline’s time), text-log (a text log on the data table: level chips, a
filter, the tail followed, the rows at the playhead), library (the photo
library), timeline (timelines over seconds, a timecode and bars and beats), tracks (tracks of clips), dj (two DJ decks: hot cues, loops, sync, the waveform dragged under a fixed playhead), editor (a video editor: split, ripple delete, in and out marks, a transport row), text-editor,
code-editor, terminal, zones (zones and blocks), workbench,
palettes, arrangements, contexts (the context stack: places and modes, and the status bar that follows them), clipboard (typed items copied between palettes, paste special’s previews), links (one policy for every link: declared links, links that ask first, local files, an agent’s request), viewer (help pages, markdown, a safe subset of HTML and images in a panel), strips (the activity bar, and status items: live states, a popover, hover cards), jobs (a pretend host’s
background jobs), frame, scale, pointer (pointer gesture profiles),
platform (the platform services),
settings, i18n (translations), debug (the debug
bridge), linked-panels (a list driving a slow preview in another
panel, closed, moved or detached) and selection (a tree, a list and a
canvas sharing one selection and one hovered item). Alt+Down and Alt+Up go to the next and previous page,
Ctrl+Shift+T to the next theme.
It also builds for the web (wasm32-unknown-unknown, with Trunk from
crates/egui-pop-gallery), and runs offscreen in a nested compositor
for scripted runs and screenshots (tools/wbox). Its
pages are also the snapshot tests (see Testing).
Examples. The crate also holds whole applications built on egui-pop:
threading (frame times under load, Threading) and
rerun_like, a viewer with the Rerun viewer’s look and layout
(cargo run -p egui-pop-gallery --example rerun_like,
A Rerun-like viewer).
Screenshots
Every snapshot the gallery’s tests keep, by kind, four to a row. They are regenerated with the tests (see Testing), so they show the current state. Click one for its full size.
A picture is cut to what it tests: a page’s shows the page and its playground, without the gallery’s bars; one that drives the side bar, the bottom area or the status bar shows everything under the top bar; what floats over the window (a dialog, a menu, a toast) is shown whole. The bars have their own pictures.
Look and feel
Themes, design tokens, the theme editor, icons and scaling.
The overview in the other built-in themes
Widgets
Egui’s built-ins in egui-pop’s style, and restyled by a kit in a scope, values, the history (its list, an agent’s step, one undone), sliders, faders and knobs, compact controls (scrub fields, cells, value marks and bars, menu rows), colour ramps (a white balance, a saturation, an exposure and a clipping warning, in the colour at the value or on the whole track; the theme’s own fill in high contrast), inputs keeping to a narrow panel (a slider’s value, a number’s field), inputs (decorators, field states, Tab order), menus, toolbars (icons, titles, More tools, a tool palette), dialogs (movable ones, a clear backdrop), file choosing (and an image’s preview), toasts, micro-indicators (still under reduced motion), notes (every severity with long text), collapsible sections (folded, resized, a windowed one scrolled to its end, pulled with empty room under the last), folds inside a panel and a hand-built tree’s rows, and progress (bars, rings, meters, spinners; still under reduced motion).
The places panel, as an import window’s sources column (and a focused, chosen item, its fill under the focus outline; a place showing a camera’s photo in its icon’s place; a Library’s tree with its indent guides under the pointer, and a compacted chain of folders underlining the one under the pointer):
![]() places-pop-dark |
![]() places-pop-high-contrast |
![]() places-pop-light |
![]() places-focused-chosen-pop-dark |
![]() places-focused-chosen-pop-light |
![]() places-camera-photo |
![]() places-tree-guides |
![]() places-tree-segment-hover |
Data views
The live tree, list items and property rows, lists and tables, charts (and a plot over a timeline’s time: its cursor the playhead, a stepped line, an error band, the range shaded, the values at the pointer, two million samples decimated per pixel column), a text log (after Rerun’s: level chips and a text filter, the rows at the playhead highlighted, a click moving the playhead, a multi-line body unfolded), and the photo library (a thumbnail grid and filmstrip, marks, filter chips, a comparison of one to many images, a loupe and surveys of two, four and six; a cell’s stars previewing a lower rating over the current one, Rating stars).
Timeline
A timeline per time scale (seconds, a timecode at 25 fps, bars and beats at 128 BPM) with markers, cue points and a looping range; then keys on the track: Up to the Drop, I, two bars, O, and L twice (the speed beside the playhead). See Timeline.
![]() timeline-pop-dark |
![]() timeline-pop-light |
![]() timeline-keys-pop-dark |
Tracks and clips
A 40-second edit at 25 fps: a titles track, two video tracks and two audio tracks, their clips drawn by the page’s painter (pretend thumbnails and a waveform); then keys on a clip. See Timeline.
![]() tracks-pop-dark |
![]() tracks-pop-light |
![]() tracks-keys-pop-dark |
DJ decks
Two decks on bars and beats, at 128 and 124 BPM: a pretend waveform
under a beat grid drawn by the page’s clip painter, coloured hot cues,
a loop, the pitch fader and Sync; then keys on deck B: S, 3, a bar on,
3, [ twice, Shift+4 and L; then deck B’s waveform dragged (the
playhead fixed in the middle, the song moving under it), the wheel
stepping by beats, Play and a nudge. See Timeline.
![]() dj-pop-dark |
![]() dj-pop-light |
![]() dj-keys-pop-dark |
![]() dj-drag-pop-dark |
Video editor
A minute at 25 fps: a pretend program monitor showing the frame under the playhead, a titles track, two video tracks and two audio tracks; then Ctrl+K at the playhead (every clip there split), Shift+Delete on a half (its gap closed), Ctrl+Z and Ctrl+Y, an agent’s split, O and L twice; then the transport row under the monitor (go to end, step back, go to start, step forward, play backward, stop, play, pause, loop), its tooltip naming the key. See Timeline.
![]() editor-pop-dark |
![]() editor-pop-light |
![]() editor-keys-pop-dark |
![]() editor-transport-pop-dark |
Editors
The text editor, the code editor and the terminal.
![]() text-editor-pop-dark |
![]() code-editor-pop-dark |
![]() terminal-pop-dark |
Images
The tiled image viewport, its zoom control and navigator, images, curves and colour wheels, cursors and the loupe, the node graph editor, the display, a preview dialog (a custom dialog holding a viewport), and labels over a bright and a dark image.
Layout
Zones and blocks, the workbench, the layout controls, slot regions, palettes, arrangements, the context stack, the clipboard, links, the viewer, strips and the window frame.
The page list
The gallery’s side bar: every page in the light and the dark theme, in a short window, with a group folded, and filtered. Every other shot veils the list, so a page added to the gallery changes only these.
![]() pages-pop-dark |
![]() pages-pop-light |
![]() pages-short-pop-dark |
![]() pages-folded-pop-dark |
![]() pages-filtered-pop-dark |
The bars
The gallery’s own bars around a page: the top bar, the side bar (its list veiled) and the status bar, per theme and in the compact density, and one picture of the whole window. Every other shot is cut to what it tests (a page’s to the page and its playground), so a change to a bar changes only these.
Application services
Settings, the Settings app (generated pages, a manifest’s section, value scopes, the search), shortcuts, pointer gesture profiles, tips, About (the page and its dialog), platform services, translations, the developer tools (with the inspect mode’s dialog), and the jobs centre (drawn narrow as a side navigator; a job’s log console open, in the page and in the status bar’s popover; the application’s row sources, filtered by source and state).
Drops on a detached window
A tab dragged over a detached panel’s window: its drop frame where the window sees the pointer, and the outline every window that may take the tab gets where the system hides window positions (Wayland).
![]() window-drop-frame-pop-dark |
![]() window-drop-outline-pop-dark |
Drag ghosts
The ghost a drag carries under the pointer, from the kit: a photo’s thumbnail alone, a stack of several with their count, objects by their icon and name, each with the verdict of the target it would hover (add, move, copy, tag, link, or refused).
![]() drag-ghosts-pop-dark |
A panel’s state
A panel whose content is not current (pop.panel.state, the workbench): updating, dimmed with the busy mark on its corner and its tab once the delay passed; failed, with the failed mark.
![]() panel-state-updating-pop-dark |
![]() panel-state-failed-pop-dark |
A panel’s kind
A panel that edits (PanelKind::Control or Mixed, the workbench): the edits mark on its tab (Properties), and after its floating palette’s title (the toolbox); a view panel carries none.
![]() panel-kind-tab-pop-dark |
![]() panel-kind-palette-pop-dark |
Examples
The rerun_like example, a whole application (A Rerun-like viewer), in its two kits.
![]() rerun-like-dark |
![]() rerun-like-light |
No snapshot yet: platform, i18n.
















































































































































































































































































