mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
rename LayerId to AreaLayerId
This commit is contained in:
@@ -88,8 +88,10 @@ fn preview_files_being_dropped(ctx: &egui::Context) {
|
||||
}
|
||||
}
|
||||
|
||||
let painter =
|
||||
ctx.layer_painter(LayerId::new(Order::Foreground, Id::new("file_drop_target")));
|
||||
let painter = ctx.layer_painter(AreaLayerId::new(
|
||||
Order::Foreground,
|
||||
Id::new("file_drop_target"),
|
||||
));
|
||||
|
||||
let screen_rect = ctx.input().screen_rect();
|
||||
painter.rect_filled(screen_rect, 0.0, Color32::from_black_alpha(192));
|
||||
|
||||
Reference in New Issue
Block a user