From 574cef34c96b24f4085e5e49a7fd7eaeb452dcfb Mon Sep 17 00:00:00 2001 From: totoz64 <47389794+totoz64@users.noreply.github.com> Date: Mon, 26 Oct 2026 10:27:57 +0100 Subject: [PATCH] M7: use current egui accessibility roles for proofing controls Replace two deprecated WidgetType aliases with Role::Button, as required by the hosted Windows and macOS Clippy checks. Local cargo xtask ci was attempted but cargo is not installed on this machine. git diff --check passes. Hosted CI and the preview workflow must validate this revision. --- crates/ui-egui/src/proofing_pane.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/proofing_pane.rs b/crates/ui-egui/src/proofing_pane.rs index 6710530be9..2e82349ffb 100644 --- a/crates/ui-egui/src/proofing_pane.rs +++ b/crates/ui-egui/src/proofing_pane.rs @@ -115,7 +115,7 @@ fn context(ui: &mut Ui, app: &mut WordApp, form: &mut SpellingForm, spelling: bo ui.add(egui::Label::new(job).wrap()); }); let (rect, response) = ui.allocate_exact_size(vec2(28.0, 28.0), Sense::click()); - response.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Button, true, tl!("Read Aloud"))); + response.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, true, tl!("Read Aloud"))); crate::icons::paint(ui.painter(), rect.shrink(4.0), "readAloud", t.icon, t.accent); if response.on_hover_text(tl!("Read Aloud")).clicked() { if form.current(app) { @@ -165,7 +165,7 @@ fn body(app: &mut WordApp, ui: &mut Ui, form: &mut SpellingForm) { ui.horizontal(|ui| { let width = (ui.available_width() - 34.0).max(20.0); let (rect, response) = ui.allocate_exact_size(vec2(width, 64.0), Sense::click()); - response.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Button, true, suggestion)); + response.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Button, true, suggestion)); if response.hovered() { ui.painter().rect_filled(rect, 0.0, t.hover); }