Skip to content

Commit

Permalink
demo_app: Remove screen_reader from default features
Browse files Browse the repository at this point in the history
closes #338
  • Loading branch information
emilk committed May 8, 2021
1 parent a5e41f2 commit 268ddca
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion egui_demo_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ eframe = { version = "0.11.0", path = "../eframe", features = ["time"] }
egui_demo_lib = { version = "0.11.0", path = "../egui_demo_lib" }

[features]
default = ["persistence", "screen_reader"]
default = ["persistence"]
http = ["eframe/http", "egui_demo_lib/http"]
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
screen_reader = ["eframe/screen_reader"] # experimental
Expand Down
11 changes: 11 additions & 0 deletions egui_demo_lib/src/apps/demo/widgets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
Expand Down
11 changes: 11 additions & 0 deletions egui_glium/examples/pure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ fn main() {
if ui.button("Quit").clicked() {
quit = true;
}

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");
});
});
});

let (needs_repaint, shapes) = egui.end_frame(&display);
Expand Down

0 comments on commit 268ddca

Please sign in to comment.