Skip to content

Commit

Permalink
[File browser] Update for libgui API change
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Feb 7, 2024
1 parent 0d9677f commit 65f6d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust_programs/file_browser/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ impl DirectoryEntryView {
};
let label_text = format!("{entry_name}{label_suffix}");
let name_label = Rc::new(Label::new(
Rect::from_parts(Point::new(10, 10), Size::new(300, height)),
&label_text,
Color::new(30, 30, 30),
move |_, _| Rect::from_parts(Point::new(10, 10), Size::new(300, height)),
));
// TODO(PT): Set font size as attribute?
Rc::clone(&view).add_component(name_label);
Expand Down

0 comments on commit 65f6d6f

Please sign in to comment.