DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #832: Window menu in InDesign's order; Window > Workspace with Essentials Classic
aiongg42f000e95acb
diff --cc ROADMAP.mdindex bf790d8ca,495aadc61..2c360622d--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -128,77 -129,9 +128,78 @@@ list) · [roadmap.md](docs/roadmap.md)Newest first.+ - **2026-10-13** · The Window menu follows InDesign's order (Arrange, Workspace, then the panels alphabetically with Color, Editorial, Object & Layout, Styles… submenus), and Window › Workspace lists the workspaces as InDesign does, now with Essentials Classic: the Control panel and an icon column of named panel groups. No readiness percentage change.+- **2026-10-13** · `.indd` and `.indt` documents open through File › Open, drop, the web inbox, `file.open`, `file.openBytes`, `file.openIdml` and the CLI: [storytold/indd-utils](https://github.com/storytold/indd-utils) converts them to IDML in memory and the IDML importer reads the result, on desktop and web. Converter warnings come first in the open result; an unreadable file is an open error (#21, #114). No readiness percentage change until a real-file corpus measures it.+- **2026-10-13** · macOS: a command chosen with the mouse in the menu bar runs at once. It used to wait for the next mouse move or key press over the window, so File › Open, Place and Save As seemed to take 10–20 seconds to open their dialogs. No readiness percentage change.+- **2026-10-13** · An explicit recovery folder (`file.recovery.save` with `dir`) never overwrites or deletes another running app's checkpoints. Document uids start at 1 in every process, so two apps saving recovery to one chosen folder replaced or removed each other's `<uid>.designcraft`. A run replaces or removes only the entries it wrote or recovered there, refuses an occupied uid, and refuses a folder whose run lock another app holds. No readiness percentage change.+- **2026-10-13** · PDF export leaves out form fields, buttons and video or sound that don't print: inside a hidden group, on a hidden or non-printing layer, or marked non-printing. Page content and interactive elements follow one inclusion rule. No readiness percentage change.+- **2026-10-13** · IDML export keeps parent item overrides: each page lists its overridden parent items and the local copy keeps its link to the parent item, so a reopened IDML file shows only the local copy (#725). No readiness percentage change.+- **2026-10-13** · Reflowable EPUB and HTML export include tables (header and footer rows, merged cells), footnotes (a linked note after the paragraph that refers to it) and endnotes (a linked section at the end of the book). No readiness percentage change.+- **2026-10-13** · Word import: table cells read text by the same rules as body text, so deleted text, moved-away text and field codes stay out (#721). Word's Normal comes in as its own paragraph style "Normal" over the document defaults, so text formatted only by Normal keeps its look; it conflicts only with a document's own Normal, and the style map can send it to [Basic Paragraph] (#722). No readiness percentage change.+- **2026-10-13** · Text recomposes when the document baseline grid changes, when a layer holding a text-wrap object is shown or hidden, or when a section's start number, numbering style, prefix or marker changes; the composition cache keyed only on the section count and item identities and kept the old layout. No readiness percentage change.+- **2026-10-13** · Path edits (`path.setAnchor`, `path.moveAnchors`, `path.appendAnchor`, `path.reverse`, `path.close`, anchor add/delete/convert, Erase, Smooth and Scissors) refuse a path that is locked, sits in a locked group or on a locked layer (#735). Properties links to the Stroke, Character, Paragraph, Effects, Text Wrap and Info panels open them in a customized panel layout too (#736). No readiness percentage change.+- **2026-10-13** · The Story Editor stays with the document its story belongs to: it hides while another document is active and closes with its document, so its edits never reach another document's story with the same id (#729). Undo restores the selection from before the command and Redo the one after it (#716). No readiness percentage change.+- **2026-10-13** · Saving never reports success without a file: a document that can't be written is an error from Save, Save As, Save a Copy, Package, snippet export and the web serializer, leaving the existing file, the unsaved state and the recovery checkpoint as they were. Placed files over 4 GiB are written with zip64 sizes. A web Save whose browser download can't start reports the error and keeps the document unsaved (#741, #708). No readiness percentage change.+- **2026-10-13** · Colour management runs on craft-libs' `craft-cms`. The default CMYK working space is its Coated FOGRA39 profile (Generic CMYK and Device CMYK stay selectable); CMYK swatches show relative colorimetric with the settings' black point compensation, and PDF/X-4 output intents embed the working CMYK profile (FOGRA39 by default). Profile names the built-in stands in for resolve to it; other unknown names are an error, and saved settings naming one start with the default. No readiness percentage change.+- **2026-10-13** · Command scripts look up only a well-formed `$N.path` / `$last.path` reference; other strings starting with `$`, such as a GREP replacement of `$1` and a nonbreaking space, stay as written, and `$$` writes a literal `$` (#749). No readiness percentage change.+- **2026-10-13** · Dialogs and the About window move when you drag their title row, so the page behind them can be seen. A dragged dialog may go partly off-screen, but its title row stays reachable; each dialog opens centred, and again after the window is resized. No readiness percentage change.+- **2026-10-12** · Placed Excel tables and Excel data-merge records keep numeric precision, including small values, and preserve numeric-looking cached formula strings as text. No readiness percentage change.+- **2026-10-13** · Links rows show their source paths; selecting a link shows its full path wrapped inside the panel, so same-named files from different folders can be distinguished. No readiness percentage change.+- **2026-10-13** · HTML and reflowable EPUB order grouped stories and graphics by their transformed spread position, including nested groups and rotated frames. Explicit Article order is unchanged. No readiness percentage change.+- **2026-10-13** · A selected placed graphic shows its own brown bounding box with handles: dragging one resizes the graphic inside its frame (Shift keeps proportions, Alt from the centre) and leaves the frame as it is; `transform.set` takes the graphic's new spread `bounds`. Builds on #415 and #550. No readiness percentage change.+- **2026-10-13** · Create Outlines makes one compound path per line (and per text colour within a line), grouped, as InDesign does: Ungroup then leaves each line on its own to be spaced and made into one compound path again. A single line in one colour stays a single compound path. No readiness percentage change.+- **2026-10-13** · Ungroup only takes groups apart: a frame with pasted-in content stays whole (and selected), is named by its shape in the Layers and Properties panels, and offers Convert Shape rather than Ungroup. Non-groups stay selected. No readiness percentage change.+- **2026-10-13** · Copy with a placed graphic selected (Direct Selection) copies just the graphic, uncropped, where it sits on the page and without the frame's stroke, so Paste Into puts the whole image in place; Cut and Delete then remove only the graphic and leave its frame empty. Nested selections copy in their spread coordinates. No readiness percentage change.+- **2026-10-13** · Object effects (Basic Feather, Inner Glow, shadows, glows, bevel, satin, directional and gradient feathers) apply to frames with pasted-in content, on screen and in image exports: the frame, its clipped content and its stroke are one object to the effect. PDF export still has no soft effects for any object. No readiness percentage change.+- **2026-10-13** · Backspace between two consecutive tables, pasting a table next to a table anchor, and pasting several paragraphs right before one keep every table on its own anchor paragraph. Previously a table was dropped or left without its anchor, and the saved file failed to reopen. No readiness percentage change.+- **2026-10-12** · The engine's atomic writer, used by saves and exports (documents, snippets, books, libraries, swatches, XML, interchange, MCP, desktop and CLI writes), delegates to craft-libs/craft-atomic. Failed writes retain the original; new files follow the umask and replaced files keep their permissions. Recovery checkpoints and package output keep their own no-follow writers. No readiness percentage change.+- **2026-10-13** · New Document has Preview (off by default, kept for the session): a document with the window's settings shows in the workspace and follows them once typing pauses. Create keeps it with a clean undo history and refuses invalid fields; Close removes it and shows the previous document again. The preview takes no Untitled number and writes no recovery data; one edited by a menu or script stays open as a document. No readiness percentage change.+- **2026-10-13** · Object styles carry effects (drop shadow, feather, inner and outer shadows and glows, bevel, satin, gradient and directional feather). New styles from a selection keep its effects, `style.object.edit` changes a style's effects and every item that follows them, `style.object.clearOverrides` returns items to their style, and new frames take their default style's effects. IDML carries only the drop shadow and feather, for ObjectStyles (with their effects category and BasedOn chain) as for items (#653). No readiness percentage change.+- **2026-10-13** · A parent can be based on another parent (`layout.parents.options`). Pages draw the base parent's items, then the parent's, then their own, on screen and in PDF and image export; chains work, cycles are refused, overrides reach base items, `document.inspect` reports `basedOn`, and IDML round-trips it. No readiness percentage change.+- **2026-10-12** · The Effects dialog, as in InDesign: Object › Effects (Transparency…, Drop Shadow… and the rest, and their shortcuts) and the Effects panel's fx button open it on the chosen effect, turned on. Transparency and every effect in one window, in the document's units, with X/Y offsets, Preview on the page, Cancel putting things back, and OK as one undo step (`object.effects`). Shadows default to InDesign's 120° light angle. No readiness percentage change.+- **2026-10-12** · Editing type on a path: the Type tool clicks, drags and double-clicks along the curve (the character under the pointer, not one on the straightened line), a click on the letters themselves hits the frame, and the caret and highlight bend with the path. No readiness percentage change.+- **2026-10-12** · Type on a path has start and end brackets, as in InDesign: selected path type shows them across the path, and dragging either with the Selection or Direct Selection tool moves where the text starts or ends (text past the end bracket is overset). `type.pathOptions {end}`; IDML reads and writes EndBracket. No readiness percentage change.+- **2026-10-12** · The Pen tool continues an open path from either end point, as in InDesign: the cursor shows it over an end point, a click there carries on drawing that path, a drag first reshapes the end point's direction lines, and the other end closes it. Object › Paths › Reverse Path (`path.reverse`); `path.setAnchor`; `path.appendAnchor` and `path.close` take a subpath. No readiness percentage change.+- **2026-10-12** · The Eyedropper puts a colour sampled from an image on the stroke when the toolbox's Stroke box is in front, as in InDesign (a line takes it on its stroke). No readiness percentage change.+- **2026-10-12** · Linked text files (#597): placed Word, RTF and text files can stay linked; the Links panel shows them OK / Modified / Missing, and Update imports the file again into the same frames with the saved style map (the Links panel asks before replacing edits made in the layout). No readiness percentage change.+- **2026-10-12** · Text in oval, polygon and other non-rectangular text frames follows the frame's outline: each line is set in the part of its band inside the shape, one inset away from the outline, in every column and in vertical frames; text wrap still applies on top (#646). No readiness percentage change.+- **2026-10-12** · Colour entry: the Color Picker's hex, R/G/B and C/M/Y/K fields and the Color panel's number fields keep typed text until it is complete; panel and picker values are applied on a fixed scale (`{model, …}` colours in 0..1), so M 1 is 1 %. Picking keeps a CMYK colour CMYK; dialogs leave the page behind them undimmed; colours that round to the same swatch name share one swatch (#323). No readiness percentage change.+- **2026-10-12** · Placed photos show in their own colours: embedded ICC profiles (Adobe RGB, ProPhoto, P3, grey) are converted to sRGB on screen, and CMYK JPEGs (including YCCK), CMYK TIFFs and CMYK PSDs go through their embedded CMYK profile or the working CMYK space with the colour settings' intent and black-point compensation, instead of the profile-free formula. Unreadable profiles are ignored. No readiness percentage change.+- **2026-10-12** · Placed Word documents keep their bullets and numbering (#626): `numbering.xml` levels become bullet or numbered paragraphs with Word's number formats, label text, start numbers, restarts and list indents, also when a paragraph style carries the list. No readiness percentage change.+- **2026-10-12** · Text strokes can sit behind the fill: the stroke lies wholly outside the letters at its full weight on screen, in PNG and in PDF, set from the Properties panel or Character Style Options. IDML `StrokeAlignment` on text imports and exports as this setting, so imported text with outside-aligned strokes keeps its letter shapes (#619). No readiness percentage change.+- **2026-10-12** · Type tool: Option/Alt+Left/Right kerns the pair at the caret (manual kerning) or tracks a selection by the Kerning/Tracking increment (Preferences › Units & Increments, 20/1000 em), five times with Cmd/Ctrl; moving by words is Cmd+Left/Right on macOS and Ctrl+Left/Right elsewhere, and Option/Alt+Shift+Left/Right still selects by words (#621). No readiness percentage change.+- **2026-10-12** · Autoflow on Place threads one frame per page column (right to left in a right-to-left story), so text no longer runs across the gutter; pages Smart Text Reflow adds get a primary frame with the page's columns (#625). No readiness percentage change.+- **2026-10-12** · Vector art copied in Illustrator, VectorCraft, Figma or Inkscape pastes as editable paths, as InDesign pastes Illustrator art: the SVG those apps put on the clipboard becomes paths with their fills, strokes (weight, caps, joins, dashes) and opacity, groups stay groups and text comes in as outlines, centred in the view (`edit.pasteSvg`, `ui.paste`). Edit › Paste reads the system clipboard when nothing was copied in DesignCraft. No readiness percentage change.+- **2026-10-12** · Pages panel: double-clicking a parent shows that parent and selects only its row; parent rows show rendered thumbnails. Commands name parents by id, full name, or a prefix only one parent has; an unknown or ambiguous name is an error instead of clearing the page's parent (#624). No readiness percentage change.+- **2026-10-12** · With the Type tool, dragging a table's column or row border resizes it (the double-arrow cursor shows over a border): later columns and rows move along, Shift keeps the table size, and Shift on the right or bottom edge scales every column or row. A dragged row becomes At Least; one undo step per drag, Esc cancels; works in rotated frames and turned spreads. Scripts use `table.resizeBorder`. No readiness percentage change.+- **2026-10-12** · The Tools panel's Fill/Stroke keys work: D (default fill and stroke), X (fill or stroke in front), Shift+X (swap per object, tints included) and / (Apply None), as `color.*` commands; swap and default are one undo step (`object.swapFillStroke`, `object.defaultFillStroke`); the Color panel follows the proxy's fill/stroke choice. No readiness percentage change.+- **2026-10-12** · With a placed graphic selected (Direct Selection), the Transform values act on the graphic inside its frame, as in InDesign: a tilted frame's image can be straightened to 0°. No readiness percentage change.+- **2026-10-11** · Font menu laid out like InDesign's: filters (classification, favourites,+ recently added), families opening to their styles, the selected text as the sample in three+ sizes, Recently Used fonts, Show Similar Fonts and each font's format.+- **2026-10-12** · The Effects panel shows the level its settings apply to ("Group: Color Dodge 100%") and, as in InDesign, Isolate Blending and Knockout Group for a selected group. No readiness percentage change.+- **2026-10-12** · Edit › Step and Repeat has its InDesign dialog: Repeat (Count, or Rows and Columns with Create as a grid), Offset (Vertical, Horizontal, in ruler units) and Preview, which shows the copies while the dialog is open; Cancel takes them away and OK makes them as one undo step. No readiness percentage change.+- **2026-10-12** · Load Styles: the Paragraph Styles and Character Styles panels load styles from another DesignCraft document or an IDML file, with the styles, swatches and lists they name; a dialog picks the styles and what happens to one the document defines differently (`style.load`). No readiness percentage change.+- **2026-10-12** · On screen, blend modes blend with the objects below and not with the paper, as in InDesign and in PDF export: a Color Dodge or Screen object over blank paper shows as it is. No readiness percentage change.+- **2026-10-12** · Text threads by hand: click a selected text frame's in or out port to load+ the text cursor, then click a frame to thread it, click empty space for a column-wide frame or+ drag one (it snaps like frame drawing); Shift-click autoflows, Alt-click stays loaded on the+ frame just added; click the linked frame or double-click a port to break the thread.+ `text.thread`, `text.unthread`, `text.removeFromThread` with undo; locked frames and layers+ refuse threads. The alpha gate now waits only on the Primary Text Frame page fixes (#165). No+ readiness percentage change.+- **2026-10-12** · Properties › Transform shows rotation, shear and X/Y scale, and Rotate 90° and Flip Horizontal/Vertical buttons, as InDesign's does. No readiness percentage change.+- **2026-10-12** · Underlines and strikethroughs are drawn as one bar per stretch of text on screen, as in PDF export: a bar per letter left faint seams between the letters. No readiness percentage change.+- **2026-10-12** · The section marker character shows its section's marker text on document pages (nothing when the section has none) instead of the word "Section", which stays on parent pages; editing the marker recomposes (#556). No readiness percentage change.+- **2026-10-12** · IDML import keeps a font family name exactly as written, trailing spaces included, and font lookup falls back to the name without surrounding spaces; `FontStyle="Nothing"` leaves the style to the paragraph (#558). No readiness percentage change.+- **2026-10-12** · Clipping paths saved with images in IDML (Detect Edges, Alpha Channel, Photoshop Path, User-Modified Path, inverted or not) clip the image on screen and in PDF and survive IDML export; `object.clippingPathOptions` reports, inverts or removes one (#450). No readiness percentage change.+- **2026-10-12** · Anchored objects with text wrap push text aside: other stories' text under them and the lines of their own story after the anchor's line (#557). No readiness percentage change.+- **2026-10-12** · Hyphenation Zone applies to the Single-line Composer only, as in InDesign. With the default Paragraph Composer, ragged text hyphenates where InDesign does (aper-natem), giving the same line breaks. No readiness percentage change.+- **2026-10-12** · Text frame auto-size: Height Only, Width Only, Height and Width (also keeping proportions) frames grow and shrink to fit their text after edits, around their reference point, with minimum sizes and No Line Breaks, in the same undo step (#180). No readiness percentage change.+- **2026-10-12** · Text Frame Options › Balance Columns (`object.textFrameOptions {balanceColumns}`, IDML `VerticalBalanceColumns`) evens out the columns of the frame a story ends in, from its last column break on; frames the text runs on from fill normally (#609). No readiness percentage change.- **2026-10-12** · macOS Dock Quit uses the same unsaved-document prompts as window and menu Quit. Repeated requests keep the current answers; Cancel retains every tab and unsaved recovery checkpoint, and completed Save/Don't Save answers exit through the ordinary event loop. No readiness percentage change.- **2026-10-12** · Orderly native exit writes the latest recovery state after finalizing current quit approvals; incomplete or stale plans keep their documents, and Undo to the saved state clears stale recovery. Unavailable or failed recovery is reported. Cancelable macOS Dock Quit remains open (#544). No readiness percentage change.+- **2026-10-12** · Windows: dragging the window across monitors with different display scales keeps its size instead of growing until it crashes (winit pinned to its 0.30.x backport of the fix). The GPU surface may be as large as the adapter's largest texture (16384 px on DirectX 12, Vulkan and Metal hardware) instead of 8192, and a wgpu error is logged instead of closing the app. No readiness percentage change.- **2026-10-12** · Recovered documents keep a checkpoint until saved, closed or reverted, including a second crash before autosave. Restarted document IDs and explicit recovery folders preserve other snapshots; failed republishing retains the original. No readiness percentage change.- **2026-10-12** · Book numbering and style updates prepare every chapter before saving. Only closed native chapters are changed; imported IDML remains a read-only style/PDF source. If a later disk write fails, the error names the completed chapters; the batch is not a whole-book transaction. No readiness percentage change.- **2026-10-12** · Desktop write callbacks and CLI raster exports use the atomic writer too; open readers retain the original bytes, while private Unix modes and symlink targets survive replacement. Permanent tests cover both actual callers. No readiness percentage change.diff --cc crates/ui-egui/src/chrome.rsindex 750bc7a92,5e02276a7..f2f7d75fb--- a/crates/ui-egui/src/chrome.rs+++ b/crates/ui-egui/src/chrome.rs@@@ -10,347 -10,119 +10,335 @@@ use crate::theme::{Tokens, semibold}use crate::widgets::{caption, measure, number};use crate::{DesignApp, icons};+/// Height of the application bar (InDesign 2026), then a 7 pt lower band and a 1 pt border. The+/// band covers the panel's 1 pt separator line, so the frame's bottom margin is 1 pt short of it.+const APP_BAR: f32 = 36.0;+const APP_BAR_BAND: f32 = 7.0;+const SEPARATOR: f32 = 1.0;+/// Height of the application bar on macOS, where it is the window's title bar (#333). AppKit draws+/// the traffic lights itself, centred in the standard 28 pt title-bar band at the top of the+/// window; moving them would take AppKit calls (`unsafe`, which the workspace forbids). So the bar+/// is that band: the lights sit vertically centred in it, with the bar's controls beside them.+pub const MAC_APP_BAR: f32 = 28.0;+/// The traffic lights as AppKit lays them out: button diameter, centre-to-centre pitch and the+/// first button's left edge (8–10 pt depending on the macOS version; the larger value keeps the+/// gap after them from shrinking).+const MAC_LIGHT: f32 = 12.0;+const MAC_LIGHT_PITCH: f32 = 20.0;+const MAC_LIGHTS_LEFT: f32 = 10.0;+/// Where the bar's content starts to the right of the traffic lights: the end of the three lights+/// plus the same gap the lights keep from the top of the window.+pub const MAC_CONTENT_LEFT: f32 = MAC_LIGHTS_LEFT + 2.0 * MAC_LIGHT_PITCH + MAC_LIGHT + (MAC_APP_BAR - MAC_LIGHT) / 2.0;++fn search_id() -> egui::Id {+ egui::Id::new("app_bar_search")+}++/// Whether the application bar's search field had the keyboard last frame. Escape takes egui's+/// focus away before any widget runs, so that press must not reach the global shortcuts.+pub fn search_had_focus(ctx: &egui::Context) -> bool {+ ctx.memory(|m| m.had_focus_last_frame(search_id()))+}++/// The search field's state between frames: the query, the highlighted match, whether the matches+/// are shown, and the widget that had the keyboard before the field took it.+#[derive(Clone, Default)]+struct SearchState {+ query: String,+ highlight: usize,+ open: bool,+ previous_focus: Option<egui::Id>,+}++/// The application bar's search field: finds menu commands by their labels in the interface+/// language. ↑/↓ move through the matches; Return or a click runs one as its menu item would.+/// Running one or pressing Escape clears the field and gives the keyboard back to the widget that+/// had it. While the field has the keyboard, no key reaches the shortcuts or the document.+fn search_field(app: &mut DesignApp, ui: &mut egui::Ui) {+ let t = Tokens::get(ui.ctx());+ let id = search_id();+ let state_id = id.with("state");+ let mut st: SearchState = ui.data(|d| d.get_temp(state_id)).unwrap_or_default();+ let (r, _) = ui.allocate_exact_size(vec2(125.0, 18.0), Sense::hover());+ ui.painter().rect(r, 1.0, t.input, Stroke::new(1.0, t.field_border), egui::StrokeKind::Inside);+ icons::paint(ui.painter(), egui::Rect::from_min_size(r.min + vec2(3.0, 2.0), vec2(14.0, 14.0)), "search", t.icon);+ let focused = ui.memory(|m| m.has_focus(id));+ let had_focus = search_had_focus(ui.ctx());+ if !focused && !had_focus {+ st.previous_focus = ui.memory(|m| m.focused());+ }+ let none = egui::Modifiers::NONE;+ let (down, up, enter, escape) = if focused || had_focus {+ ui.input_mut(|i| {+ (+ i.consume_key(none, egui::Key::ArrowDown),+ i.consume_key(none, egui::Key::ArrowUp),+ i.consume_key(none, egui::Key::Enter),+ i.consume_key(none, egui::Key::Escape),+ )+ })+ } else {+ (false, false, false, false)+ };+ let lang = app.ui.language.clone();+ let hint = crate::rtl::widget(ui, egui::RichText::new(crate::i18n::tr(&lang, "Search")).color(t.text_dim));+ let field = egui::Rect::from_min_max(r.min + vec2(19.0, 0.0), r.max - vec2(3.0, 0.0));+ let resp = ui+ .put(+ field,+ egui::TextEdit::singleline(&mut st.query)+ .id(id)+ .frame(egui::Frame::NONE)+ .margin(egui::Margin::ZERO)+ .font(egui::FontId::proportional(11.0))+ .text_color(t.text)+ .hint_text(hint)+ .desired_width(field.width())+ .vertical_align(egui::Align::Center)+ // Return runs the highlighted match instead of leaving the field.+ .return_key(None),+ )+ .on_hover_text(crate::i18n::tr(&lang, "Search commands"));+ if resp.changed() {+ st.highlight = 0;+ st.open = true;+ }+ if resp.gained_focus() {+ st.open = true;+ }+ let items = if st.open { crate::menus::command_search(app, &st.query) } else { Vec::new() };+ let last = items.len().saturating_sub(1);+ if down {+ st.highlight = st.highlight.saturating_add(1);+ }+ if up {+ st.highlight = st.highlight.saturating_sub(1);+ }+ st.highlight = st.highlight.min(last);+ let mut run = None;+ if enter && let Some(it) = items.get(st.highlight).filter(|it| crate::menus::menu_enabled(app, &it.id)) {+ run = Some(it.id.clone());+ }+ let mut over_matches = false;+ if st.open && !st.query.trim().is_empty() {+ let shown = egui::Area::new(id.with("matches"))+ .order(egui::Order::Foreground)+ .pivot(egui::Align2::RIGHT_TOP)+ .fixed_pos(r.right_bottom() + vec2(0.0, 2.0))+ .show(ui.ctx(), |ui| {+ egui::Frame::menu(ui.style()).show(ui, |ui| {+ let size = vec2(300.0, 22.0);+ ui.set_width(size.x);+ if items.is_empty() {+ crate::rtl::label(ui, egui::RichText::new(crate::i18n::tr(&lang, "No matching commands")).color(t.text_dim));+ }+ for (k, it) in items.iter().enumerate() {+ let mut b = egui::Button::new(crate::rtl::widget(ui, it.label.as_str())).frame(false).min_size(size);+ if let Some(sc) = &it.shortcut {+ b = b.shortcut_text(crate::menus::shortcut_text(sc));+ }+ if k == st.highlight {+ ui.painter().rect_filled(egui::Rect::from_min_size(ui.cursor().min, size), 2.0, t.hover);+ }+ let enabled = crate::menus::menu_enabled(app, &it.id);+ // The button aligns its label by the layout it's in: left, like the menus.+ let row = ui.allocate_ui_with_layout(+ size,+ egui::Layout::left_to_right(egui::Align::Center).with_main_align(egui::Align::Min),+ |ui| ui.add_enabled(enabled, b),+ );+ if row.inner.clicked() {+ run = Some(it.id.clone());+ }+ }+ });+ });+ over_matches = shown.response.contains_pointer();+ }+ if escape || run.is_some() {+ st.query.clear();+ st.open = false;+ let previous = st.previous_focus.take();+ ui.memory_mut(|m| match previous {+ Some(p) => m.request_focus(p),+ None => m.surrender_focus(id),+ });+ } else if !resp.has_focus() && !over_matches {+ // A click elsewhere or Tab took the keyboard: the matches close, the query stays.+ st.open = false;+ }+ ui.data_mut(|d| d.insert_temp(state_id, st));+ if let Some(cmd) = run {+ crate::menus::activate(app, &cmd, &serde_json::Value::Null);+ }+}++/// Width of the app bar's right-hand slot: what is left of the row, minus a pixel of slack so+/// that rounding at fractional scales (115%) never makes the row a hair wider than the scroll+/// area and shows a needless scroll bar. Never narrower than the controls themselves.+fn tools_slot_width(available: f32, tools_w: f32) -> f32 {+ (available - 1.0).max(tools_w)+}+pub fn app_bar(app: &mut DesignApp, ui: &mut egui::Ui) {let t = Tokens::get(ui.ctx());- let left = if app.integrated_titlebar { 78 } else { 8 };- // 36 pt bar + 7 pt lower band (InDesign 2026), then a 1 pt border.+ let mac = app.integrated_titlebar;+ let left = if mac { MAC_CONTENT_LEFT as i8 } else { 8 };+ let bar = if mac { MAC_APP_BAR } else { APP_BAR };+ // The tallest control keeps a margin above and below it in the shorter macOS bar.+ let home = if mac { 22.0 } else { 24.0 };let resp = egui::Panel::top("app_bar")- .exact_size(43.0)- .frame(egui::Frame::NONE.fill(t.app_bar).inner_margin(egui::Margin { left, right: 10, top: 0, bottom: 7 }))+ .exact_size(bar + APP_BAR_BAND)+ .frame(egui::Frame::NONE.fill(t.app_bar).inner_margin(egui::Margin {+ left,+ right: if app.custom_titlebar { 0 } else { 10 },+ top: 0,+ bottom: (APP_BAR_BAND - SEPARATOR) as i8,+ })).show(ui, |ui| {let full = ui.max_rect();+ if mac {+ // The whole title-bar band, margins included; the controls drawn below take+ // their own clicks.+ let band = egui::Rect::from_min_max(+ egui::pos2(full.min.x - f32::from(left), full.min.y),+ egui::pos2(full.max.x + 10.0, full.min.y + MAC_APP_BAR),+ );+ crate::title_bar::empty_area(ui, band);+ }let mut menus_end = full.min.x;let mut tools_start = full.max.x;- // The right-hand controls' width, measured last frame: in a window too narrow for them- // and the menus they follow the menus, and the bar scrolls sideways.- let tools_w_id = ui.id().with("tools_width");- let tools_w: f32 = ui.data(|d| d.get_temp(tools_w_id)).unwrap_or(0.0);- crate::widgets::overflow_scrolling(ui);- egui::ScrollArea::horizontal().id_salt("app_bar_scroll").auto_shrink([false, false]).show(ui, |ui| {- ui.horizontal_centered(|ui| {- if icons::button(ui, "home", 24.0, app.session.active().is_none(), crate::i18n::tr(&app.ui.language, "Home")).clicked() {- app.session_home();- }- ui.add_space(6.0);- if !app.native_menu {- ui.style_mut().visuals.widgets.inactive.weak_bg_fill = Color32::TRANSPARENT;- ui.style_mut().visuals.widgets.inactive.bg_stroke = Stroke::NONE;- ui.style_mut().visuals.widgets.hovered.bg_stroke = Stroke::NONE;- ui.style_mut().spacing.button_padding = vec2(7.0, 3.0);- crate::menus::menu_bar(app, ui);- }- menus_end = ui.min_rect().max.x;- let size = vec2(ui.available_width().max(tools_w), ui.available_height());- let tools = ui.allocate_ui_with_layout(size, egui::Layout::right_to_left(egui::Align::Center), |ui| {- ui.add_space(4.0);- // Search field.- let (r, _) = ui.allocate_exact_size(vec2(125.0, 18.0), Sense::click());- ui.painter().rect(r, 1.0, t.input, Stroke::new(1.0, t.field_border), egui::StrokeKind::Inside);- icons::paint(ui.painter(), egui::Rect::from_min_size(r.min + vec2(3.0, 2.0), vec2(14.0, 14.0)), "search", t.icon);- crate::rtl::paint(- ui.painter(),- r.min + vec2(20.0, 9.0),- egui::Align2::LEFT_CENTER,- crate::i18n::tr(&app.ui.language, "Search"),- egui::FontId::proportional(11.0),- t.text_dim,- );- ui.add_space(8.0);- let current = app.ui.workspace.clone();- let shown = crate::i18n::workspace_name(&app.ui.language, ¤t);- crate::menus::menu_button(- ui,- crate::rtl::widget(ui, egui::RichText::new(format!("{shown} ▾")).font(semibold(11.5)).color(t.text)),- |ui| {- let customs: Vec<String> = app.ui.custom_workspaces.iter().map(|w| w.name.clone()).collect();- for w in crate::menus::WORKSPACES.iter().map(|w| w.to_string()).chain(customs.iter().cloned()) {+ // Windows caption buttons stay at the right edge; the rest of the bar scrolls.+ let caption_w = if app.custom_titlebar { CAPTION_W } else { 0.0 };+ // Undecorated window: the bar moves it. The drag area is the whole bar but the caption+ // buttons, lower band included, registered before the menus and tools so they stay on+ // top of it: any gap drags, and the lower band is always there, however narrow the+ // window (the menus and tools scroll).+ if app.custom_titlebar {+ let drag = egui::Rect::from_min_max(+ egui::pos2(full.min.x - left as f32, full.min.y),+ egui::pos2(full.max.x - caption_w, full.min.y + bar + APP_BAR_BAND),+ );+ let response = ui.interact(drag, egui::Id::new("window_title_drag"), Sense::click_and_drag());+ // Only from an empty part of the bar: the lower band, or the gap between the menus+ // and the tools (as they were last frame). A menu title pressed and dragged doesn't+ // move the window, as with native title bars.+ let (gap0, gap1) =+ ui.data(|d| (d.get_temp::<f32>(egui::Id::new("app_bar_menus_end")), d.get_temp::<f32>(egui::Id::new("app_bar_tools_start"))));+ let empty = |p: egui::Pos2| p.y >= full.min.y + bar || matches!((gap0, gap1), (Some(a), Some(b)) if p.x >= a && p.x <= b);+ let from_empty = ui.input(|i| i.pointer.press_origin().or(i.pointer.interact_pos())).is_some_and(empty);+ if response.double_clicked() && from_empty {+ let on = !ui.input(|i| i.viewport().maximized.unwrap_or(false));+ let _ = app.run("window.maximize", json!({"on": on}));+ } else if response.drag_started_by(egui::PointerButton::Primary) && from_empty {+ let _ = app.run("window.drag", json!({}));+ }+ app.flush_window_commands(ui.ctx());+ }+ if app.custom_titlebar {+ let caption = egui::Rect::from_min_max(egui::pos2(full.max.x - caption_w, full.min.y), full.max);+ ui.scope_builder(egui::UiBuilder::new().max_rect(caption).layout(egui::Layout::right_to_left(egui::Align::Center)), |ui| {+ caption_buttons(app, ui);+ });+ }+ let scrolled = egui::Rect::from_min_max(full.min, egui::pos2(full.max.x - caption_w, full.max.y));+ ui.scope_builder(egui::UiBuilder::new().max_rect(scrolled), |ui| {+ // The right-hand controls' width, measured last frame: in a window too narrow for them+ // and the menus they follow the menus, and the bar scrolls sideways.+ let tools_w_id = ui.id().with("tools_width");+ let tools_w: f32 = ui.data(|d| d.get_temp(tools_w_id)).unwrap_or(0.0);+ crate::widgets::overflow_scrolling(ui);+ // (Drag-scrolling is touch-only by default, so a mouse drag on the bar moves the window.)+ egui::ScrollArea::horizontal().id_salt("app_bar_scroll").auto_shrink([false, false]).show(ui, |ui| {+ ui.horizontal_centered(|ui| {+ if icons::button(ui, "home", home, app.session.active().is_none(), crate::i18n::tr(&app.ui.language, "Home")).clicked() {+ app.session_home();+ }+ ui.add_space(6.0);+ if !app.native_menu {+ ui.style_mut().visuals.widgets.inactive.weak_bg_fill = Color32::TRANSPARENT;+ ui.style_mut().visuals.widgets.inactive.bg_stroke = Stroke::NONE;+ ui.style_mut().visuals.widgets.hovered.bg_stroke = Stroke::NONE;+ ui.style_mut().spacing.button_padding = vec2(7.0, 3.0);+ crate::menus::menu_bar(app, ui);+ }+ menus_end = ui.min_rect().max.x;+ // Where the menus end on screen (moves as a narrow bar scrolls).+ ui.data_mut(|d| d.insert_temp(egui::Id::new("app_bar_menus_end"), menus_end));+ let size = vec2(tools_slot_width(ui.available_width(), tools_w), ui.available_height());+ let tools = ui.allocate_ui_with_layout(size, egui::Layout::right_to_left(egui::Align::Center), |ui| {+ ui.add_space(4.0);+ search_field(app, ui);+ ui.add_space(8.0);+ let current = app.ui.workspace.clone();+ let shown = crate::i18n::workspace_name(&app.ui.language, ¤t);+ crate::menus::menu_button(+ ui,+ crate::rtl::widget(ui, egui::RichText::new(format!("{shown} ▾")).font(semibold(11.5)).color(t.text)),+ |ui| {+ let customs: Vec<String> = app.ui.custom_workspaces.iter().map(|w| w.name.clone()).collect();- for w in [- "Essentials",- "Advanced",- "Book",- "Digital Publishing",- "Interactive for PDF",- "Printing and Proofing",- "Typography",- ]- .into_iter()- .map(str::to_string)- .chain(customs.iter().cloned())- {++ for w in crate::menus::WORKSPACES.iter().map(|w| w.to_string()).chain(customs.iter().cloned()) {+ if ui+ .selectable_label(w == current, crate::rtl::widget(ui, crate::i18n::workspace_name(&app.ui.language, &w)))+ .clicked()+ {+ let _ = app.run("window.workspace", json!({"name": w}));+ ui.close();+ }+ }+ ui.separator();if ui- .selectable_label(w == current, crate::rtl::widget(ui, crate::i18n::workspace_name(&app.ui.language, &w)))+ .button(crate::rtl::widget(+ ui,+ format!(+ "{} {}",+ crate::i18n::tr(&app.ui.language, "Reset"),+ crate::i18n::workspace_name(&app.ui.language, ¤t)+ ),+ )).clicked(){- let _ = app.run("window.workspace", json!({"name": w}));+ let _ = app.run("window.resetWorkspace", json!({}));ui.close();}- }- ui.separator();- if ui- .button(crate::rtl::widget(- ui,- format!(- "{} {}",- crate::i18n::tr(&app.ui.language, "Reset"),- crate::i18n::workspace_name(&app.ui.language, ¤t)- ),- ))- .clicked()- {- let _ = app.run("window.resetWorkspace", json!({}));- ui.close();- }- if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "New Workspace…"))).clicked() {- let _ = app.run("window.newWorkspace", json!({}));- ui.close();- }- if !customs.is_empty() {- crate::menus::menu_button(- ui,- crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Delete Workspace")),- |ui| {- for w in &customs {- if ui.button(w).clicked() {- let _ = app.run("window.deleteWorkspace", json!({"name": w}));- ui.close();+ if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "New Workspace…"))).clicked() {+ let _ = app.run("window.newWorkspace", json!({}));+ ui.close();+ }+ if !customs.is_empty() {+ crate::menus::menu_button(+ ui,+ crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Delete Workspace")),+ |ui| {+ for w in &customs {+ if ui.button(w).clicked() {+ let _ = app.run("window.deleteWorkspace", json!({"name": w}));+ ui.close();+ }}- }- },- );- }- },- );- ui.add_space(6.0);- if icons::button(ui, "share", 22.0, false, crate::i18n::tr(&app.ui.language, "Share")).clicked() {- app.status("Export a PDF, IDML or package to share — no cloud account needed.");- }- ui.add_space(8.0);- // Always one click away: the ArtCraft community Discord.- if crate::about::discord_button(ui, "Discord", vec2(78.0, 22.0)) {- let _ = app.run("help.discord", json!({}));+ },+ );+ }+ },+ );+ ui.add_space(6.0);+ if icons::button(ui, "share", 22.0, false, crate::i18n::tr(&app.ui.language, "Share")).clicked() {+ app.status(crate::i18n::tr(&app.ui.language, "Export a PDF, IDML or package to share — no cloud account needed."));+ }+ ui.add_space(8.0);+ // Always one click away: the ArtCraft community Discord.+ if crate::about::discord_button(ui, "Discord", vec2(78.0, 22.0)) {+ let _ = app.run("help.discord", json!({}));+ }+ tools_start = ui.min_rect().min.x;+ ui.data_mut(|d| d.insert_temp(egui::Id::new("app_bar_tools_start"), tools_start));+ ui.min_rect().width()+ });+ if (tools.inner - tools_w).abs() > 0.5 {+ ui.data_mut(|d| d.insert_temp(tools_w_id, tools.inner));+ ui.ctx().request_discard("app bar: the right-hand controls changed width");}- tools_start = ui.min_rect().min.x;- ui.min_rect().width()});- if (tools.inner - tools_w).abs() > 0.5 {- ui.data_mut(|d| d.insert_temp(tools_w_id, tools.inner));- ui.ctx().request_discard("app bar: the right-hand controls changed width");- }});});// Centred title.diff --cc crates/ui-egui/src/dock.rsindex 2cb0acefd,46cb606e4..30680def5--- a/crates/ui-egui/src/dock.rs+++ b/crates/ui-egui/src/dock.rs@@@ -48,14 -48,6 +48,14 @@@ pub const ICON_PANELS: &[(&str, &str, &("dataMerge", "Data Merge", "panel-datamerge"),];+/// Panels that only float (they open from a menu, not from the icon column).+pub const FLOATING_PANELS: &[(&str, &str)] = &[("tabs", "Tabs")];++/// The English name of panel `id`.+pub fn panel_label(id: &str) -> &'static str {- ICON_PANELS.iter().map(|p| (p.0, p.1)).chain(FLOATING_PANELS.iter().copied()).find(|p| p.0 == id).map_or("Panel", |p| p.1)++ DOCK_TABS.iter().chain(ICON_PANELS).map(|p| (p.0, p.1)).chain(FLOATING_PANELS.iter().copied()).find(|p| p.0 == id).map_or("Panel", |p| p.1)+}+pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) {if crate::panel_docking::show(app, ui) {return;@@@ -160,10 -199,10 +207,10 @@@ pub fn flyout(app: &mut DesignApp, ctx}let Some(id) = app.ui.open_panel.clone() else { return };let t = Tokens::get(ctx);- let label = crate::i18n::tr(&app.ui.language, panel_entry(&id).map(|p| p.1).unwrap_or("Panel")).to_owned();+ let label = crate::i18n::tr(&app.ui.language, panel_label(&id)).to_owned();let screen = ctx.content_rect();let dock_w = if app.ui.dock_expanded { ctx.memory(|m| m.area_rect(egui::Id::new("dock")).map(|r| r.width())).unwrap_or(280.0) } else { 0.0 };- let pos = egui::pos2(screen.max.x - 37.0 - dock_w - 262.0, 120.0);+ let pos = egui::pos2(screen.max.x - icon_column_width(app) - dock_w - 262.0, 120.0);let mut open = true;egui::Area::new(egui::Id::new("panel_flyout")).order(egui::Order::Foreground).fixed_pos(pos).show(ctx, |ui| {egui::Frame::popup(ui.style()).fill(t.panel).inner_margin(egui::Margin::same(0)).show(ui, |ui| {@@@ -276,18 -304,15 +323,18 @@@ pub fn dock_panel(app: &mut DesignApp,/// Floating panels: movable, resizable windows; "Dock" returns one to the icon column.pub fn floating(app: &mut DesignApp, ctx: &egui::Context) {- if app.ui.docking.is_some() {- return;- }+ // A customized layout draws its own floating groups; float-only panels are drawn here.+ let customized = app.ui.docking.is_some();let t = Tokens::get(ctx);for (id, at) in app.ui.floating.clone() {- let label = crate::i18n::tr(&app.ui.language, panel_entry(&id).map(|p| p.1).unwrap_or("Panel")).to_owned();+ if customized && !float_only(&id) {+ continue;+ }+ let label = crate::i18n::tr(&app.ui.language, panel_label(&id)).to_owned();- let docks = ICON_PANELS.iter().any(|p| p.0 == id);++ let docks = !float_only(&id);let mut open = true;let mut dock = false;- let r = egui::Window::new(label.clone())+ let mut w = egui::Window::new(label.clone()).id(egui::Id::new(("floating_panel", &id))).title_bar(false).default_pos(egui::pos2(at[0], at[1]))diff --cc crates/ui-egui/src/menus.rsindex 866a82d09,b87848930..4660189c8--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@@ -799,9 -724,35 +799,36 @@@ pub const MENUS: &[(&str, &[&str])] = &"<",">Output","ui:window.panel|Attributes|{\"panel\": \"attributes\"}",- "cmd:preflight.run",+ "ui:window.panel|Preflight|{\"panel\": \"preflight\"}",+ "<",+ "ui:window.panel|Pages|{\"panel\": \"pages\"}",+ "ui:window.panel|Properties|{\"panel\": \"properties\"}",+ "ui:window.panel|Stroke|{\"panel\": \"stroke\"}",+ ">Styles",+ "ui:window.panel|Character Styles|{\"panel\": \"characterStyles\"}",+ "ui:window.panel|Paragraph Styles|{\"panel\": \"paragraphStyles\"}",+ "<",+ "ui:window.panel|Text Wrap|{\"panel\": \"textWrap\"}",+ ">Type & Tables",+ "ui:window.panel|Character|{\"panel\": \"character\"}",+ "ui:window.panel|Conditional Text|{\"panel\": \"conditions\"}",+ "ui:window.panel|Glyphs|{\"panel\": \"glyphs\"}",+ "ui:window.panel|Paragraph|{\"panel\": \"paragraph\"}",+ "ui:window.panel|Table|{\"panel\": \"table\"}",++ "ui:app.tabsPanel",+ "<",+ ">Utilities",+ "ui:window.panel|Book|{\"panel\": \"book\"}",+ "ui:window.panel|Data Merge|{\"panel\": \"dataMerge\"}",+ "ui:window.panel|Library|{\"panel\": \"library\"}",+ "ui:window.panel|Scripts|{\"panel\": \"scripts\"}",+ "ui:window.panel|Tags|{\"panel\": \"tags\"}","<","-",+ "ui:window.hidePanels",+ "ui:window.hidePanelsExceptTools",+ "ui:window.toolsDoubleColumn",+ "-","ui:window.brightness",],),@@@ -1471,9 -1303,9 +1514,11 @@@ pub fn run_ui(app: &mut DesignApp, id:}"window.panel" => {let panel = p.get("panel").and_then(Value::as_str).unwrap_or("properties").to_string();+ // A panel in the workspace's icon groups opens from there (Essentials Classic's Pages).+ let iconic = app.ui.icon_groups.as_ref().is_some_and(|g| g.iter().flatten().any(|p| *p == panel));- if !iconic && crate::dock::DOCK_TABS.iter().any(|(id, _, _)| *id == panel) {+ if panel == "tabs" {+ toggle_tabs_panel(app);- } else if crate::dock::DOCK_TABS.iter().any(|(id, _, _)| *id == panel) {++ } else if !iconic && crate::dock::DOCK_TABS.iter().any(|(id, _, _)| *id == panel) {app.ui.dock_tab = panel;app.ui.dock_expanded = true;app.ui.open_panel = None;@@@ -2588,10 -2150,14 +2651,15 @@@ fn menu_items(app: &mut DesignApp, ui:hidden += menu_items(app, ui, children, &sub);});}+ Item::Cmd { id, .. } if !shown(app, id) => {}Item::Cmd { label, .. } if !app.ui.show_full_menus && app.ui.hidden_menu_items.contains(&menu_key(path, label)) => hidden += 1,Item::Cmd { label, id, params, shortcut: _ } => {- let label = crate::i18n::tr(&app.ui.language, label);+ let lang = &app.ui.language;+ let label = match id.as_str() {+ "window.workspace" => format!("[{}]", crate::i18n::workspace_name(lang, label)),+ "window.resetWorkspace" => format!("{} {}", crate::i18n::tr(lang, "Reset"), crate::i18n::workspace_name(lang, &app.ui.workspace)),+ _ => crate::i18n::tr(lang, label).to_owned(),+ };let text = match checked(app, id, params) {Some(true) => format!("✓ {label}"),Some(false) => format!(" {label}"),diff --cc docs/target-app-parity.mdindex 118fbddbf,d2ab2922e..38fa71705--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@@ -330,12 -326,12 +330,12 @@@ It is evidence of breadth: each item ex- User dictionary hyphenation exceptions (`hyphenation.addException/removeException/list`, Edit ▸ Spelling ▸ User Dictionary): `ex~am~ple` breaks only at `~`, a plain word never hyphenates.- Frame Fitting Options (`object.fittingOptions`, Object ▸ Fitting ▸ Frame Fitting Options…): Auto-Fit refits on resize, fitting, Align From reference point, crop amounts; IDML FrameFittingOption.- Paragraph borders (per-side weights, colour, tint, offsets) and shading offsets, drawn per column part of split paragraphs (also when overset); Paragraph panel controls; IDML ParagraphBorder*/ParagraphShading*Offset.-- Font menu: search, favourites (stars, Show Favorites Only; `favoriteFonts` preference) and each family previewed in its own face. Western (and other-script) families come first, then Japanese, Simplified Chinese, Traditional Chinese and Korean ones, each group alphabetical and set off by a separator; the group comes from the font's own data (`meta` languages, family names in a CJK language, OS/2 code pages, else what it covers), read once (installed fonts by the font scan, without loading them). CJK families show their native names, the English name on hover; Preferences › Type › Show Font Names in English (`showFontNamesInEnglish`) shows English names throughout. Search matches either name; documents store the English name. Every family list (Character panel, Control bar, Properties, style dialogs, Find Font, Glyphs) follows this order.+- Font menu laid out like InDesign's: search, a Filters row (classification: serif, slab serif, sans serif, script, monospaced, decorative, symbol, read from PANOSE, the OS/2 family class, the name, else the shape of the "l"; Show Favorites Only; Show Recently Added, fonts added in the last 30 days), the sample text (the selected text, Sample, pangrams) in three sizes, Recently Used fonts at the top (`recentFonts` preference), favourites (stars, `favoriteFonts`), and each family previewed in its own face with its format (TrueType, OpenType, variable, colour). A family of several styles shows how many and opens to list them, each previewed in its own face, and a style picked is applied as it is; Show Similar Fonts (≈) lists the families of the same class nearest by PANOSE. Western (and other-script) families come first, then Japanese, Simplified Chinese, Traditional Chinese and Korean ones, each group alphabetical and set off by a separator; the group comes from the font's own data (`meta` languages, family names in a CJK language, OS/2 code pages, else what it covers), read once (installed fonts by the font scan, without loading them). CJK families show their native names, the English name on hover; Preferences › Type › Show Font Names in English (`showFontNamesInEnglish`) shows English names throughout. Search matches either name; documents store the English name. Every family list (Character panel, Control bar, Properties, style dialogs, Find Font, Glyphs) follows this order.- Application preferences (engine `Prefs`) now persist across launches (desktop: prefs.json beside ui.json).- View ▸ Fit Selection in Window (⌥⌘=) and Find/Change ▸ Object (`find.objects`, `find.changeObjects`: by fill, stroke, weight, opacity, kind, layer, label).- - Custom workspaces (`window.newWorkspace/deleteWorkspace/resetWorkspace`; workspace switcher shows the current one): bars and panel arrangement saved by name.+ - Custom workspaces (`window.newWorkspace/deleteWorkspace/resetWorkspace`; workspace switcher shows the current one): bars and panel arrangement saved by name. Essentials Classic shows the Control panel and InDesign's iconic panel groups with names. The Window menu follows InDesign's: Arrange, Workspace, then the panels alphabetically with their Color, Editorial, Interactive, Object & Layout, Output, Styles, Type & Tables and Utilities groups.- Word/RTF Import Options (File ▸ Place with Import Options…, `place.styles`, `file.place {styleMap, styleConflicts}`): map imported styles onto the document's, use existing / redefine / auto-rename on conflicts, or remove formatting.-- Custom anchored objects (`anchored.insert/options {position: custom}`): placed relative to the anchor, frame, column, page margins or page edge with reference points and offsets, no space in the text, keep within column; IDML Anchored position.+- Custom anchored objects (`anchored.insert/options {position: custom}`): placed relative to the anchor, frame, column, page margins or page edge with reference points and offsets, no space in the text, keep within column; IDML Anchored position. Their text wrap pushes aside the text of other stories they overlap and the lines of their own story after the anchor's line.- Variable font axes: Character panel sliders; any axis values (`fontStyle: "Bold {wght:650}"`) make that instance for layout, screen and PDF.- Image Import Options › Crop to for placed PDFs (`file.place {pdfCrop: crop|trim|bleed|art|media}`, Place PDF dialog): the frame shows that page box.- Stroke styles: striped (thick-thin… and custom bands), wavy and straight-hash strokes now draw on screen and in PDF; named custom stripe/dash/dot styles (`strokeStyle.new/delete/list`, Stroke panel Type list; IDML Striped/Dashed/DottedStrokeStyle).diff --cc docs/ui-parity.mdindex 1a6cfa313,f9da7383b..33429949f--- a/docs/ui-parity.md+++ b/docs/ui-parity.md@@@ -46,9 -45,9 +46,9 @@@ basics of editing fail for too many use| Quick Apply | ✓ | ✓ | ✓ | || Numeric fields: units, arithmetic, scrubbing | ✓ | 21 pt spinner fields with arithmetic | ✓ | || Colour fields: hex, picker from any swatch field | ✓ | ✓ | ~ | hex entry and picker issues (#323, #190) |-| Panels: Pages, Layers, Swatches, Color, Stroke, Character, Paragraph, Styles, Links, Effects, Text Wrap, Align, Pathfinder, Table, Index, TOC, Hyperlinks, Bookmarks, Articles, Tags, Notes, Track Changes, Object States, Buttons and Forms, Preflight, Data Merge, Library, Scripts, Glyphs, Info | ✓ | all present | ~ | **Tabs panel missing** (#326); Navigator, Trap Presets, Animation, Timing missing; pull-down panels can't scroll on Linux (#267) |+| Panels: Pages, Layers, Swatches, Color, Stroke, Character, Paragraph, Styles, Links, Effects, Text Wrap, Align, Pathfinder, Table, Index, TOC, Hyperlinks, Bookmarks, Articles, Tags, Notes, Track Changes, Object States, Buttons and Forms, Preflight, Data Merge, Library, Scripts, Glyphs, Info, Tabs | ✓ | all present | ~ | Navigator, Trap Presets, Animation, Timing missing; pull-down panels can't scroll on Linux (#267) || Dialogs: New Document, Document Setup, Preferences (all pages), Paragraph/Character/Object/Table/Cell Style Options, Export PDF, Print, Package, Find/Change | ✓ | present | ~ | generated command dialogs fill the long tail; depth varies |- | Workspaces | Essentials, Advanced, Book, Digital Publishing, Interactive for PDF, Printing and Proofing, Typography, Touch | ✓ named workspaces + custom | ~ | tab bar overlaps menus in Book/Advanced (#182) |+ | Workspaces | Essentials, Essentials Classic, Advanced, Book, Digital Publishing, Interactive for PDF, Printing and Proofing, Review, Typography, Touch | ✓ named workspaces (Essentials Classic: Control panel and iconic panel groups) + custom; Window › Workspace; no Review or Touch | ~ | tab bar overlaps menus in Book/Advanced (#182) || Story Editor | ✓ | ✓ | ~ | style-name column, depth ruler missing || Undo granularity (a drag = one step) | ✓ | ✓ (Begin/Preview/Commit) | ✓ | || Closing with unsaved changes asks | ✓ | ✓ File › Close and window/menu quit (#146, #545) | ✓ | macOS Dock Quit still bypasses the prompt (#544) |