Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Icons: an inventory of where they serve

Status: inventory, decided (2026-10-22). Sections 1 and 2 describe what exists, read from the code of egui-pop and of Helios, an application built on it. Sections 3 to 5 were proposed and are decided (2026-10-22), with the owner’s answers in section 7. Section 6 is the order of work that follows. The “Today” column of section 2 follows the work: the registry of step 2 (section 6) is in, and so are the menus of step 3.

egui-pop draws icons by role (Icon, in egui_pop_core::icon): a name such as search or warning, never a codepoint, drawn from the Phosphor font with the phosphor feature or painted otherwise, sized by a token and coloured by a tone. An application adds its own SVG icons by name (icon_set::register, feature svg). A kit remaps the small marks widgets draw through glyph roles (glyph.check, glyph.disclosure-open…; kit.md). What is missing is a rule for which icon a surface shows and who declares it: today each widget has a field of its own, or picks its icon in its code.

1. Two families

An icon says one of two things, and they are declared in different places.

  • Command icons say an action: Save, Undo, Export, Toggle the grid. The command is declared once (CommandSpec), and so is its icon; every surface that runs the command (a menu, the palette, a toolbar, the shortcut editor, a status item) shows the same one. A command that toggles may have a second icon for its “on” state (eye and eye-off).
  • Object-kind icons say what a thing is: a node type, a file type, a job kind, a mask element, a severity, a place or a mode, a panel. They are declared on the kind, not on a command: a row in a tree, a chip in the status bar or an entry in quick open shows the icon of the kind of thing it holds.

Two neighbours stay outside both families:

  • Glyph roles (check, radio, disclosure, sort, submenu, close, window buttons, LED and flag shapes) are the marks widgets draw for their own mechanics. Their vocabulary is fixed and a kit remaps them with data. They are already one registry, and they stay as they are.
  • Application and document icons in the system’s places (the window’s icon, the tray icon, desktop files, notifications) are pictures handed to the system, not icons of the set (packaging.md).

2. Where icons serve

Each table gives, for every surface:

  • Rule: required, optional or not used, and why.
  • Family: command, object kind, or glyph role when the mark is a widget’s own.
  • Size and states: the size token (size.icon.inline 16 points, size.icon.toolbar 20, size.icon.panel 24, each 4 points smaller in the compact density) and the states the icon follows.
  • Accessibility: decorative when a visible text already names the thing (the icon adds nothing for AccessKit), or only label when the icon is all there is, and then which text names it.
  • Today: the file and the field, or “hard-coded in the widget”.
  • Gap: what is missing for the rule.

Paths are relative to crates/. “Name lookup” means a string resolved with Icon::by_name (egui-pop’s names, then the application’s registered ones).

2.1 Shell: the window frame and the status bar

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Window menu button (title bar)Required: no room for text in the bar; the menu icon is the conventionCommand (opens the system menu)toolbar; hover, pressedOnly label: “Window menu”Hard-coded Icon::Menu in egui-pop-api/src/frame.rs (menu_button)None needed; could read the opening command’s icon once commands have one
Window buttons (minimise, maximise, restore, close)Required: system conventionGlyph role (window-*)Drawn on the pixel grid; hover, pressed, the close’s danger hoverOnly label: each button’s nameKit glyphs in egui-pop-core/src/frame.rsNone
Overflow and main menu entries (“More menus”, “Main menu”)Required: the menu bar folded into one buttonCommandtoolbar; hover, openOnly label: “More menus”, “Main menu”Icon::More and Icon::Menu hard-coded in bar_within (egui-pop-api/src/menus.rs)None needed
Layout controls (title bar)Required: icon-only by place, as VS Code’sCommand (the area toggles, “Customize layout”)toolbar; hover, pressed; the toggle’s state is the icon itself: filled (layout-left, layout-bottom, layout-right) while the area shows, outlined (-off) while folded or hiddenOnly label: the command’s title; a toggle is announced as toggledlayout-* built-in icons, always painted, chosen by side in egui-pop-api/src/layout_controls.rs (toggle_icon); the toggle commands also declare them (CommandSpec::icon and icon_on), so menus show them in their gutter, mirrored with the primary side bar on the right (command_icon)None
Caption items (the application’s marks in the title bar)Required: icon-only by placeCommand (each opens something)toolbar; a count badge, a ring, a busy stateOnly label: the command’s title; the state joins the nameChosen by the application per item (Helios: Icon::Notification hard-coded)Should come from the command the item runs
Breadcrumb crumbsOptional: the text names the place; an icon on every place that declares one, hidden in the compact density (decided 2026-10-22)Object kind (a place, FrameSpec)inline; the current crumb strongDecorativeFrameSpec.icon (egui-pop-model/src/context.rs), drawn before the crumb by status_context (egui-pop-api/src/strips.rs), not in the compact density; contexts::crumb_icons and the strips collector give the names; the separator is a literal ›The separator should be a glyph role (chevron-end)
Mode chipsOptional: a mode is named by its text; an icon makes an active mode visible at a glanceObject kind (a mode, FrameSpec)inline; the mode’s toneDecorativeFrameSpec.icon by name lookup, copied to Chip.icon (egui-pop-api/src/contexts.rs), drawn by strips.rs as Mark::icon; an unknown name is an unknown-icon diagnosticAn unknown name still draws nothing on the chip
Status items (indicators)Optional: most items are short texts; an item that is icon-only (a connection, a sync) needs oneCommand when the item runs one, object kind otherwise (a connection)inline; tone, busy spinner, error and warning countsDecorative beside text; only label when alone: the item’s labelIndicator::icon (by name, checked; IndicatorState::icon from a reducer), else the icon of the command it runs; drawn before the text in the item’s colour, alone when the text is empty, named by the label (docs/status-bar.md); the error and warning counts are hard-coded Icon::Error and Icon::Warning (strips.rs)The counts’ icons should be the severity kinds
Status item popovers and hover cardsOptional: content drawn by the applicationEitherinlineAs for the contentDrawn by the item’s PopoverFn or HoverFn (strips.rs, egui-pop-core/src/hover_card.rs)None in egui-pop
Busy slot of a command controlRequired: a spinner replaces the icon while a run waitsCommandThe control’s icon size; busy after motion.spinner.delayDecorative; AccessKit’s busy flag carries the statebusy::paint_slot(.., icon: Option<Icon>, ..) in egui-pop-api/src/busy.rs, the icon given per callThe icon should be the command’s

