commit d46f6ec1eb71877d101356532b0f82dcad6c1ec2
parent 53c8ee0403f82198f45ef5c9630eb5e0f758941b
Author: William Casarin <jb55@jb55.com>
Date: Thu, 6 Jul 2023 14:38:15 -0700
fix light mode
Diffstat:
M | src/app.rs | | | 34 | +++++++++++++++------------------- |
1 file changed, 15 insertions(+), 19 deletions(-)
diff --git a/src/app.rs b/src/app.rs
@@ -421,34 +421,30 @@ fn render_damus_desktop(ctx: &egui::Context, app: &mut Damus) {
if app.n_panels == 1 {
let panel_width = ctx.screen_rect().width();
- egui::CentralPanel::default()
- .frame(Frame::default().fill(app.bg_color))
- .show(ctx, |ui| {
- set_app_style(ui);
- timeline_panel(ui, app, panel_width, 0);
- });
+ egui::CentralPanel::default().show(ctx, |ui| {
+ set_app_style(ui);
+ timeline_panel(ui, app, panel_width, 0);
+ });
return;
}
- egui::CentralPanel::default()
- .frame(Frame::default().fill(app.bg_color))
- .show(ctx, |ui| {
- set_app_style(ui);
- egui::ScrollArea::horizontal()
- .auto_shrink([false; 2])
- .show(ui, |ui| {
- for ind in 0..app.n_panels {
- timeline_panel(ui, app, panel_width, ind);
- }
- });
- });
+ egui::CentralPanel::default().show(ctx, |ui| {
+ set_app_style(ui);
+ egui::ScrollArea::horizontal()
+ .auto_shrink([false; 2])
+ .show(ui, |ui| {
+ for ind in 0..app.n_panels {
+ timeline_panel(ui, app, panel_width, ind);
+ }
+ });
+ });
}
fn timeline_panel(ui: &mut egui::Ui, app: &mut Damus, panel_width: f32, ind: u32) {
egui::SidePanel::left(format!("l{}", ind))
.resizable(false)
- .frame(Frame::none().fill(app.bg_color))
+ .frame(Frame::none())
.max_width(panel_width)
.min_width(panel_width)
.show_inside(ui, |ui| {