From d92b6baff99fcc5302b7ffeef633acecef14d356 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 24 Nov 2026 13:08:53 +0700 Subject: [PATCH] Properties: Document Setup and Preferences buttons without the menu's ellipsis, as the reference panel labels them --- crates/ui-egui/src/panels/properties/document_sections.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/panels/properties/document_sections.rs b/crates/ui-egui/src/panels/properties/document_sections.rs index b82302bf99..1554cd49a7 100644 --- a/crates/ui-egui/src/panels/properties/document_sections.rs +++ b/crates/ui-egui/src/panels/properties/document_sections.rs @@ -34,7 +34,7 @@ pub(super) fn document_sections(app: &mut VectorcraftApp, ui: &mut Ui) { } }); Grid::new(&HALVES).show(ui, |ui, _| { - Button::command(CommandRef::new("file.documentSetup")).sizing(Sizing::FillWidth).show(ui); + Button::command(CommandRef::new("file.documentSetup")).label(tl!("Document Setup")).sizing(Sizing::FillWidth).show(ui); Button::command(CommandRef::with_params("tool.select", json!({ "tool": "artboard" }))) .label(tl!("Edit Artboards")) .sizing(Sizing::FillWidth) @@ -90,8 +90,9 @@ pub(super) fn document_sections(app: &mut VectorcraftApp, ui: &mut Ui) { }); super::section(tl!("Quick Actions")).show(ui, |ui, _| { Grid::new(&HALVES).show(ui, |ui, _| { - for command in ["file.documentSetup", "edit.preferences"] { - Button::command(CommandRef::new(command)).sizing(Sizing::FillWidth).show(ui); + // The reference panel's buttons name the dialog without the menu's ellipsis. + for (command, label) in [("file.documentSetup", tl!("Document Setup")), ("edit.preferences", tl!("Preferences"))] { + Button::command(CommandRef::new(command)).label(label).sizing(Sizing::FillWidth).show(ui); } }); });