2.2 Menus and commands

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Menu bar titlesNot used: every platform shows text titles———TextNone
Menu items (bar, context and popup menus)Optional, in an aligned gutter (section 5); following the menus.icons setting (section 3)Commandinline; disabled (greyed), checked (a tick in the gutter, or a frame around the icon), busy (a spinner in the gutter), the “on” icon of a toggleDecorative: the title is the name; a check item is announced as a check boxEvery row starts with the gutter of section 5 (command_row in egui-pop-api/src/menus.rs): the command’s icon (icon, icon_on while checked), framed while checked; the tick or the radio dot (MenuItem::radio) of an item without one; the spinner while running. menus::rows_drawn gives each row’s icon, mark and label startDone (step 3); full-colour icons are not yet masked in high contrast
List-provider entriesOptional, as menu items; an entry naming a thing (a recent file, a profile) takes that thing’s kind iconCommand, or object kindAs menu itemsDecorativeListItem::icon, by value or by name (menus.rs), serialised by name for the lists collectorSet per entry; an entry without one does not fall back to its command’s
Submenu entriesOptional: Apple and Microsoft both allow an icon on the entry; its arrow is a glyphCommand group (no command of its own)inline; openDecorativeItem::Submenu { menu, label } (egui-pop-model/src/menus.rs) has no icon; the arrow is the submenu glyph role, in the menu’s last columnNo icon on a submenu
Command paletteOptional: shown in a fixed column when the command declares one; text stays the labelCommandinline; disabled entries greyedDecorativeThe command’s icon in a column before the title, kept on every row while a match has one (egui-pop-api/src/palette.rs)Done (with step 3)
Quick open (a list of things to go to)Required when the list mixes kinds (a module, an image, a workspace): the icon says which kind a match isObject kindinlineDecorative; the kind joins the accessible name when the text does not say itegui-pop has none; Helios builds it on the choice dialog, whose rows are text only (choice_row in egui-pop-api/src/dialogs.rs)Choice rows take no icon
ToolbarsRequired: a toolbar is icon-first, with a tooltip giving the title and the keyCommandtoolbar; disabled, on (selected), busyOnly label: the command’s titletoolbars::Toolbar draws a menu’s items as buttons from the commands’ icons (docs/toolbars.md): titles and keys in tooltips, on and greyed states, separators, More tools, icons, titles or both, a row or a columnNone; CommandButton still takes its icon from the caller
Command buttons with textOptional: text is the labelCommandinline; busyDecorativeCommandButton::icon (busy.rs)Per instance
Split buttonsOptional on the main part, not used on the arrow (a glyph)CommandinlineDecorativeinput::split_button(ui, text, items) (egui-pop-core/src/input.rs): text onlyNo icon
Toggle chipsOptional: a chip may be an icon aloneCommand or object kindinline; onOnly label when alone: ToggleChip::nameToggleChip::glyph(Icon) (egui-pop-core/src/widgets.rs)Per instance
Shortcut editor rowsOptional: helps to scan a long list; the title stays the labelCommandinlineDecorativeText only (the shortcuts section of egui-pop-api/src/settings_window.rs)Reads nothing

