refactor(ui-egui): move edit_text_ui.rs into tools/

This commit is contained in:
aiongg
2026-10-26 22:46:12 +00:00
parent fbbc4d6f19
commit f35adcdf99
6 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,6 @@ pub use optimize_ui::{OptimizeDraft, OptimizeTab};
pub use sign_ui::{DigitalIdEntry, SignDraft, SignGraphic, SignStep};
mod bidi;
mod dialogs;
mod edit_text_ui;
pub mod field_table_ui;
pub use edit_text_ui::CropMode;
mod editing;
@@ -166,6 +165,7 @@ use tools::calc_order_ui;
use tools::camera_ui;
pub use tools::comments;
use tools::content_ui;
use tools::edit_text_ui;
/// Files dropped on a document's page grid or its Pages panel.
struct GridDrop {
+1
View File
@@ -3,3 +3,4 @@ pub(super) mod calc_order_ui;
pub(super) mod camera_ui;
pub mod comments;
pub(super) mod content_ui;
pub(super) mod edit_text_ui;
@@ -779,7 +779,7 @@ mod tests {
// face until the font was found again in the document-font menu (#2591).
let (mut app, ed) = preview_app();
app.views[0].line_editor = Some(ed);
let inter = include_bytes!("../../../assets/fonts/Inter-Regular.ttf").to_vec();
let inter = include_bytes!("../../../../assets/fonts/Inter-Regular.ttf").to_vec();
app.use_files(crate::files::FilePurpose::TextFont { page: 0 }, vec![("Inter-Regular.ttf".into(), inter)]);
let doc = app.session.get(app.views[0].id).unwrap();
let lines = doc.text_lines(0);