Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

M7: list Edit text & images first under Modify page (#2028)

Benno Eversd8f32e767c61
diff --git a/crates/engine/src/catalog.rs b/crates/engine/src/catalog.rs
index afc0673be..d467ca2cb 100644
--- a/crates/engine/src/catalog.rs
+++ b/crates/engine/src/catalog.rs
@@ -129,6 +129,7 @@ pub static TOOL_GROUPS: &[ToolGroup] = &[
ToolSection {
title: "Modify page",
items: &[
+ item("Edit text & images", "text-cursor-input", "edit.edit_text", Ready),
item("Rotate pages", "rotate-cw", "page.rotate", Ready),
item("Insert pages", "file-plus-2", "page.insert", Ready),
item("Delete pages", "trash-2", "page.delete", Ready),
@@ -139,7 +140,6 @@ pub static TOOL_GROUPS: &[ToolGroup] = &[
ToolSection {
title: "Add content",
items: &[
- item("Edit text & images", "text-cursor-input", "edit.edit_text", Ready),
item("Text", "type", "edit.text", Ready),
item("Image", "image-plus", "edit.image", Ready),
menu_item("Header and footer", "heading", &["edit.header_footer", "edit.header_footer.update", "edit.header_footer.remove"]),