2.3 Panels and the workbench

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Activity barRequired: an icon-only strip by conventionObject kind (a panel)panel; selected (the shown panel), hover, focus, an indicatorOnly label: the panel’s titlePanelSpec::icon: String (egui-pop-model/src/panels.rs) by name lookup in activity_bar (strips.rs); empty or unknown: the title’s first letter, an unknown name being an unknown-icon diagnosticNone
Folded strips and flyoutsRequired: same as the activity barObject kind (a panel)panel; selected, an indicator’s dot or countOnly label: the title and its keyBuilt on the wip/folded-strip-icons branch from PanelSpec::icon, not yet on mainThe same name lookup
Panel tabsOptional, behind a setting off by default (decided 2026-10-22): the title is the label and tab bars are narrowObject kind (a panel)inline; activeDecorativeText only (the tab bar in egui-pop-api/src/workbench.rs)None now; when wanted, the same PanelSpec icon
Floating palette bands (close, roll up, pin)Required: a band has no room for textGlyph role (close, roll), command (pin)The band’s side; pin is selected while onOnly label: Close, Roll up / Roll down, Pin / Unpinband::button(ui, side, icon, name, on) (egui-pop-core/src/band.rs); Icon::ChevronDown/ChevronUp and Icon::Lock/Unlock hard-coded in egui-pop-api/src/palettes.rsPin uses the lock icons; roll should be a glyph role
Settings categories (the window’s tree)Optional: categories are text; icons help on a long tree (as macOS and GNOME settings do)Object kind (a settings section or page)inlineDecorativeText only (settings_window.rs, settings_pages.rs; SettingsPage has no icon)No icon on a section or page
Theme editor token groupsNot used: groups are named by role and few; colour swatches already mark the rows———Text; undo and redo are text buttons (egui-pop-api/src/theme_editor.rs)None; undo and redo could take the commands’ icons if they become commands
Gallery page listOptional: a long list of pages; a kind icon per page family would help scanningObject kind (a page family)inlineDecorativeText only (egui-pop-gallery/src/shell.rs)None needed for the gallery’s purpose
Empty statesRequired: the icon says what is empty; the title says whyObject kindDrawn large in the empty-state component; danger tone on failureDecorative: the title is the nameEmptyState::new(icon, title) (egui-pop-core/src/placeholder.rs)Per instance

2.4 Views

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Tree rowsOptional per tree, required where rows mix kinds (files and folders, mask elements)Object kindinline, in the row’s text colour; selectedDecorativeTreeView::icon(Fn(&Node) -> Option<Source>) (egui-pop-views/src/tree/mod.rs), a name given with Source::named; each row’s icon name reported to agents (the icons collector’s drawn)A closure per tree, so the same kind may look different in two trees (kinds: step 6)
Tree disclosureRequiredGlyph role (disclosure-*)inline; open, closedDecorative (the row’s expanded state is announced)Kit glyphsNone
Row actions (buttons on a row)Required: icon-only on hover or focus, by spaceCommandinline; on/off for togglesOnly label: the command’s titleEach application draws its own (Helios: eye and lock in the masks tree)No row-action helper reading commands
Table and list headersNot used, except the sort markGlyph role (sort-*)inlineDecorative (the sort is announced)Kit glyphs in egui-pop-views/src/table.rsNone
Table cellsOptional: drawn by the applicationObject kindinlineDecorativeApplication codeNone in egui-pop
File chooser (in-app picker): placesOptional: home, recent, bookmarks and mounted volumes are told apart by an icon on every platformObject kind (a place)inlineDecorativeText only (egui-pop-api/src/files.rs)No icons; the built-in home, history, folder exist unused there
File chooser: entriesOptional: a folder or a file typeObject kind (file type)inlineDecorative; the type joins the name when hiddenText only; folders end with a literal /Folders and files look the same but for the slash
Library marks (stars, pick and reject flags, colour labels)Required: the mark is the informationGlyph roleThe component’s size; on, off, hoverOnly label: the rating or flag as textPainted shapes in egui-pop-views/src/library/marks.rs (paint::flag, paint::cross), outside the icon setA kit cannot remap them; they should become glyph roles
Library grid and filmstrip badgesRequired where they mark a state (a failed thumbnail’s warning, a stack’s chevron)Glyph role or severity kindScaled with the thumbnail, at most panelDecorative beside text, else the state’s nameIcon::Warning, ChevronDown/ChevronRight hard-coded in library/grid.rs; Icon::Warning in library/compare.rs; Icon::Search in library/filter.rs; Icon::Close on tag chips in library/tags.rsHard-coded; chevrons should be the disclosure role, the warning the severity kind
Editors’ gutterRequired: a diagnostic’s severity, a foldObject kind (severity), glyph role (fold)Line height; error, warning, infoDecorative: the diagnostic’s text is reachableIcon::Error/Warning/Info and ChevronRight/ChevronDown hard-coded in egui-pop-editors/src/view.rsHard-coded
Find barRequired: compact buttonsCommand (next, previous), glyph role (close, toggles)inlineOnly label: each button’s nameIcon::ChevronUp/ChevronDown hard-coded, close from the kit, in egui-pop-editors/src/find_bar.rsNext and previous are not commands with icons

2.5 Imaging

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Node graph: node kindsOptional on a node’s title, required in the “add a node” menu when it is longObject kind (node type)inline in the title; selected, bypassed, in errorDecorative: the title names itgraph::Kind { id, title } (egui-pop-viewport/src/graph/model.rs): no iconNo icon on a kind
Node graph: port typesRequired as a shape: a type is told by colour today, and egui-pop never says a state by colour aloneObject kind (port type)The port’s size; connected or notThe type joins the port’s namePortType { name, color }: a colour token onlyAdd a shape (a glyph) per type
Node graph: group foldRequiredGlyph role (disclosure-*)inlineDecorativeIcon::ChevronRight/ChevronDown hard-coded in graph/mod.rsShould be the disclosure role
Navigator and zoom controlRequired: compact buttonsCommand (zoom in, zoom out)inlineOnly label: the command’s titleIcon::Plus/Minus hard-coded in egui-pop-viewport/src/navigator.rsShould read the zoom commands’ icons
Slider quad buttonOptional: an eyedropper, a toggle beside a sliderCommandinline; on for a toggleOnly label: the given labelSlider::quad(icon, label), quad_toggle (egui-pop-core/src/slider.rs)Per instance
Viewport toolsRequired in a tool palette (icon-first)Commandtoolbar; the active tool selectedOnly label: the command’s titleNo tool palette in egui-pop; tools are the application’sNone in egui-pop yet
Tool cursorsNot icons: cursors, drawn in the icon set’s line style—The cursor size—egui-pop-viewport/src/cursor.rs (cursors.md)None; out of this inventory
Viewport overlays (handles)Not used: handles are shapes———Overlay kitNone

