ui: fix node paddings, color of button to add wallet connection
This commit is contained in:
parent
ba3649a811
commit
4c77faff60
4 changed files with 5 additions and 6 deletions
|
@ -77,7 +77,7 @@ impl NetworkTab for NetworkMetrics {
|
|||
}
|
||||
}
|
||||
|
||||
const BLOCK_ITEM_HEIGHT: f32 = 79.0;
|
||||
const BLOCK_ITEM_HEIGHT: f32 = 78.0;
|
||||
|
||||
/// Draw emission and difficulty info.
|
||||
fn info_ui(ui: &mut egui::Ui, stats: &ServerStats) {
|
||||
|
@ -147,7 +147,7 @@ fn blocks_ui(ui: &mut egui::Ui, stats: &ServerStats) {
|
|||
.stick_to_bottom(true)
|
||||
.show_rows(
|
||||
ui,
|
||||
BLOCK_ITEM_HEIGHT - 1.0,
|
||||
BLOCK_ITEM_HEIGHT,
|
||||
blocks_size,
|
||||
|ui, row_range| {
|
||||
for index in row_range {
|
||||
|
@ -206,7 +206,6 @@ fn block_item_ui(ui: &mut egui::Ui, db: &DiffBlock, rounding: Rounding) {
|
|||
.color(Colors::gray())
|
||||
.size(16.0));
|
||||
});
|
||||
|
||||
ui.add_space(3.0);
|
||||
});
|
||||
ui.add_space(6.0);
|
||||
|
|
|
@ -201,7 +201,7 @@ fn peer_item_ui(ui: &mut egui::Ui, peer: &PeerStats, rounding: Rounding) {
|
|||
rect.set_height(79.0);
|
||||
ui.allocate_ui_at_rect(rect, |ui| {
|
||||
ui.vertical(|ui| {
|
||||
ui.add_space(3.0);
|
||||
ui.add_space(4.0);
|
||||
|
||||
// Draw round background.
|
||||
ui.painter().rect(rect, rounding, Colors::white_or_black(false), View::item_stroke());
|
||||
|
|
|
@ -540,7 +540,7 @@ impl View {
|
|||
// Draw box label.
|
||||
ui.label(RichText::new(label).color(Colors::gray()).size(15.0));
|
||||
});
|
||||
ui.add_space(3.0);
|
||||
ui.add_space(2.0);
|
||||
});
|
||||
}).response;
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ impl ConnectionSetup {
|
|||
|
||||
// Show button to add new external node connection.
|
||||
let add_node_text = format!("{} {}", PLUS_CIRCLE, t!("wallets.add_node"));
|
||||
View::button(ui, add_node_text, Colors::white_or_black(false), || {
|
||||
View::button(ui, add_node_text, Colors::button(), || {
|
||||
self.show_add_ext_conn_modal(cb);
|
||||
});
|
||||
ui.add_space(4.0);
|
||||
|
|
Loading…
Reference in a new issue