1
0
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:
Emil Ernerfeldt
2021-02-03 01:08:23 +01:00
parent c536e1b0da
commit a19fd7b780
12 changed files with 230 additions and 67 deletions

View File

@@ -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);
}

View File

@@ -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);