mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-17 07:35:07 +00:00
Merge PR #1485: Properties: Bullets and Numbering's Options opens the Bullets and Numbering dialog
This commit is contained in:
commit
86852903af
3 files changed
+19
-1
No files matched your search
@@ -461,6 +461,7 @@ Newest first.
|
||||
- **2026-10-20** · Properties › Appearance: the arrow beside Opacity opens a slider under the field, as in InDesign, instead of the Effects panel; a drag shows the opacity live and is one undo step (the Opacity link still opens Effects). No readiness percentage change.
|
||||
- **2026-10-20** · Properties › Frame Fitting has InDesign's Auto-Fit checkbox and Options button (Frame Fitting Options); the app's checkboxes are now named and ticked-or-not for screen readers. No readiness percentage change.
|
||||
- **2026-10-20** · Properties › Text Wrap shows the four wrap offsets under the wrap buttons, with the link that makes them the same, as InDesign's Properties panel does (greyed with no wrap). No readiness percentage change.
|
||||
- **2026-10-21** · Properties › Bullets and Numbering › Options opens the Bullets and Numbering dialog for the selected paragraphs, as InDesign's, instead of the Paragraph panel. Found in the Learn Skills Daily course, chapter 21. No readiness percentage change.
|
||||
- **2026-10-21** · Properties › Character and Paragraph: ••• (More Options) expands the section in place, as InDesign's: Character adds vertical and horizontal scale, baseline shift, skew, language and OpenType, and All Caps, Small Caps, Superscript, Subscript, Underline and Strikethrough; Paragraph adds the left, right, first line and last line indents, space before and after, the drop cap's lines and characters, Align to Baseline Grid and Hyphenate. It used to open the Character or Paragraph panel; the language field moved under ••• as in InDesign. Found in the Learn Skills Daily course, chapter 16. No readiness percentage change.
|
||||
- **2026-10-21** · The text Control panel has InDesign's two modes: A (Character Formatting Controls: font and style, size and leading, All Caps/Superscript/Underline and Small Caps/Subscript/Strikethrough, kerning and tracking, vertical and horizontal scale, baseline shift and skew, character style and language) and ¶ (Paragraph Formatting Controls: the nine alignments, left/first line and right/last line indents, space before and after, the drop cap's lines and characters, paragraph style, Hyphenate and Align to Baseline Grid). It used to show a fixed mix of both. Found in the Learn Skills Daily course, chapter 16. No readiness percentage change.
|
||||
- **2026-10-20** · With the Type tool, the Control panel's font size, leading and tracking fields have a spinner and a list of common values, as in InDesign (auto leading in parentheses). No readiness percentage change.
|
||||
|
||||
@@ -715,6 +715,22 @@ fn panel(app: DesignApp) -> Harness<'static, DesignApp> {
|
||||
h
|
||||
}
|
||||
|
||||
/// The course's chapter 21: Properties › Bullets and Numbering › Options opens the Bullets
|
||||
/// and Numbering dialog, as InDesign's, not the Paragraph panel.
|
||||
#[test]
|
||||
fn bullets_options_open_the_bullets_and_numbering_dialog() {
|
||||
let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());
|
||||
app.run("file.new", json!({})).unwrap();
|
||||
let f = app.run("frame.create", json!({"rect": [72, 72, 300, 200], "content": "text", "text": "4 eggs"})).unwrap();
|
||||
app.run("text.select", json!({"story": f["story"], "anchor": 0, "focus": 6})).unwrap();
|
||||
let mut h = panel(app);
|
||||
h.get_by_label("Options").click();
|
||||
h.run_steps(3);
|
||||
let d = h.state().ui.dialog.clone().expect("a dialog");
|
||||
assert_eq!((d.id.as_str(), d.s("section").as_str()), ("paragraphLocal", "bullets"));
|
||||
assert_ne!(h.state().ui.open_panel.as_deref(), Some("paragraph"));
|
||||
}
|
||||
|
||||
/// The course's chapter 21: Properties' Bulleted List button gives the selected paragraphs
|
||||
/// bullets with InDesign's hanging indent; pressed again, both go.
|
||||
#[test]
|
||||
|
||||
@@ -484,8 +484,9 @@ pub(super) fn bullets_section(app: &mut DesignApp, ui: &mut Ui) {
|
||||
}
|
||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
||||
ui.add_space(8.0);
|
||||
// As InDesign's: the Bullets and Numbering dialog for the selected paragraphs.
|
||||
if outline_button(ui, crate::i18n::tr(&app.ui.language, "Options"), 66.0).clicked() {
|
||||
show_panel(app, "paragraph");
|
||||
let _ = app.run("app.bulletsNumberingDialog", json!({}));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user