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

demo_app: Remove screen_reader from default features

closes https://github.com/emilk/egui/issues/338
This commit is contained in:
Emil Ernerfeldt
2021-05-08 16:27:05 +02:00
parent a5e41f275c
commit 268ddca161
3 changed files with 23 additions and 1 deletions

View File

@@ -55,6 +55,17 @@ impl Widgets {
ui.add(crate::__egui_github_link_file_line!());
});
egui::ComboBox::from_label("Version")
.width(150.0)
.selected_text("foo")
.show_ui(ui, |ui| {
egui::CollapsingHeader::new("Dev")
.default_open(true)
.show(ui, |ui| {
ui.label("contents");
});
});
ui.horizontal_wrapped(|ui| {
// Trick so we don't have to add spaces in the text below:
ui.spacing_mut().item_spacing.x = ui.fonts()[TextStyle::Body].glyph_width(' ');