Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Integration: cargo fmt

aiongg1e149e38e076
diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rs
index 8e7f3f98d..0df5361f9 100644
--- a/crates/ui-egui/src/chrome.rs
+++ b/crates/ui-egui/src/chrome.rs
@@ -814,7 +814,11 @@ pub fn status_bar(app: &mut DesignApp, ui: &mut egui::Ui) {
} else {
format!(
"{} ▾",
- crate::i18n::count_label(&app.ui.language, if errors == 1 && !crate::i18n::category_first(&app.ui.language) { "error" } else { "errors" }, errors)
+ crate::i18n::count_label(
+ &app.ui.language,
+ if errors == 1 && !crate::i18n::category_first(&app.ui.language) { "error" } else { "errors" },
+ errors
+ )
)
};
// As in InDesign, the count opens a menu that leads to the Preflight panel.
diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs
index bf2548bfb..767bea4ff 100644
--- a/crates/ui-egui/src/dialogs.rs
+++ b/crates/ui-egui/src/dialogs.rs
@@ -7652,10 +7652,8 @@ mod tests {
let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default());
app.run("file.new", json!({})).unwrap();
let before = app.session.doc().unwrap().doc.clone();
- let mut d = Dialog::new(
- "paragraphStyleOptions",
- json!({"name": designcraft_doc::BASIC_PARAGRAPH, "preview": true, "p.wordSpaceDesired": 1.1}),
- );
+ let mut d =
+ Dialog::new("paragraphStyleOptions", json!({"name": designcraft_doc::BASIC_PARAGRAPH, "preview": true, "p.wordSpaceDesired": 1.1}));
style_options_preview(&mut app, &mut d);
assert_ne!(app.session.doc().unwrap().doc, before, "a valid value previews");
// Minimum above Desired: the page goes back and the dialog says why.
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs
index b643eca94..92d4b8416 100644
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@ -2820,11 +2820,23 @@ const TABLE: &[(&str, [&str; 5])] = &[
),
(
"Alt-click clears overrides",
- ["Alt-Klick entfernt Abweichungen", "Alt-clic efface les remplacements", "Alt-clic borra las modificaciones", "Alt を押しながらクリックするとオーバーライドを消去します", "Alt-单击清除覆盖"],
+ [
+ "Alt-Klick entfernt Abweichungen",
+ "Alt-clic efface les remplacements",
+ "Alt-clic borra las modificaciones",
+ "Alt を押しながらクリックするとオーバーライドを消去します",
+ "Alt-单击清除覆盖",
+ ],
),
(
"Apply \"{name}\", Clear Overrides",
- ["„{name}“ anwenden, Abweichungen löschen", "Appliquer « {name} », effacer les remplacements", "Aplicar \"{name}\", borrar modificaciones", "\"{name}\" を適用、オーバーライドを消去", "应用\"{name}\",清除覆盖"],
+ [
+ "„{name}“ anwenden, Abweichungen löschen",
+ "Appliquer « {name} », effacer les remplacements",
+ "Aplicar \"{name}\", borrar modificaciones",
+ "\"{name}\" を適用、オーバーライドを消去",
+ "应用\"{name}\",清除覆盖",
+ ],
),
("⚠ out of date", ["⚠ out of date", "⚠ obsolète", "⚠ out of date", "⚠ out of date", "⚠ 已过期"]),
("General", ["General", "Général", "General", "General", "常规"]),