Browse Source

Minor demo improvements

pull/649/head
Emil Ernerfeldt 3 years ago
parent
commit
a6799b1278
  1. 2
      egui_demo_lib/src/apps/demo/drag_and_drop.rs
  2. 2
      egui_demo_lib/src/apps/demo/font_book.rs

2
egui_demo_lib/src/apps/demo/drag_and_drop.rs

@ -111,7 +111,7 @@ impl super::Demo for DragAndDropDemo {
impl super::View for DragAndDropDemo {
fn ui(&mut self, ui: &mut Ui) {
ui.label("This is a proof-of-concept of drag-and-drop in egui");
ui.label("This is a proof-of-concept of drag-and-drop in egui.");
ui.label("Drag items between columns.");
let mut source_col_row = None;

2
egui_demo_lib/src/apps/demo/font_book.rs

@ -64,7 +64,7 @@ impl super::View for FontBook {
ui.horizontal(|ui| {
ui.label("Filter:");
ui.text_edit_singleline(&mut self.filter);
ui.add(egui::TextEdit::singleline(&mut self.filter).desired_width(120.0));
self.filter = self.filter.to_lowercase();
if ui.button("x").clicked() {
self.filter.clear();

Loading…
Cancel
Save