mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-06 01:44:21 +01:00
restore top panel behavior
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
22
src/app.rs
22
src/app.rs
@@ -575,20 +575,20 @@ fn timeline_view(ui: &mut egui::Ui, app: &mut Damus, timeline: usize) {
|
||||
|
||||
fn top_panel(ctx: &egui::Context) -> egui::TopBottomPanel {
|
||||
// mobile needs padding, at least on android
|
||||
//if is_mobile(ctx) {
|
||||
let mut top_margin = Margin::default();
|
||||
top_margin.top = 50.0;
|
||||
if is_mobile(ctx) {
|
||||
let mut top_margin = Margin::default();
|
||||
top_margin.top = 50.0;
|
||||
|
||||
let frame = Frame {
|
||||
inner_margin: top_margin,
|
||||
fill: ctx.style().visuals.panel_fill,
|
||||
..Default::default()
|
||||
};
|
||||
let frame = Frame {
|
||||
inner_margin: top_margin,
|
||||
fill: ctx.style().visuals.panel_fill,
|
||||
..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]
|
||||
|
||||
Reference in New Issue
Block a user