1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

App::clear_color: give egui::Visuals as argument

This commit is contained in:
Emil Ernerfeldt
2022-04-30 15:41:43 +02:00
parent 8303523ccf
commit e1bcaeebe5
5 changed files with 13 additions and 6 deletions

View File

@@ -278,7 +278,8 @@ impl AppRunner {
}
pub fn clear_color_buffer(&self) {
self.painter.clear(self.app.clear_color());
self.painter
.clear(self.app.clear_color(&self.egui_ctx.style().visuals));
}
/// Paint the results of the last call to [`Self::logic`].