2.6 Feedback, dialogs and forms

SurfaceRuleFamilySize and statesAccessibilityTodayGap
ToastsRequired: the severity icon, with its toneObject kind (severity)inline; info, success, warning, errorOnly label for the level: the level’s name is the icon’s labelLevel::icon() in egui-pop-api/src/toasts.rs, hard-coded; close is Icon::CloseHard-coded; severities should be kinds a kit or an application can restyle
Notifications inside the window (toast actions)Not used on action buttons: text, the verb matters———TextNone
Jobs centre: job rowsOptional: a job kind’s icon (import, export); the state is text and a ringObject kind (job kind), severity for a failureinline; running ring, failedDecorative: the state is textText and a ring; the log toggle is Icon::ChevronDown/ChevronRight hard-coded (egui-pop-api/src/jobs_centre.rs)No job kind icon; the log toggle should be the disclosure role
Jobs status item and panelRequired in the status item (a ring), optional on the panelObject kind (the Jobs panel)inlineThe item’s text names itA ring painted in jobs.rs; the panel declares .icon("history")None
TipsOptional: the info icon marks a tip cardObject kind (severity: info)inlineDecorative: the heading names itIcon::Info hard-coded in egui-pop-api/src/tips.rs; Tip has no iconA plugin’s tip cannot have its own
Micro-indicators (icon kind)Required: the icon is the markEither: an on/off pair is a command’s, a state mark is a kind’sinline; on/off, toneOnly label: the mark’s meaningIndicator::icon, Indicator::toggle(on, when_on, when_off) (egui-pop-core/src/indicator.rs), each icon by value or by nameNo Indicator::command(id) taking a command’s icon pair yet (design/indicators.md)
Field state marksRequired: a state is never said by colour aloneGlyph roleinline; disabled, invalid, pending, modified, read-onlyDecorative: the state joins the field’s namefield::icon(Mark) in egui-pop-core/src/field.rsHard-coded mapping; could be glyph roles
Inputs: leading and trailing iconsOptional: a search field’s magnifier, a path field’s folderObject kind (what the field holds)inlineDecorativeInput::leading_icon, trailing_icon (egui-pop-core/src/input.rs), by value or by name, reported to agents (the icons collector’s drawn); search fields add Icon::SearchPer instance; no kind (file/folder) yet
Inputs: attached buttonsOptional: an icon button when the action is standard (clear, browse)CommandinlineOnly label: Attached::icon(icon, label)Attached::icon in input.rs, by value or by namePer instance
Dialog titlesNot used: the title and the buttons say it; a danger dialog is marked by its buttons———NoneNone
Dialog buttonsNot used: the verb matters———Text (egui-pop-api/src/dialogs.rs)None
Dialog closeRequiredGlyph role (close)Band buttonOnly label: “Close”Kit glyph on a band-icon-button (dialogs.rs)None

2.7 Platform

SurfaceRuleFamilySize and statesAccessibilityTodayGap
OS notificationsOptional: the application’s icon by default; a themed icon name on LinuxApplication iconThe system’sThe system’sNotification::icon: Option<String>, a themed icon’s name or a file path (egui-pop-platform/src/notify.rs)A system name space, not the registry’s; keep it apart
Tray iconRequired: it is the iconApplication iconThe system’sTooltip texttray::Icon RGBA pixels (egui-pop-platform/src/tray.rs), a disc by defaultNone
Tray menu entriesOptional, following the platform: the system draws that menuCommandThe system’sThe system’sEntry has no icon; entries become muda items without iconsNo icon; menus.icons should apply when the system allows
Desktop file actions and jump listsNot used: the desktop draws them, most without icons———Packaging (packaging.md)None

2.8 Helios

Helios is read at release 0.24.0. It declares about a hundred commands, fourteen panels, three places and three modes; none declares an icon, since commands cannot and the panel and frame fields are left empty.

