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);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,6 @@ impl FractalClock {
|
||||
ui.expand_to_include_rect(painter.clip_rect());
|
||||
|
||||
Frame::popup(ui.style())
|
||||
.fill(Rgba::from_luminance_alpha(0.02, 0.5).into())
|
||||
.stroke(Stroke::none())
|
||||
.show(ui, |ui| {
|
||||
ui.set_max_width(270.0);
|
||||
|
||||
Reference in New Issue
Block a user