DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
View: Lock Guides and Lock Column Guides are commands (#1096) (#1174)
aionggd7b9f716f131
diff --git a/crates/doc/src/lib.rs b/crates/doc/src/lib.rsindex 5c854ba9f..b2d3b4f4c 100644--- a/crates/doc/src/lib.rs+++ b/crates/doc/src/lib.rs@@ -399,11 +399,19 @@ pub struct DocSettings {/// Lock Zero Point: dragging from the ruler corner leaves it where it is.#[serde(skip_serializing_if = "std::ops::Not::not")]pub zero_point_locked: bool,+ /// View › Grids & Guides › Lock Column Guides (IDML `ColumnGuideLocked`): column guides can't+ /// be dragged. On in new documents, as in InDesign.+ #[serde(skip_serializing_if = "is_true")]+ pub column_guides_locked: bool,/// The fill and stroke new shapes are drawn with: what the Tools panel's proxy shows and sets/// with nothing selected (InDesign's document defaults).pub new_object: NewObjectColors,}+fn is_true(b: &bool) -> bool {+ *b+}+fn is_origin(p: &[f64; 2]) -> bool {p[0] == 0.0 && p[1] == 0.0}@@ -461,6 +469,7 @@ impl Default for DocSettings {ruler_origin: RulerOrigin::Spread,zero_point: [0.0, 0.0],zero_point_locked: false,+ column_guides_locked: true,new_object: NewObjectColors::default(),}}diff --git a/crates/engine/src/cmd/guides.rs b/crates/engine/src/cmd/guides.rsindex 97bf4e9cc..18826fb18 100644--- a/crates/engine/src/cmd/guides.rs+++ b/crates/engine/src/cmd/guides.rs@@ -67,6 +67,15 @@ pub fn specs() -> Vec<CommandSpec> {Ok(json!({"deleted": n}))})}),+ cmd!(+ "view.lockColumnGuides",+ "Lock Column Guides",+ ["View", "Grids & Guides"],+ None,+ "{on?: bool (default: toggle)} → {locked} — locked column guides can't be dragged; saved with the document (IDML ColumnGuideLocked), on in new documents",+ has_doc,+ lock_column_guides+ ),cmd!(query "guide.list","Guides",@@ -125,6 +134,18 @@ pub fn specs() -> Vec<CommandSpec> {]}+fn lock_column_guides(s: &mut Session, p: &Value) -> Result<Value> {+ let cur = s.doc()?.doc.settings.column_guides_locked;+ let on = p.get("on").and_then(Value::as_bool).unwrap_or(!cur);+ if on == cur {+ return Ok(json!({"locked": cur}));+ }+ s.edit(|d, _| {+ d.settings.column_guides_locked = on;+ Ok(json!({"locked": on}))+ })+}+fn checked_usize(value: &Value, key: &str, command: &str) -> Result<usize> {let n = value.as_u64().ok_or_else(|| bad(command, format!("`{key}` must be a non-negative integer")))?;usize::try_from(n).map_err(|_| bad(command, format!("`{key}` is too large for this platform")))@@ -590,6 +611,39 @@ fn create_guides(s: &mut Session, p: &Value) -> Result<Value> {mod tests {use super::*;+ #[test]+ fn lock_column_guides_toggles_sets_and_undoes() {+ let mut s = Session::new();+ s.execute("file.new", &json!({})).unwrap();+ let locked = |s: &Session| s.doc().unwrap().doc.settings.column_guides_locked;+ let undo_steps = |s: &Session| s.doc().unwrap().history.undo.len();+ assert!(locked(&s), "locked in new documents");+ let before = undo_steps(&s);+ assert_eq!(s.execute("view.lockColumnGuides", &json!({})).unwrap()["locked"], false);+ assert!(!locked(&s));+ assert_eq!(undo_steps(&s), before + 1, "one undo step per toggle");+ s.execute("edit.undo", &json!({})).unwrap();+ assert!(locked(&s), "undo restores the lock");+ s.execute("edit.redo", &json!({})).unwrap();+ assert!(!locked(&s), "redo unlocks again");+ // Setting the current value changes nothing and adds no undo step.+ let steps = undo_steps(&s);+ assert_eq!(s.execute("view.lockColumnGuides", &json!({"on": false})).unwrap()["locked"], false);+ assert_eq!(undo_steps(&s), steps);+ assert_eq!(s.execute("view.lockColumnGuides", &json!({"on": true})).unwrap()["locked"], true);+ assert!(locked(&s));+ assert_eq!(s.execute("view.lockColumnGuides", &json!({})).unwrap()["locked"], false);+ // Saved with the document; files without the setting read as locked.+ let json = serde_json::to_string(&*s.doc().unwrap().doc).unwrap();+ assert!(json.contains("\"columnGuidesLocked\":false"), "{json}");+ let back: Document = serde_json::from_str(&json).unwrap();+ assert!(!back.settings.column_guides_locked);+ let old = json.replace("\"columnGuidesLocked\":false,", "").replace(",\"columnGuidesLocked\":false", "");+ assert!(!old.contains("columnGuidesLocked"));+ let back: Document = serde_json::from_str(&old).unwrap();+ assert!(back.settings.column_guides_locked);+ }+#[test]fn guides_add_move_delete_and_grid() {let mut s = Session::new();diff --git a/crates/idml/src/export.rs b/crates/idml/src/export.rsindex bd1d117e0..99dcb383e 100644--- a/crates/idml/src/export.rs+++ b/crates/idml/src/export.rs@@ -769,7 +769,7 @@ impl<'a> Ex<'a> {},).attr("CreatePrimaryTextFrame", bool_s(s.primary_text_frame))- .attr("ColumnGuideLocked", "true")+ .attr("ColumnGuideLocked", bool_s(s.column_guides_locked)).attr("MasterTextFrame", bool_s(s.primary_text_frame)).attr("SnippetImportUsesOriginalLocation", "false"),);diff --git a/crates/idml/src/import.rs b/crates/idml/src/import.rsindex 271eba146..ef504065e 100644--- a/crates/idml/src/import.rs+++ b/crates/idml/src/import.rs@@ -850,6 +850,9 @@ impl<'r> Importer<'r> {if let Some(v) = e.boolean("CreatePrimaryTextFrame") {s.primary_text_frame = v;}+ if let Some(v) = e.boolean("ColumnGuideLocked") {+ s.column_guides_locked = v;+ }}fn grid_prefs(&mut self, e: &El) {diff --git a/crates/idml/src/tests.rs b/crates/idml/src/tests.rsindex cf9ce28a4..37fb2af50 100644--- a/crates/idml/src/tests.rs+++ b/crates/idml/src/tests.rs@@ -2773,6 +2773,18 @@ fn round_trips_the_zero_point_and_ruler_origin() {assert_eq!(fixture("NaN 4").settings.zero_point, [0.0, 0.0]);}+#[test]+fn round_trips_lock_column_guides() {+ let mut d = Document::new(&NewDocument::default());+ assert!(zip_text(&export_idml(&d), "Resources/Preferences.xml").contains(r#"ColumnGuideLocked="true""#));+ assert!(import_idml(&export_idml(&d)).unwrap().settings.column_guides_locked);+ d.settings.column_guides_locked = false;+ let bytes = export_idml(&d);+ let prefs = zip_text(&bytes, "Resources/Preferences.xml");+ assert!(prefs.contains(r#"ColumnGuideLocked="false""#), "{prefs}");+ assert!(!import_idml(&bytes).unwrap().settings.column_guides_locked);+}+#[test]fn kenten_shatai_and_grid_settings_import_and_round_trip() {use designcraft_doc::cjk::CharacterAlignment;diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rsindex 91c6db7de..acf70ff32 100644--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@ -3164,6 +3164,10 @@ const TABLE: &[(&str, [&str; 5])] = &[("Last Spread", ["Last Spread", "Dernière planche", "Last Spread", "Last Spread", "最后一个跨页"]),("Load DTD…", ["Load DTD…", "Charger la DTD…", "Load DTD…", "Load DTD…", "载入 DTD…"]),("Location:", ["Location:", "Emplacement :", "Location:", "Location:", "位置:"]),+ (+ "Lock Column Guides",+ ["Spaltenhilfslinien sperren", "Verrouiller les repères de colonne", "Bloquear guías de columna", "列ガイドをロック", "锁定栏参考线"],+ ),("Lock Guides", ["Lock Guides", "Verrouiller les repères", "Lock Guides", "Lock Guides", "锁定参考线"]),("Miter Limit:", ["Miter Limit:", "Limite de pointe :", "Miter Limit:", "Miter Limit:", "斜接限制:"]),(diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rsindex 11a01c1cc..587ed775b 100644--- a/crates/ui-egui/src/i18n/ar.rs+++ b/crates/ui-egui/src/i18n/ar.rs@@ -395,6 +395,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Adjust Layout", "ضبط التخطيط"),("Smart Guides", "أدلة ذكية"),("Lock Guides", "قفل الأدلة"),+ ("Lock Column Guides", "قفل أدلة الأعمدة"),("Show Document Grid", "إظهار شبكة المستند"),("Show Baseline Grid", "إظهار شبكة خطوط الأساس"),("Options", "خيارات"),diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rsindex b295e5e5b..c052b8f33 100644--- a/crates/ui-egui/src/i18n/cs.rs+++ b/crates/ui-egui/src/i18n/cs.rs@@ -1095,6 +1095,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "Načíst DTD…"),("Location:", "Umístění:"),("Lock Guides", "Zamknout vodítka"),+ ("Lock Column Guides", "Zamknout vodítka sloupců"),("Miter Limit:", "Limit ostrého spoje:"),("New Article from Selection", "Nový článek z výběru"),("New Note at Cursor", "Nová poznámka u kurzoru"),diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rsindex 7a5c5d17e..7065c6f33 100644--- a/crates/ui-egui/src/i18n/de.rs+++ b/crates/ui-egui/src/i18n/de.rs@@ -1153,6 +1153,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "DTD laden …"),("Location:", "Position:"),("Lock Guides", "Hilfslinien sperren"),+ ("Lock Column Guides", "Spaltenhilfslinien sperren"),("Miter Limit:", "Gehrungsgrenze:"),("New Article from Selection", "Neuer Artikel aus Auswahl"),("New Note at Cursor", "Neue Notiz an der Einfügemarke"),diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rsindex e74d445fb..8199e2ebb 100644--- a/crates/ui-egui/src/i18n/it.rs+++ b/crates/ui-egui/src/i18n/it.rs@@ -1235,6 +1235,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "Carica DTD…"),("Location:", "Posizione:"),("Lock Guides", "Blocca guide"),+ ("Lock Column Guides", "Blocca guide colonne"),("Miter Limit:", "Limite spigolo:"),("New Article from Selection", "Nuovo articolo dalla selezione"),("New Note at Cursor", "Nuova nota al cursore"),diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rsindex 072c188ff..e79f4ba06 100644--- a/crates/ui-egui/src/i18n/ja.rs+++ b/crates/ui-egui/src/i18n/ja.rs@@ -1351,6 +1351,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "DTD を読み込み…"),("Location:", "位置:"),("Lock Guides", "ガイドをロック"),+ ("Lock Column Guides", "列ガイドをロック"),("Miter Limit:", "マイターの上限:"),("New Article from Selection", "選択範囲から新規アーティクルを作成"),("New Note at Cursor", "カーソル位置に新規注釈"),diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rsindex df9fabc07..c8405c16e 100644--- a/crates/ui-egui/src/i18n/ka.rs+++ b/crates/ui-egui/src/i18n/ka.rs@@ -1172,6 +1172,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "DTD-ის ჩატვირთვა…"),("Location:", "მდებარეობა:"),("Lock Guides", "დამხმარე ხაზების ჩაკეტვა"),+ ("Lock Column Guides", "სვეტების დამხმარე ხაზების ჩაკეტვა"),("Miter Limit:", "მახვილის ზღვარი:"),("New Article from Selection", "ახალი სტატია მონიშნულიდან"),("New Note at Cursor", "ახალი შენიშვნა კურსორთან"),diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rsindex fca29c211..51bb7fc5c 100644--- a/crates/ui-egui/src/i18n/pl.rs+++ b/crates/ui-egui/src/i18n/pl.rs@@ -1105,6 +1105,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "Wczytaj DTD…"),("Location:", "Położenie:"),("Lock Guides", "Zablokuj linie pomocnicze"),+ ("Lock Column Guides", "Zablokuj linie pomocnicze łamów"),("Miter Limit:", "Limit ostrych narożników:"),("New Article from Selection", "Nowy artykuł z zaznaczenia"),("New Note at Cursor", "Nowa notatka przy kursorze"),diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rsindex 6d3a05793..bb3d21831 100644--- a/crates/ui-egui/src/i18n/pt_br.rs+++ b/crates/ui-egui/src/i18n/pt_br.rs@@ -403,6 +403,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Adjust Layout", "Ajustar layout"),("Smart Guides", "Guias inteligentes"),("Lock Guides", "Bloquear guias"),+ ("Lock Column Guides", "Bloquear guias de colunas"),("Show Document Grid", "Mostrar grade do documento"),("Show Baseline Grid", "Mostrar grade de linha de base"),("Options", "Opções"),diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rsindex dc518b60c..27ce1fed3 100644--- a/crates/ui-egui/src/i18n/ru.rs+++ b/crates/ui-egui/src/i18n/ru.rs@@ -1082,6 +1082,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "Загрузить DTD…"),("Location:", "Расположение:"),("Lock Guides", "Заблокировать направляющие"),+ ("Lock Column Guides", "Заблокировать направляющие колонок"),("Miter Limit:", "Ограничение острого угла:"),("New Article from Selection", "Новая статья из выделенного"),("New Note at Cursor", "Новая заметка в позиции курсора"),diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rsindex 223dba543..d7ac7ce01 100644--- a/crates/ui-egui/src/i18n/uk.rs+++ b/crates/ui-egui/src/i18n/uk.rs@@ -1232,6 +1232,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Load DTD…", "Завантажити DTD…"),("Location:", "Розташування:"),("Lock Guides", "Заблокувати напрямні"),+ ("Lock Column Guides", "Заблокувати напрямні колонок"),("Miter Limit:", "Межа гострого з’єднання:"),("New Article from Selection", "Нова стаття з виділення"),("New Note at Cursor", "Нова примітка в позиції курсора"),diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rsindex 0844b95a4..3674b3e81 100644--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@ -296,6 +296,7 @@ pub struct UiState {pub align_to: String,/// Properties > Text Style tab: 0 = Paragraph Styles, 1 = Character Styles.pub text_style_tab: u8,+ /// View › Grids & Guides › Lock Guides: ruler guides can't be dragged.pub guides_locked: bool,pub smart_guides: bool,#[serde(default = "default_true")]diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex da5819e6f..fb43f8cb9 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -180,6 +180,7 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[("view.frameEdges", "Show/Hide Frame Edges", Some("Cmd+H"), "{}"),("view.rulers", "Show/Hide Rulers", Some("Cmd+R"), "{}"),("view.guides", "Show/Hide Guides", Some("Cmd+;"), "{}"),+ ("view.lockGuides", "Lock Guides", Some("Cmd+Alt+;"), "{on?: bool} — ruler guides can't be dragged; toggles without `on`"),("view.snapToGuides", "Snap to Guides", Some("Cmd+Shift+;"), "{}"),("view.snapToDocumentGrid", "Snap to Document Grid", None, "{}"),("view.smartGuides", "Smart Guides", None, "{}"),@@ -812,6 +813,8 @@ pub const MENUS: &[(&str, &[&str])] = &["<",">Grids & Guides","ui:view.guides",+ "ui:view.lockGuides",+ "cmd:view.lockColumnGuides","ui:view.snapToGuides","ui:view.snapToDocumentGrid","ui:view.smartGuides",@@ -1505,6 +1508,10 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option<Result<Value}"view.rulers" => flag(&mut app.ui.rulers),"view.guides" => flag(&mut app.ui.guides),+ "view.lockGuides" => {+ app.ui.guides_locked = p.get("on").and_then(Value::as_bool).unwrap_or(!app.ui.guides_locked);+ Ok(json!(app.ui.guides_locked))+ }"view.snapToGuides" => flag(&mut app.ui.snap_to_guides),"view.snapToDocumentGrid" => flag(&mut app.ui.snap_to_document_grid),"view.smartGuides" => flag(&mut app.ui.smart_guides),@@ -2364,6 +2371,8 @@ pub fn checked(app: &DesignApp, id: &str, params: &Value) -> Option<bool> {"view.typicalDisplay" => app.ui.display_quality == designcraft_render::DisplayQuality::Typical,"view.highQualityDisplay" => app.ui.display_quality == designcraft_render::DisplayQuality::High,"view.guides" => app.ui.guides,+ "view.lockGuides" => app.ui.guides_locked,+ "view.lockColumnGuides" => app.session.active().is_some_and(|d| d.doc.settings.column_guides_locked),"view.snapToGuides" => app.ui.snap_to_guides,"view.snapToDocumentGrid" => app.ui.snap_to_document_grid,"view.smartGuides" => app.ui.smart_guides,@@ -3969,6 +3978,26 @@ mod tests {assert!(run_ui(&mut app, "view.proofSetup", &json!({"target": "nope"})).unwrap().is_err());}+ #[test]+ fn lock_guides_and_lock_column_guides_are_checked_in_grids_and_guides() {+ let mut app = crate::DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());+ app.session.execute("file.new", &json!({})).unwrap();+ let view = menu_ids("View");+ assert!(view.contains(&"view.lockGuides") && view.contains(&"view.lockColumnGuides"));+ assert_eq!(ui_label("view.lockGuides").and_then(|c| c.1), Some("Cmd+Alt+;"));+ // Lock Guides: off at first, toggles, and `on` sets it.+ assert_eq!(checked(&app, "view.lockGuides", &Value::Null), Some(false));+ assert_eq!(app.run("view.lockGuides", json!({})).unwrap(), json!(true));+ assert!(app.ui.guides_locked);+ assert_eq!(app.run("view.lockGuides", json!({"on": true})).unwrap(), json!(true));+ assert_eq!(checked(&app, "view.lockGuides", &Value::Null), Some(true));+ assert_eq!(app.run("view.lockGuides", json!({"on": false})).unwrap(), json!(false));+ // Lock Column Guides: the document's setting, on in new documents.+ assert_eq!(checked(&app, "view.lockColumnGuides", &Value::Null), Some(true));+ app.run("view.lockColumnGuides", json!({})).unwrap();+ assert_eq!(checked(&app, "view.lockColumnGuides", &Value::Null), Some(false));+ }+#[test]fn fitting_has_indesigns_shortcuts() {// LYH Studio episode 6 (7:00): "Fit Content to Frame (Ctrl + Shift + Alt + C)" fills thediff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rsindex 399cc34e7..1cbd623a6 100644--- a/crates/ui-egui/src/panels/properties.rs+++ b/crates/ui-egui/src/panels/properties.rs@@ -521,7 +521,9 @@ fn document_sections(app: &mut DesignApp, ui: &mut Ui) {if smart != app.ui.smart_guides {let _ = app.run("view.smartGuides", json!({}));}- app.ui.guides_locked = locked;+ if locked != app.ui.guides_locked {+ let _ = app.run("view.lockGuides", json!({"on": locked}));+ }rule(ui);section(ui, crate::i18n::tr(&app.ui.language, "Quick Actions"), true);let (a, b) = button_pair(ui, crate::i18n::tr(&app.ui.language, "Import File"), crate::i18n::tr(&app.ui.language, "Insert Page"));diff --git a/docs/target-app-parity.md b/docs/target-app-parity.mdindex 89fe4d401..92b86f0f1 100644--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@ -268,7 +268,7 @@ It is evidence of breadth: each item exists. It is not a claim of InDesign-level- Text engine: Knuth–Plass paragraph composer and single-line composer, dictionary hyphenation (public-domain Moby list + our own trained Liang patterns), justification with word/letter/glyph-scaling ranges, keep options (keep with next, keep lines together — at start/end of paragraph by default, as in InDesign — widows/orphans), balance ragged lines, optical margin alignment, hyphenation zone/limit, columns, threading across frames and spreads, tabs, bullets/numbering, rules, shading, baseline grid, first-baseline options, vertical justification, wrap exclusions, overset detection, caret/hit testing.- FID2: IDML underline/strikethrough Text Color resets survive style inheritance and roundtrip. Raster and PDF paint underlines behind glyphs, retain strikethrough above, and center rules on their offsets; synthetic overlap tests cover both backends.- Rendering: vello_cpu (SIMD, multithreaded) — pages, items, images with mip levels, gradients, composed text.-- UI (egui): application bar + menus, Control panel (object and text modes), Tools panel with flyouts and the Fill/Stroke proxy (D, X, Shift+X, / as `color.*` commands), document tabs, rulers, pasteboard, guides (margins, columns, bleed, baseline grid), document grid (View ▸ Grids & Guides, ⌘', on the snap positions, behind or in front of items), frame edges, selection handles, text ports and threads, Properties / Pages / Layers dock, Swatches (InDesign's header: Fill/Stroke proxy, Formatting Affects Container/Text, Tint; a swatch goes to the fill or stroke in front; New Color Group / New Swatch / Delete Swatch row), Styles, Character, Paragraph, Stroke, Text Wrap panels, New Document and Preferences dialogs, Quick Apply (⌘Return), 4 brightness themes.+- UI (egui): application bar + menus, Control panel (object and text modes), Tools panel with flyouts and the Fill/Stroke proxy (D, X, Shift+X, / as `color.*` commands), document tabs, rulers, pasteboard, guides (margins, columns, bleed, baseline grid), document grid (View ▸ Grids & Guides, ⌘', on the snap positions, behind or in front of items), Lock Guides (⌥⌘;) and Lock Column Guides (View ▸ Grids & Guides; Lock Column Guides is saved with the document and in IDML), frame edges, selection handles, text ports and threads, Properties / Pages / Layers dock, Swatches (InDesign's header: Fill/Stroke proxy, Formatting Affects Container/Text, Tint; a swatch goes to the fill or stroke in front; New Color Group / New Swatch / Delete Swatch row), Styles, Character, Paragraph, Stroke, Text Wrap panels, New Document and Preferences dialogs, Quick Apply (⌘Return), 4 brightness themes.- Pen tool, Direct Selection anchor/handle editing, rotate from corners, Rotate/Scale/Shear tools, Eyedropper, snapping & smart guides, Align/Distribute, Find/Change (text + GREP), Story Editor, Paragraph Style Options, Effects panel, hidden characters, native macOS menu bar, measured InDesign 2026 look (Medium Dark): Properties sections per selection state, 21 pt spinner fields with arithmetic, Contextual Task Bar, inverse (black) text selection, Pages panel with drag-and-drop reorder / parent apply, Layers panel with per-object rows, expandable groups and drag-and-drop reorder of layers and objects (the selection square moves the selection to another layer).- Tools: Selection (click, marquee, move, Alt-duplicate, resize handles), Direct Selection, Type (draw frame, click caret, select, type; Option/Alt+Left/Right kerns at the caret or tracks a selection by the Kerning/Tracking increment, ×5 with Cmd/Ctrl; words move with Cmd+Left/Right on macOS and Ctrl+Left/Right elsewhere), Rectangle/Ellipse/Polygon (+ frame variants), Line, Hand, Zoom.- PDF export (krilla): real selectable text with embedded font subsets, DeviceCMYK/RGB + spot Separations, bleed boxes, crop/bleed marks + page info, pages or spreads, PDF/A-2b (PDF/X-4 output intent pending) — `file.exportPdf`, File › Export PDF…, `designcraft-cli run --export out.pdf`. File › Export PDF… now opens an "Export PDF" options dialog (General / Compression / Marks and Bleeds / Advanced) and remembers the last-used settings across exports and sessions.