DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: #864 drops the Controlled by Parent rule from the menus and the Objects Move with Page checkbox (neither has an effect yet)
aiongg47b51d637756
diff --git a/ROADMAP.md b/ROADMAP.mdindex de7b0edeb..f425e9e18 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -128,7 +128,7 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.mNewest first.-- **2026-10-14** · With the Page tool, the Control panel shows the page as InDesign's does: W/H from a reference point, page-size preset (US Business Card added), orientation, Liquid Page Rule (now with Controlled by Parent) and Show Parent Page Overlay, which draws the parent page's size over a resized page. No readiness percentage change.+- **2026-10-14** · With the Page tool, the Control panel shows the page as InDesign's does: W/H from a reference point, page-size preset (US Business Card added), orientation, Liquid Page Rule and Show Parent Page Overlay, which draws the parent page's size over a resized page. No readiness percentage change.- **2026-10-14** · The Page tool works as InDesign's: a click selects a page and shows its handles and liquid page rule; dragging a handle previews the rule and springs back, Alt-drag resizes the page from the opposite edge, Shift keeps proportions, with a W/H readout. No readiness percentage change.- **2026-10-14** · With the Page tool, a guide dragged from a ruler is a liquid guide (dashed), as in InDesign; guide-based pages stretch the objects it crosses. No readiness percentage change.- **2026-10-13** · Control-channel clicks and drags validate positive counts and the complete pending-event budget before queuing input (#732). Oversized requests leave pending gestures intact, preventing unbounded click-count allocation. No readiness percentage change.diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rsindex 55a999ae4..c6fa89796 100644--- a/crates/ui-egui/src/chrome.rs+++ b/crates/ui-egui/src/chrome.rs@@ -478,7 +478,7 @@ pub fn control_bar(app: &mut DesignApp, ui: &mut egui::Ui) {}/// The Control panel with the Page tool, as InDesign's: reference point, X/Y, W/H, page-size-/// preset, orientation, Liquid Page Rule, Objects Move with Page and Show Parent Page Overlay, for+/// preset, orientation, Liquid Page Rule and Show Parent Page Overlay, for/// the page the Page tool selected (else the page in view). W/H keep the reference point in place.fn control_page(app: &mut DesignApp, ui: &mut egui::Ui) {let lang = app.ui.language.clone();@@ -557,9 +557,6 @@ fn control_page(app: &mut DesignApp, ui: &mut egui::Ui) {});vsep(ui);ui.vertical(|ui| {- // Objects follow a page that moves in its spread; pages don't move yet, so it's always on.- let mut follow = true;- ui.add_enabled(false, egui::Checkbox::new(&mut follow, crate::rtl::widget(ui, crate::i18n::tr(&lang, "Objects Move with Page"))));let mut overlay = pg.show_parent_overlay;if ui.checkbox(&mut overlay, crate::rtl::widget(ui, crate::i18n::tr(&lang, "Show Parent Page Overlay"))).changed() {let _ = app.run("layout.pageOptions", json!({"pages": [n], "showParentOverlay": overlay}));@@ -1253,9 +1250,11 @@ mod tests {app.run("file.new", serde_json::json!({"width": 252, "height": 144, "facingPages": false})).unwrap();app.session.set_tool("page");let mut h = test_window::open(app, vec2(1800.0, 600.0));- for label in ["Liquid Page Rule:", "Objects Move with Page"] {- let _ = h.get_by_label(label);- }+ let _ = h.get_by_label("Liquid Page Rule:");+ // Pages don't move within their spread, so there is no "Objects Move with Page" option, and+ // no "Controlled by Parent" rule until parent pages have rules of their own.+ assert!(h.query_by_label("Objects Move with Page").is_none());+ assert!(!crate::panels::interactive::LIQUID_RULES.iter().any(|(r, _)| *r == designcraft_doc::LiquidRule::ControlledByParent));assert_eq!(crate::panels::properties::preset_name(252.0, 144.0), "US Business Card");h.get_by_label("Show Parent Page Overlay").click();h.run_steps(4);diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rsindex b76469c2a..fd625594a 100644--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@ -3283,16 +3283,6 @@ const TABLE: &[(&str, [&str; 5])] = &["Liquid Page Rule:",["Regel für flüssige Seiten:", "Règle de page liquide :", "Regla de página líquida:", "リキッドページルール:", "自适应页面规则:"],),- (- "Objects Move with Page",- [- "Objekte mit Seite verschieben",- "Déplacer les objets avec la page",- "Los objetos se mueven con la página",- "オブジェクトをページと共に移動",- "对象随页面移动",- ],- ),("Show Parent Page Overlay",[diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rsindex 363ed2576..0f165ece8 100644--- a/crates/ui-egui/src/i18n/ar.rs+++ b/crates/ui-egui/src/i18n/ar.rs@@ -770,7 +770,6 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Guide-Based", "استنادًا إلى الأدلة"),("Resize Page", "تغيير حجم الصفحة"),("Liquid Page Rule:", "قاعدة الصفحة المرنة:"),- ("Objects Move with Page", "تحريك الكائنات مع الصفحة"),("Show Parent Page Overlay", "إظهار تراكب الصفحة الأصل"),("Controlled by Parent", "تتحكم فيه الصفحة الأصل"),("US Business Card", "بطاقة عمل أمريكية"),diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rsindex d1055616f..b595c542b 100644--- a/crates/ui-egui/src/i18n/it.rs+++ b/crates/ui-egui/src/i18n/it.rs@@ -1358,7 +1358,6 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Guide-Based", "Basato su guide"),("Resize Page", "Ridimensiona pagina"),("Liquid Page Rule:", "Regola pagina liquida:"),- ("Objects Move with Page", "Sposta oggetti con la pagina"),("Show Parent Page Overlay", "Mostra sovrapposizione pagina principale"),("Controlled by Parent", "Controllato dalla pagina principale"),("US Business Card", "Biglietto da visita USA"),diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rsindex 78133baf2..978cf8a62 100644--- a/crates/ui-egui/src/i18n/ja.rs+++ b/crates/ui-egui/src/i18n/ja.rs@@ -1478,7 +1478,6 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Guide-Based", "ガイド基準"),("Resize Page", "ページのサイズを変更"),("Liquid Page Rule:", "リキッドページルール:"),- ("Objects Move with Page", "オブジェクトをページと共に移動"),("Show Parent Page Overlay", "親ページオーバーレイを表示"),("Controlled by Parent", "親ページで制御"),("US Business Card", "US 名刺"),diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rsindex 437ac3ed3..08cf8b556 100644--- a/crates/ui-egui/src/i18n/pt_br.rs+++ b/crates/ui-egui/src/i18n/pt_br.rs@@ -762,7 +762,6 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Guide-Based", "Baseado em guias"),("Resize Page", "Redimensionar página"),("Liquid Page Rule:", "Regra de página líquida:"),- ("Objects Move with Page", "Objetos se movem com a página"),("Show Parent Page Overlay", "Mostrar sobreposição da página principal"),("Controlled by Parent", "Controlado pela página principal"),("US Business Card", "Cartão de visita EUA"),diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rsindex 3ac49b5b7..bd8ed7d40 100644--- a/crates/ui-egui/src/i18n/uk.rs+++ b/crates/ui-egui/src/i18n/uk.rs@@ -1353,7 +1353,6 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Guide-Based", "На основі напрямних"),("Resize Page", "Змінити розмір сторінки"),("Liquid Page Rule:", "Правило гнучкої сторінки:"),- ("Objects Move with Page", "Об’єкти рухаються зі сторінкою"),("Show Parent Page Overlay", "Показати накладення батьківської сторінки"),("Controlled by Parent", "Керується батьківською сторінкою"),("US Business Card", "Візитна картка (США)"),diff --git a/crates/ui-egui/src/panels/interactive.rs b/crates/ui-egui/src/panels/interactive.rsindex 30822a06b..f967e5128 100644--- a/crates/ui-egui/src/panels/interactive.rs+++ b/crates/ui-egui/src/panels/interactive.rs@@ -490,13 +490,12 @@ pub fn buttons(app: &mut DesignApp, ui: &mut egui::Ui) {}/// Liquid page rules in InDesign's order, with their menu labels.-pub const LIQUID_RULES: [(designcraft_doc::LiquidRule, &str); 6] = [+pub const LIQUID_RULES: [(designcraft_doc::LiquidRule, &str); 5] = [(designcraft_doc::LiquidRule::Off, "Off"),(designcraft_doc::LiquidRule::Scale, "Scale"),(designcraft_doc::LiquidRule::ReCenter, "Re-center"),(designcraft_doc::LiquidRule::ObjectBased, "Object-based"),(designcraft_doc::LiquidRule::GuideBased, "Guide-based"),- (designcraft_doc::LiquidRule::ControlledByParent, "Controlled by Parent"),];/// A liquid page rule's menu label.diff --git a/docs/target-app-parity.md b/docs/target-app-parity.mdindex d7bcf2327..67c331053 100644--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@ -405,7 +405,7 @@ It is evidence of breadth: each item exists. It is not a claim of InDesign-level- Type on a Path (⇧T tool, `type.onPath`): a story along any line, curve or shape on screen and in PDF; Type on a Path Options (start, flip, baseline/ascender/descender/centre) and Delete Type from Path. Round-trips through IDML as TextPath; on-path caret drawing is still to come.- Preferences › Appearance of Black: 100% K on screen accurately (dark grey) or as rich black (`window.richBlack`); the printing/export side is still to come.- Spreads of up to 10 pages: Add to Previous Spread and Allow Spread to Shuffle (Pages panel; `layout.pages.toSpread`, `layout.spreadShuffle`); inserted pages go around kept spreads.-- Page tool (⇧P) and `layout.pageSize`: pages of their own size (or a preset); the spine stays put and objects keep their place on their page. A click selects a page (handles, its liquid page rule tagged above it); dragging a handle previews the liquid rule and springs back, Alt-drag resizes, Shift keeps proportions, with a W/H readout; `anchor` keeps a reference point in place; double-click for exact sizes. With the Page tool the Control panel shows the page (reference point, W/H, preset, orientation, Liquid Page Rule including Controlled by Parent, Show Parent Page Overlay); X/Y and Objects Move with Page are shown, but pages don't move within their spread yet.+- Page tool (⇧P) and `layout.pageSize`: pages of their own size (or a preset); the spine stays put and objects keep their place on their page. A click selects a page (handles, its liquid page rule tagged above it); dragging a handle previews the liquid rule and springs back, Alt-drag resizes, Shift keeps proportions, with a W/H readout; `anchor` keeps a reference point in place; double-click for exact sizes. With the Page tool the Control panel shows the page (reference point, W/H, preset, orientation, Liquid Page Rule, Show Parent Page Overlay); X/Y are shown, but pages don't move within their spread yet.- File › Print (⌘P): printer, copies, page range, spreads, marks, bleed; printed as PDF through the system spooler (`file.print`, `file.printers`, `dryRun` for agents). Shortcuts now act like choosing the menu item (dialogs open), and UI commands win shortcut ties (⌘N opens New Document).- Nested styles (through/up to N sentences, words, characters, letters, digits, tabs, breaks, spaces or given characters) and GREP styles (regex → character style), edited in Paragraph Style Options and composed under local formatting; `ui.dialog.open` for agents. Nested line styles are still to come; nested and GREP styles round-trip through IDML.- Table and cell styles (round-trip through IDML): cell styles (fill, insets, vertical justification, strokes, paragraph style) and table styles (region cell styles, border, alternating rows, spacing); apply from the Table panel, edits re-apply to every user; `style.cell.*`, `style.table.*`.