DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: the application bar's search covers next's languages and CJK-only commands
aionggfb8d796d37fe
diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rsindex 0f29c567c..af4579a7f 100644--- a/crates/ui-egui/src/i18n/de.rs+++ b/crates/ui-egui/src/i18n/de.rs@@ -1141,6 +1141,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Scale X Percentage", "Horizontal skalieren (%)"),("Scale Y Percentage", "Vertikal skalieren (%)"),("Search commands", "Befehle suchen"),+ ("No matching commands", "Keine passenden Befehle"),("Search fonts", "Schriftarten suchen"),("Search styles and commands…", "Formate und Befehle suchen …"),("Search: character or U+code", "Suchen: Zeichen oder U+Code"),diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rsindex c8a664ec6..4dfeb4d5b 100644--- a/crates/ui-egui/src/i18n/ru.rs+++ b/crates/ui-egui/src/i18n/ru.rs@@ -1098,6 +1098,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[("Scale X Percentage", "Масштаб X в процентах"),("Scale Y Percentage", "Масштаб Y в процентах"),("Search commands", "Поиск команд"),+ ("No matching commands", "Нет подходящих команд"),("Search fonts", "Поиск шрифтов"),("Search styles and commands…", "Поиск стилей и команд…"),("Search: character or U+code", "Поиск: символ или код U+"),diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex bd8fb299f..dc071bc8f 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -2662,7 +2662,7 @@ pub fn command_search(app: &DesignApp, query: &str) -> Vec<QuickItem> {let mut out: Vec<QuickItem> = Vec::new();for (id, label, _) in quick_commands() {let shown = crate::i18n::tr(lang, label);- if out.len() >= 14 || out.iter().any(|it| it.id == id) || !quick_match(&ql, &[shown, label, id]) {+ if out.len() >= 14 || !self::shown(app, id) || out.iter().any(|it| it.id == id) || !quick_match(&ql, &[shown, label, id]) {continue;}out.push(QuickItem { label: shown.to_string(), id: id.to_string(), params: Value::Null, shortcut: shortcut_of(app, id), kind: "" });