Format the Link Info accessibility diagnostics

This commit is contained in:
yoriswind committed 2026-11-26 18:11:21 -08:00
1 parent d352b3a5bd
commit 6a78234af7
2 files changed
+20 -3

No files matched your search

+14 -2
View File
@@ -102,7 +102,13 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo
if value.contains("Überlagerung") {
eprintln!(
"LINK_LOCATION_COPY_BEFORE id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}",
shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children()
shown.id,
node.role(),
node.label(),
node.value(),
node.description(),
node.bounds(),
node.children()
);
}
node.set_description(tl!("Copy"));
@@ -110,7 +116,13 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo
if value.contains("Überlagerung") {
eprintln!(
"LINK_LOCATION_COPY_AFTER id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}",
shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children()
shown.id,
node.role(),
node.label(),
node.value(),
node.description(),
node.bounds(),
node.children()
);
}
});
+6 -1
View File
@@ -492,7 +492,12 @@ pub(crate) fn floated(mut app: VectorcraftApp, panel: &str, lang: &str, place: P
let Some(node) = by_id.get(&id) else { continue };
eprintln!(
"LINK_LOCATION_FINAL lang={lang} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?} tab_panel_ancestry={ancestry:?}",
node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children()
node.role(),
node.label(),
node.value(),
node.description(),
node.bounds(),
node.children()
);
for child in node.children() {
let mut child_ancestry = ancestry.clone();