mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Add light mode
This commit is contained in:
@@ -101,6 +101,13 @@ impl DemoWindows {
|
||||
show_menu_bar(ui);
|
||||
});
|
||||
|
||||
// Just get a background to put the windows on instead of using whatever the clear color is
|
||||
let frame = egui::Frame {
|
||||
fill: ctx.style().visuals.extreme_bg_color,
|
||||
..egui::Frame::none()
|
||||
};
|
||||
egui::CentralPanel::default().frame(frame).show(ctx, |_| {});
|
||||
|
||||
self.windows(ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user