SurfaceRuleFamilySize and statesAccessibilityTodayGap
Commands (open, export, undo and redo, the masks tools, culling marks, view modes)Optional in menus and the palette, required in toolbars and caption itemsCommandAs the surfaceAs the surfaceNone: CommandSpec has no iconDeclare once the registry exists
Panels (Image, Graph, Vault, Modules, Masks, Navigator, Parameters, Scopes, Filmstrip, Queue, Log, Compare, Stacks, Duplicates)Required in the activity bar and stripsObject kind (panel)panelOnly label: the titlehelios_panels() in helios-gui/src/lib.rs sets no PanelSpec::icon: strips show lettersFourteen icons to choose
Places and modes (Library, Darkroom, Network; Culling, Mask editing, Compare)Optional on crumbs and chipsObject kind (place, mode)inline; the mode’s toneDecorativehelios-template/src/contexts.rs sets no FrameSpec::iconSix icons to choose
Modules list and pipeline nodesOptional on rows and node titles, required if module groups become icon-only tabsObject kind (node type)inlineDecorative, or only label for icon tabsNone; the graph’s kinds carry no iconWaits for kind icons in the graph
Masks tree: element kinds (shape, parametric, luminance, raster, AI object, group, refinement)Required: rows mix kindsObject kind (mask element)inlineDecorativeItem::icon() in helios-gui/src/mask_tree.rs: Unicode glyphs and emoji (○, ◎, ✏, 🖼, ✨…), drawn with Source::glyphEmoji depend on the emoji font and ignore the theme; move to kind icons
Masks tree: visibility and lockRequired: row actionsCommand (toggle, with an “on” icon)inline; on, offOnly label: the hint textIcon::Visible/Hidden, Icon::Lock/Unlock hard-coded in mask_tree.rsShould be the commands’ icon pairs
Library marks (rating, flags, colour labels), stacks, compare, duplicatesRequired for marks; optional for the panelsGlyph role (marks), object kind (panels)As in 2.4As in 2.4egui-pop’s library views (2.4); Helios gives dataFollows egui-pop
Templates and workspacesOptional: an icon per workspace in pickers and the recent listObject kind (workspace)inlineDecorativemeta.icon: Option<String> in helios-template/src/workspace.rs, offered to agents as “a short generic icon name”; stored, edited, never drawnNot checked against any name list; not shown
Quick open (modules, images, workspaces)Required: one list of three kindsObject kindinlineDecorativehelios-gui/src/quick_open.rs on the choice dialog: text onlyWaits for choice rows with icons
Status items (images, zoom, history, culled)Not used: short texts———helios-gui/src/status_items.rs: textNone
Caption items (jobs, decisions, profile)Required: icon-only in the title barCommandtoolbar; a count badge, a ringOnly label: the action’s textRing painted; the decisions bell is Icon::Notification hard-coded in helios-gui/src/caption.rsShould come from the command it runs
Jobs (import, export, batch, calibration)Optional: a job kind’s icon in the jobs centreObject kind (job kind)inlineDecorativeTextWaits for job kinds in egui-pop
Node and AI connection indicatorsRequired when built: icon-only status items with a stateObject kind (a connection), with an LEDinline; off, on, busy, errorOnly label: the connection’s name and stateNot built (a connected node’s jobs are relayed, with no indicator)Waits for status items with icons
Tray and desktop menusOptional, following the platformCommandThe system’sThe system’sNot used by HeliosNone now
Viewport tools and overlaysRequired for a tool palette; not used on overlaysCommandtoolbarOnly labelThe picker is a slider’s quad button (Icon::Picker, helios-gui/src/params.rs); mask handles are overlaysNo tool palette yet
Parameters sectionsRequiredGlyph role (disclosure-*)inlineDecorativeIcon::ChevronDown/ChevronRight hard-coded in params.rsShould be the disclosure role

2.9 Count and main gaps

Counting each row once (glyph-role rows included, as they are surfaces too; a conditional rule counts by its first word):

RequiredOptionalNot usedRows
egui-pop (2.1 to 2.7)2727963
Helios (2.8)96116

The gaps that matter most:

  1. Commands have no icon. CommandSpec declares none, so menus, the palette, toolbars, the shortcut editor and status items cannot show one, and every command control takes its icon from its caller. Declared since step 2 (CommandSpec::icon, icon_on); menus read them since step 3.
  2. Icon names are not checked. PanelSpec::icon, FrameSpec.icon and a workspace’s icon are free strings; an unknown name becomes a letter or nothing, with no diagnostic (against ADR 0003). Closed by step 2 for egui-pop’s declarations (the unknown-icon diagnostic, the icons collector); a workspace’s icon is Helios’s.
  3. Icons are chosen inside widgets: severities in toasts, the editors’ gutter and the status bar’s counts; chevrons in the jobs centre, the library grid, the graph and Helios’s parameters (which should be glyph roles); the palettes’ pin; the library’s painted marks, which a kit cannot remap.
  4. Agents see only part of it. Panel and frame icons and the indicators’ icon names are reported; ListItem::icon is skipped, tree and input icons are closures or fields nobody describes. Closed by step 2: list entries, commands, tree rows and inputs are reported by name.
  5. Port types are told by colour alone in the node graph.
  6. The breadcrumb ignores FrameSpec.icon, which says it serves the crumbs. Closed by step 2.
  7. The vocabulary is small. About 57 built-in names cover egui-pop’s own needs; an application’s commands (Export, Crop, Import) need its own SVGs or a larger set (section 4.5).
  8. Helios declares nothing: no panel, place, mode or command icon, and its mask kinds are emoji.

3. Platform conventions for menu icons

