ui: fix wallet deletion, node info max peers amount, paddings at logo and wallet recovery settings

This commit is contained in:
ardocrat
2024-05-30 22:46:59 +03:00
parent b78ba0bfb5
commit 538ff37056
6 changed files with 34 additions and 23 deletions
+5 -5
View File
@@ -21,7 +21,7 @@ use crate::gui::icons::{AT, CUBE, DEVICES, FLOW_ARROW, HANDSHAKE, PACKAGE, SHARE
use crate::gui::platform::PlatformCallbacks;
use crate::gui::views::{NetworkContent, Root, View};
use crate::gui::views::network::types::{NetworkTab, NetworkTabType};
use crate::node::Node;
use crate::node::{Node, NodeConfig};
/// Integrated node tab content.
#[derive(Default)]
@@ -176,10 +176,10 @@ fn node_stats_ui(ui: &mut egui::Ui) {
[false, false, true, false]);
});
columns[1].vertical_centered(|ui| {
View::rounded_box(ui,
stats.peer_count.to_string(),
t!("network_node.peers"),
[false, false, false, true]);
let peers_txt = format!("{} ({})",
stats.peer_count,
NodeConfig::get_max_outbound_peers());
View::rounded_box(ui, peers_txt, t!("network_node.peers"), [false, false, false, true]);
});
});
ui.add_space(5.0);