fix: wallet list at hidden state

This commit is contained in:
ardocrat 2024-05-31 06:44:22 +03:00
parent 768f081e5b
commit f86988eab6

View file

@ -196,16 +196,20 @@ impl WalletsContent {
}); });
egui::CentralPanel::default() egui::CentralPanel::default()
.frame(egui::Frame { .frame(if list_hidden {
stroke: View::item_stroke(), egui::Frame::default()
fill: Colors::fill_deep(), } else {
inner_margin: Margin { egui::Frame {
left: View::far_left_inset_margin(ui) + 4.0, stroke: View::item_stroke(),
right: View::far_right_inset_margin(ui) + 4.0, fill: Colors::fill_deep(),
top: 4.0, inner_margin: Margin {
bottom: View::get_bottom_inset() + 4.0, left: View::far_left_inset_margin(ui) + 4.0,
}, right: View::far_right_inset_margin(ui) + 4.0,
..Default::default() top: 4.0,
bottom: View::get_bottom_inset() + 4.0,
},
..Default::default()
}
}) })
.show_inside(ui, |ui| { .show_inside(ui, |ui| {
// Update ui after 1 sec at single panel mode. // Update ui after 1 sec at single panel mode.