What each platform says, with its source:

  • Windows. The Win32 guidelines say: “Consider providing menu item icons for the most commonly used menu items, menu items whose icon is standard and well known, menu items whose icon well illustrates what the command does”, and “If you use icons, don’t feel obligated to provide them for all menu items” (Menus, Icons). The system menu’s visual style has a gutter of its own: the theme parts MENU_POPUPGUTTER, MENU_POPUPCHECK (MC_CHECKMARKNORMAL, MC_BULLETNORMAL) and MENU_POPUPCHECKBACKGROUND, whose MCB_BITMAP state is the box drawn behind a checked item’s bitmap (Parts and States, MENU). WinUI gives the same advice for MenuFlyoutItem.Icon, at 16 by 16 pixels (Menu flyout and menu bar, Icons). Office (Word) follows this layout: icons in the left gutter, ticks in the same column, a checked item with an icon shown as the icon in a highlighted frame. That last point is observed in Word, not written in a guideline; MCB_BITMAP is the system’s part for it.
  • macOS 26 (Tahoe). The Human Interface Guidelines gained a section on menu item icons on 2025-07-28, updated on 2026-06-08: “Use menu item icons sparingly and with purpose. Icons allow people to find menu items more quickly, and help clarify what selecting an item does”, and “provide icons for all menu items in a group, or none of them” (Menus, Icons). The same page asks to “represent common actions consistently” with the system’s standard icons.
  • GNOME and GTK 4. The GNOME guidelines for menus mention check boxes and radio buttons and no item icons (Menus). GTK 4 accepts an icon attribute on a menu item, “names of icons that may be displayed” (GtkPopoverMenu), but an item that has a label does not show it: in gtk/gtkmodelbutton.c, update_visibility() shows the image only when has_icon && (self->iconic || !has_text), and only the sections drawn as rows of buttons are iconic (gtk/gtkmenusectionbox.c) (source at 49eeaf8a). So, by default, no icons in GNOME menus.
  • KDE Plasma. Icons are shown by default and a user setting turns them off: Plasma’s Qt platform theme reads ShowIconsInMenuItems from the [KDE] group, default true, and sets Qt’s AA_DontShowIconsInMenus from it (updateShowIconsInMenuItems in qt6/src/platformtheme/khintssettings.cpp of plasma-integration, source at 46eddde9).

All four agree on two things: an icon is never the only label of a menu item, and icons are for the common, well-known actions, not for every item.

The menus.icons setting (decided, 2026-10-22)

A setting under Appearance, menus.icons, with three values:

  • on (default): the Word-like gutter (section 5) in every menu, with the icons the commands declare.
  • off: no icons in menus. Ticks and radio dots keep their column, reserved only in a menu that holds a check or radio item.
  • platform: on on Windows, macOS and KDE Plasma; off on GNOME (read from XDG_CURRENT_DESKTOP); on Plasma, follow ShowIconsInMenuItems when it can be read.

The default is on, Word’s look, as the owner asked (an established application’s habit) rather than the platform; off and platform are the other choices, platform being there for GNOME users. The setting changes menus only: the palette, toolbars and other surfaces keep their own rule. Tray menus follow it when the system lets an application draw icons there.

4. The icon registry (decided, 2026-10-22)

One place where commands and object kinds declare their icon once; every surface reads it, no widget picks an icon for a command or a kind, and agents read the names.

4.1 Names, not values

An icon is referred to by name wherever it is declared: the model crate has no egui (ADR 0001), and PanelSpec::icon already works this way. A name is egui-pop’s (settings, history, the kebab-case Icon::name), a Phosphor glyph’s (section 4.5) or one a plugin registered (plugin-id:name, section 4.5). Every name is checked against that vocabulary; resolution happens in egui-pop-core, through Icon::by_name.

An unknown name is reported (a diagnostic naming the declarer, the surface and the name, ADR 0003) when the plugin connects and again when the theme is installed, and drawn as a neutral placeholder (the title’s first letter, as the activity bar does today), never silently dropped.

In code: egui_pop_core::icon::registry holds the vocabulary (lookup, which keeps each answer; resolve, which also reports; unknown; search), IconRef lets a widget take an Icon or a name, and Source::named gives a tree row’s icon by name. egui-pop-api checks every command’s, panel’s and frame’s icon when it resolves the declarations (the unknown-icon diagnostic) and its icons collector shows the whole of it to agents.

4.2 Command icons

CommandSpec gains two optional fields:

CommandSpec::new(id, "Show the grid", "View")
    .icon("grid")          // the action
    .icon_on("grid-off")   // optional: shown while `checked` holds

Every surface that runs a command reads them: menu items, the palette, quick open entries that run commands, CommandButton, toolbars, caption items, status items with a command, the shortcut editor, and indicators made from a command (Indicator::toggle from icon and icon_on). A caller may still pass an icon for one control (a different size of the same idea), but the default is the command’s.

egui-pop’s own commands declare theirs from the built-in names, so they show without the phosphor feature: Undo and Redo (undo, redo, and the editor’s and the history’s), Cut, Copy, Paste and Paste special (cut, copy, paste, paste-special, built-in names added for them), Settings (settings), the command palette (command), Full screen (fullscreen, exit-fullscreen while on), the light and dark toggle (theme), the window’s Minimize, Maximize (window-restore while maximized), Close and its menu, Back and Up in the context stack (chevron-left, up), Find and Save in the editors (search, save), the resets of the palettes and the arrangement (reset). egui-pop declares no Select all command: a text field keeps egui’s own.

