diff --git a/crates/canvas-pilot/src/device_ui.rs b/crates/canvas-pilot/src/device_ui.rs index 9f3cb6c..125e5a6 100644 --- a/crates/canvas-pilot/src/device_ui.rs +++ b/crates/canvas-pilot/src/device_ui.rs @@ -518,7 +518,7 @@ impl Editor { } pub(super) fn device_load_button(&mut self, ui: &mut egui::Ui) { - self.device_load_control(ui, false); + self.device_load_control(ui, true); } fn device_load_control(&mut self, ui: &mut egui::Ui, icon: bool) { let enabled = self.device.online() && self.device.pending.is_none(); @@ -661,7 +661,7 @@ impl Editor { Err(e) => e.clone(), } }; - if apply_button( + if transfer_button( ui, if self.device.sending { "Applying…" @@ -673,6 +673,7 @@ impl Editor { } }, enabled, + true, ) .on_hover_text(&tooltip) .on_disabled_hover_text(&tooltip) diff --git a/crates/canvas-pilot/src/gui.rs b/crates/canvas-pilot/src/gui.rs index b33e3d7..43fdafd 100644 --- a/crates/canvas-pilot/src/gui.rs +++ b/crates/canvas-pilot/src/gui.rs @@ -4296,7 +4296,10 @@ mod tests { .shapes .iter() .find_map(|s| match &s.shape { - egui::epaint::Shape::Text(t) if t.galley.job.text == text => { + egui::epaint::Shape::Text(t) + if t.galley.job.text == text + || (!text.trim().is_empty() && t.galley.job.text.trim() == text.trim()) => + { Some(t.pos + Vec2::new(12.0, 5.0)) } _ => None, diff --git a/docs/canvas-pilot/changelog.md b/docs/canvas-pilot/changelog.md index ff892f6..afd7c94 100644 --- a/docs/canvas-pilot/changelog.md +++ b/docs/canvas-pilot/changelog.md @@ -4,6 +4,8 @@ ## Unreleased +- Add vector send/load arrows to the bottom transfer buttons, matching the mapping controls without relying on symbol-font glyphs. Visually checked at 1440 and 1000 pixels wide. + - Replace Aquilon full-store downloads with batched AWJ reads on TCP 10606, retaining fresh preflight and verified sends. Emulator reads fell from 124 MB to about 197 KB and took about 0.30 seconds directly. Twelve transfer cases passed with restoration; malformed/incomplete responses and changing snapshots fail explicitly. HTTP/WebSocket custom ports remain supported; AWJ must be reachable on the same IP. - Replace unsupported arrow glyphs in transfer labels and help text with plain text so they render with the bundled UI font.