From f86988eab65e5de54a1caa3847d56de371799454 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Fri, 31 May 2024 06:44:22 +0300 Subject: [PATCH] fix: wallet list at hidden state --- src/gui/views/wallets/content.rs | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/gui/views/wallets/content.rs b/src/gui/views/wallets/content.rs index 4d85928..80ed4ef 100644 --- a/src/gui/views/wallets/content.rs +++ b/src/gui/views/wallets/content.rs @@ -196,16 +196,20 @@ impl WalletsContent { }); egui::CentralPanel::default() - .frame(egui::Frame { - stroke: View::item_stroke(), - fill: Colors::fill_deep(), - inner_margin: Margin { - left: View::far_left_inset_margin(ui) + 4.0, - right: View::far_right_inset_margin(ui) + 4.0, - top: 4.0, - bottom: View::get_bottom_inset() + 4.0, - }, - ..Default::default() + .frame(if list_hidden { + egui::Frame::default() + } else { + egui::Frame { + stroke: View::item_stroke(), + fill: Colors::fill_deep(), + inner_margin: Margin { + left: View::far_left_inset_margin(ui) + 4.0, + right: View::far_right_inset_margin(ui) + 4.0, + top: 4.0, + bottom: View::get_bottom_inset() + 4.0, + }, + ..Default::default() + } }) .show_inside(ui, |ui| { // Update ui after 1 sec at single panel mode.