An application sets the icon of a command it does not own (one of egui-pop’s, another plugin’s) with Ctx::command_icon(id, icon, icon_on): both names replace the declared ones on every surface, the last plugin to set one wins, and the change goes with its plugin. A command that is not declared is reported (unknown-command), and the names are checked as a declaration’s (unknown-icon, owned by the plugin that set them). The commands collector gives icon_set_by, the plugin whose icon is shown.

4.3 Object-kind icons

A kind is a namespaced id (<domain>/<kind>) mapped to an icon name, declared by the plugin that owns the domain (ADR 0004) and listed in the registry:

DomainExamplesDeclared by
panel/<id>panel/egui_pop.jobsPanelSpec::icon, unchanged
frame/<id>frame/darkroomFrameSpec::icon, unchanged
severity/<level>severity/info, severity/warning, severity/error, severity/successegui-pop
file/<type>file/folder, file/image, file/rawegui-pop (folder, file), the application (its types)
place/<id>place/home, place/recent, place/bookmarkegui-pop’s file chooser
job/<kind>job/import, job/exportthe application
node/<kind>node/blurthe application, on its graph kinds
port/<type>port/image, port/maskthe application, as a shape beside the colour
settings/<section>settings/appearancethe plugin owning the section

4.4 The existing fields read from it

