Update egui to 0.32

This commit is contained in:
2025-07-11 15:21:13 +02:00
parent 276508713f
commit c59febd924
6 changed files with 443 additions and 660 deletions

View File

@ -292,7 +292,7 @@ impl eframe::App for App {
});
egui::TopBottomPanel::top("top_panel").show(ctx, |ui| {
egui::containers::menu::Bar::new().ui(ui, |ui| {
egui::MenuBar::new().ui(ui, |ui| {
// NOTE: no File->Quit on web pages!
ui.menu_button("Menu ⚙", |ui| {
ui.label(RichText::new("Action").weak());

View File

@ -454,7 +454,7 @@ fn spawn_file_watcher(p: &Path) -> Inner {
let file = File::open(&path)?;
let mtime = file_mtime(&file)?;
let _ = events_tx.send(FileEvent::NewFileMTime(mtime.into()));
let _ = events_tx.send(FileEvent::NewFileMTime(mtime));
Ok(())
});

View File

@ -42,7 +42,7 @@ impl Tile {
Self {
bounding_box,
image: ColorImage::new([CHUNK_SIZE, CHUNK_SIZE], Color32::TRANSPARENT),
image: ColorImage::filled([CHUNK_SIZE, CHUNK_SIZE], Color32::TRANSPARENT),
texture: None,
texture_is_dirty: false,
}

View File

@ -22,7 +22,7 @@ pub fn rasterize<'a, Blend: BlendFn>(
point_to_pixel: TSTransform,
triangles: impl Iterator<Item = [&'a Vertex; 3]>,
) -> ColorImage {
let mut image = ColorImage::new([width, height], Color32::TRANSPARENT);
let mut image = ColorImage::filled([width, height], Color32::TRANSPARENT);
rasterize_onto::<Blend>(&mut image, point_to_pixel, triangles);
image
}