1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -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

@@ -156,8 +156,8 @@ impl eframe::App for WrapApp {
eframe::set_value(storage, eframe::APP_KEY, &self.state);
}
fn clear_color(&self) -> egui::Rgba {
egui::Rgba::TRANSPARENT // we set a [`CentralPanel`] fill color in `demo_windows.rs`
fn clear_color(&self, visuals: &egui::Visuals) -> egui::Rgba {
visuals.window_fill().into()
}
fn update(&mut self, ctx: &egui::Context, frame: &mut eframe::Frame) {