1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Improve widget info output for potential screen readers

Part of https://github.com/emilk/egui/issues/167
This commit is contained in:
Emil Ernerfeldt
2021-03-08 18:36:32 +01:00
parent 1c06622dbc
commit ea248d66b5
14 changed files with 168 additions and 83 deletions

View File

@@ -316,10 +316,11 @@ impl BackendPanel {
}
ui.collapsing("Output events", |ui| {
ui.set_max_width(350.0);
ui.set_max_width(450.0);
ui.label("Recent output events from egui:");
ui.advance_cursor(8.0);
for event in &self.output_event_history {
ui.monospace(format!("{:?}", event));
ui.label(format!("{:?}", event));
}
});
}