restore top panel behavior

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-02-09 18:22:24 -08:00
parent f323fe7379
commit 4eaf17897e

View File

@@ -575,20 +575,20 @@ fn timeline_view(ui: &mut egui::Ui, app: &mut Damus, timeline: usize) {
fn top_panel(ctx: &egui::Context) -> egui::TopBottomPanel { fn top_panel(ctx: &egui::Context) -> egui::TopBottomPanel {
// mobile needs padding, at least on android // mobile needs padding, at least on android
//if is_mobile(ctx) { if is_mobile(ctx) {
let mut top_margin = Margin::default(); let mut top_margin = Margin::default();
top_margin.top = 50.0; top_margin.top = 50.0;
let frame = Frame { let frame = Frame {
inner_margin: top_margin, inner_margin: top_margin,
fill: ctx.style().visuals.panel_fill, fill: ctx.style().visuals.panel_fill,
..Default::default() ..Default::default()
}; };
return egui::TopBottomPanel::top("top_panel").frame(frame); return egui::TopBottomPanel::top("top_panel").frame(frame);
//} }
//egui::TopBottomPanel::top("top_panel").frame(Frame::none()) egui::TopBottomPanel::top("top_panel").frame(Frame::none())
} }
#[inline] #[inline]