demo_app: Remove screen_reader from default features
closes https://github.com/emilk/egui/issues/338
This commit is contained in:
parent
a5e41f275c
commit
268ddca161
3 changed files with 23 additions and 1 deletions
|
@ -14,7 +14,7 @@ eframe = { version = "0.11.0", path = "../eframe", features = ["time"] }
|
||||||
egui_demo_lib = { version = "0.11.0", path = "../egui_demo_lib" }
|
egui_demo_lib = { version = "0.11.0", path = "../egui_demo_lib" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["persistence", "screen_reader"]
|
default = ["persistence"]
|
||||||
http = ["eframe/http", "egui_demo_lib/http"]
|
http = ["eframe/http", "egui_demo_lib/http"]
|
||||||
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
|
persistence = ["eframe/persistence", "egui_demo_lib/persistence"]
|
||||||
screen_reader = ["eframe/screen_reader"] # experimental
|
screen_reader = ["eframe/screen_reader"] # experimental
|
||||||
|
|
|
@ -55,6 +55,17 @@ impl Widgets {
|
||||||
ui.add(crate::__egui_github_link_file_line!());
|
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| {
|
ui.horizontal_wrapped(|ui| {
|
||||||
// Trick so we don't have to add spaces in the text below:
|
// 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(' ');
|
ui.spacing_mut().item_spacing.x = ui.fonts()[TextStyle::Body].glyph_width(' ');
|
||||||
|
|
|
@ -36,6 +36,17 @@ fn main() {
|
||||||
if ui.button("Quit").clicked() {
|
if ui.button("Quit").clicked() {
|
||||||
quit = true;
|
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);
|
let (needs_repaint, shapes) = egui.end_frame(&display);
|
||||||
|
|
Loading…
Reference in a new issue