Add vector icons to bottom send and load buttons

This commit is contained in:
Dandaedre 2026-11-15 15:11:37 +01:00
parent b4dacb23ea
commit 156a1d1b28
3 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -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,

View File

@ -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.