FieldBecomes
ListItem::icon: Option<Icon>ListItem::icon(name) or ListItem::kind(kind); empty: the command’s icon; serialised for agents
FrameSpec.iconUnchanged as a declaration; the chips and the crumbs both read it
PanelSpec::iconUnchanged as a declaration; the activity bar, the strips and (when wanted) tabs read it, with the diagnostic of 4.1
Input::leading_icon, Attached::iconAlso accept a name or a kind (file/folder for a path field)
TreeView::icon closureKeeps returning a Source, with a new Source::kind(kind) so a tree names kinds instead of icons
Indicator::icon, Indicator::toggleAccept names; Indicator::command(id) takes the command’s icon pair
Hard-coded icons in widgetsSeverities become severity/* kinds; chevrons used as disclosures become the disclosure-* glyph roles; the library’s painted marks become glyph roles

4.5 Plugins and the vocabulary

A plugin registers its SVGs by name at connect time and declares its kinds; both are owned by the plugin and removed with it. A plugin’s own names are prefixed by its id, plugin-id:name (helios:mask-circle), so two plugins never clash; egui-pop’s names stay bare.

The contributor’s removal cleans its registrations: when the application API removes a plugin’s registrations (it is disconnected, or it failed to connect), it calls egui_pop_core::icon_set::unregister_owner with the plugin’s id. Its names stop resolving at once, and their textures go at the next theme install. An application registering icons outside a plugin calls egui_pop_core::icon_set::unregister (one name) or unregister_owner itself. A name keeps its id: registered again, it resolves to the same icon.

The built-in vocabulary is about 57 names. With the phosphor feature on (the default), every Phosphor glyph is in the font already, and they are exposed by name, under the same prefixed form (phosphor:export), which gives applications a large set with no SVG to ship. Without the feature, a Phosphor name does not resolve and is reported as unknown.

4.6 What describe reports

  • The commands collector gives each command’s icon and icon_on names, and whether each resolves.
  • A new icons collector lists the vocabulary (egui-pop’s names, each registered name with its owner and its paint, single-colour or full-colour), the kinds with their icon and owner, and the unresolved names with who declared them.
  • Menus, the palette, list entries, tree rows, status items and indicators report the icon name each entry shows, so an agent reads what is drawn without pixels.

5. The menu gutter (decided, 2026-10-22)

The rows of a menu already reserve an inline square on their left (section 2.2). The gutter makes it a column with rules.

  • Width. A new datum of the menu-item component, gutter, defaulting to {size.icon.inline} plus {space.s} on each side: 24 points in the comfortable density, 16 in the compact one, since the density overlays move both tokens. Every row of a menu, with or without an icon, starts its label after the gutter, so labels align. With menus.icons off and no check or radio item, the gutter is not reserved. Built as a part of its own, menu-item-gutter, since the “on” frame needs states: its width term is the gutter (the default above when not given, Kit::menu_gutter), its selected state the frame.
  • Without an icon. A checked item draws the check glyph role in the gutter; the chosen item of a radio group draws the radio glyph role (a radio group is new: an item kind whose checked clause picks one of a group). A mixed state draws nothing, as Windows advises.
  • With an icon, “on”. The icon stays and is framed, as Word does: a box the size of the gutter behind the icon, in a new checked state of menu-item’s gutter (fill {surface.active}, a 1-point border in {accent.default}), so the state does not rest on the fill alone. A command with an icon_on shows that icon instead, framed the same way.
  • Busy. A running command shows the spinner in the gutter, as today, over whatever it holds.
  • Columns on the right. The shortcut keeps its own column, right aligned, in the muted tone; the submenu arrow (the submenu glyph role) takes the last column. A menu’s width is the widest label, plus the widest shortcut, plus the arrow, plus the gutter.
  • Disabled. The icon and the tick take the item’s disabled colour, as the label; the reason stays in the tooltip.
  • High contrast. Icons are drawn in the item’s text colour, never in a tone; full-colour application icons are drawn as they are only when the theme is not a high-contrast one, else as their single-colour mask. The “on” frame keeps its border.
  • Accessibility. The gutter is decorative: AccessKit reads the title, and a check or radio item is announced as checked or not.
  • Tests. Labels of rows with and without icons start at the same x; a ticked row and a framed row; both densities; high contrast.

6. Delivery order

  1. This inventory, reviewed by the owner (decisions in section 7, 2026-10-22).
  2. The registry, model side: CommandSpec::icon and icon_on, kind declarations, names checked with diagnostics, the icons collector and the names in describe; ListItem by name and serialised. Done, but for the kind declarations (<domain>/<kind>, section 4.3), left to step 6 with the surfaces that need them; the breadcrumb’s icons (from step 6) came with it.
  3. Menus: the gutter of section 5, radio items, the menus.icons setting (default on); the gallery’s menus page with icons, ticks, radios, framed and disabled entries; snapshots and alignment tests; the extension template declares an icon on its command. Done (2026-10-27).
  4. Command surfaces: the palette’s icon (when the command declares one; done with step 3), CommandButton and caption items from the command, the shortcut editor; choice rows with icons (for quick open).
  5. Icons out of widgets: severities as kinds (toasts, the editors’ gutter, the status bar’s counts, tips), disclosure chevrons as glyph roles (jobs centre, library, graph), the palette’s pin, the library’s marks as glyph roles.
  6. Object kinds where the table says required: the file chooser’s places and entries, the breadcrumb’s icons (hidden in the compact density), panel tabs’ icons behind a setting (off by default), the graph’s node kinds and port shapes, job kinds, settings sections.
  7. Toolbars: a toolbar component in egui-pop (overflow, icon or text mode). Done (2026-10-28, docs/toolbars.md), with icons on status items, on egui-pop’s own commands and Ctx::command_icon.
  8. Helios: icons for its panels, places and modes, commands (open, export, undo and redo, the masks tools, culling marks, view modes), mask kinds instead of emoji, job kinds, a workspace’s icon checked and shown, the caption’s bell from its command.

7. Decisions (2026-10-22)

The owner accepted the plan on 2026-10-22 and settled the open questions:

  1. menus.icons defaults to on (the Word-like gutter); off and platform are the other choices.
  2. A checked command with an icon shows the icon framed, as Windows and Word do. Without an icon, the tick goes in the gutter.
  3. Phosphor glyphs are exposed by name, and every name is checked against the vocabulary.
  4. A plugin’s icon names are prefixed by its id: plugin-id:name.
  5. The breadcrumb shows an icon on every place that declares one, hidden in the compact density.
  6. Icons in panel tabs sit behind a setting, off by default. Folded strips (and the activity bar) always show icons.
  7. The command palette shows an icon when the command declares one.
  8. egui-pop gets a toolbar component.

8. An application’s own icons: the contract

The icon set (egui_pop_core::icon_set) is where an application or a plugin adds SVG icons to the vocabulary. It belongs to the family “Feedback, hints and icons” (ADR 0027).

Owns: registering SVGs by name, drawing them like egui-pop’s own (Icon::Custom), rasterising them per icon size and pixel density, the names agents read.

Refuses: an icon font as a default other than the bundled one; animated icons; colouring a full-colour icon.

use egui_pop_core::icon_set::{self, Paint};

const MASK: &[u8] = br#"<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6"/></svg>"#;

fn setup() {
    // An application's own name stays bare; a plugin's is prefixed by its id.
    let icon = icon_set::register("mask-circle", MASK, Paint::Mono);
    let theirs = icon_set::register_for("my-plugin", "mask-circle", MASK, Paint::Mono);
    let _ = (icon, theirs, icon_set::by_name("my-plugin:mask-circle"));
}

A plugin calls Ctx::icon, which registers under its id. Once registered, the name works everywhere a name does: CommandSpec::icon, PanelSpec::icon, a kit’s glyphs (glyph.<role>: "<name>").

  • Paint: Paint::Mono is a white mask tinted at draw with the colour the widget gives (one texture for every colour); Paint::Colour is drawn as it is (a logo).
  • Rasterising: egui_pop_core::icon_set::install (run with the theme) rasterises every icon at the theme’s size.icon.* and the window’s pixels per point; an icon drawn at another size is rasterised once at that size, then kept (a scaled texture would blur).
  • Registering again under a name replaces its SVG, in use from the next theme install. A name keeps its id for the whole process, even unregistered (unregister, unregister_owner: the name stops resolving at once, its textures go at the next theme install) and registered again (see 4.5).

Failure: register refuses (IconError) a name of egui-pop’s own or in the phosphor: name space (Taken), an SVG that does not parse (Svg), and everything without the svg feature (Unsupported). A name nobody registered is reported where it is declared and drawn as a placeholder (4.1).

Accessibility: an icon is never a name; the widget drawing it takes its name from its command or its caller.

Tier: Supported with the icons, decided in API stability on 2026-11-15 (released since 0.8; the names and their prefixes are what declarations and kits store).

Tests: unit tests in crates/egui-pop-core/src/icon_set.rs (a name and a mask, a plugin’s prefix, refusals, a kit glyph naming an application icon, one texture per size, a size rasterised once); frames in crates/egui-pop-core/tests/icon_set.rs (a mask tinted, a full-colour icon drawn as it is, a size rasterised at that size, a name drawn from the next install and gone at once when unregistered, the refusal without the svg feature); commands drawn with their icons in crates/egui-pop-api/tests/it/command_icons.rs.