Minor demo improvements
This commit is contained in:
parent
a2082f226f
commit
a6799b1278
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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…
Reference in a new issue