ui: fix paddings
This commit is contained in:
parent
9d97d466ff
commit
126574912e
4 changed files with 10 additions and 10 deletions
|
@ -151,8 +151,10 @@ impl NodeSetup {
|
||||||
self.api_port_setup_ui(ui, cb);
|
self.api_port_setup_ui(ui, cb);
|
||||||
// Show API secret setup.
|
// Show API secret setup.
|
||||||
self.secret_ui(Self::API_SECRET_MODAL, ui, cb);
|
self.secret_ui(Self::API_SECRET_MODAL, ui, cb);
|
||||||
|
ui.add_space(12.0);
|
||||||
// Show Foreign API secret setup.
|
// Show Foreign API secret setup.
|
||||||
self.secret_ui(Self::FOREIGN_API_SECRET_MODAL, ui, cb);
|
self.secret_ui(Self::FOREIGN_API_SECRET_MODAL, ui, cb);
|
||||||
|
ui.add_space(6.0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,7 +341,6 @@ impl NodeSetup {
|
||||||
Navigator::show_modal(port_modal);
|
Navigator::show_modal(port_modal);
|
||||||
cb.show_keyboard();
|
cb.show_keyboard();
|
||||||
});
|
});
|
||||||
ui.add_space(12.0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Draw API port [`Modal`] content.
|
/// Draw API port [`Modal`] content.
|
||||||
|
@ -462,7 +463,6 @@ impl NodeSetup {
|
||||||
.size(16.0)
|
.size(16.0)
|
||||||
.color(Colors::INACTIVE_TEXT)
|
.color(Colors::INACTIVE_TEXT)
|
||||||
);
|
);
|
||||||
ui.add_space(6.0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Draw FTL [`Modal`] content.
|
/// Draw FTL [`Modal`] content.
|
||||||
|
|
|
@ -219,7 +219,7 @@ impl P2PSetup {
|
||||||
Navigator::show_modal(port_modal);
|
Navigator::show_modal(port_modal);
|
||||||
cb.show_keyboard();
|
cb.show_keyboard();
|
||||||
});
|
});
|
||||||
ui.add_space(12.0);
|
ui.add_space(6.0);
|
||||||
|
|
||||||
// Show error when stratum server port is unavailable.
|
// Show error when stratum server port is unavailable.
|
||||||
if !self.is_port_available {
|
if !self.is_port_available {
|
||||||
|
@ -244,7 +244,7 @@ impl P2PSetup {
|
||||||
let text_edit_resp = egui::TextEdit::singleline(&mut self.port_edit)
|
let text_edit_resp = egui::TextEdit::singleline(&mut self.port_edit)
|
||||||
.id(Id::from(modal.id))
|
.id(Id::from(modal.id))
|
||||||
.font(TextStyle::Heading)
|
.font(TextStyle::Heading)
|
||||||
.desired_width(58.0)
|
.desired_width(64.0)
|
||||||
.cursor_at_end(true)
|
.cursor_at_end(true)
|
||||||
.ui(ui);
|
.ui(ui);
|
||||||
text_edit_resp.request_focus();
|
text_edit_resp.request_focus();
|
||||||
|
@ -742,7 +742,7 @@ impl P2PSetup {
|
||||||
Navigator::show_modal(max_outbound);
|
Navigator::show_modal(max_outbound);
|
||||||
cb.show_keyboard();
|
cb.show_keyboard();
|
||||||
});
|
});
|
||||||
ui.add_space(2.0);
|
ui.add_space(6.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Draw maximum number of outbound peers [`Modal`] content.
|
/// Draw maximum number of outbound peers [`Modal`] content.
|
||||||
|
|
|
@ -137,7 +137,7 @@ impl PoolSetup {
|
||||||
let text_edit_resp = egui::TextEdit::singleline(&mut self.fee_base_edit)
|
let text_edit_resp = egui::TextEdit::singleline(&mut self.fee_base_edit)
|
||||||
.id(Id::from(modal.id))
|
.id(Id::from(modal.id))
|
||||||
.font(TextStyle::Heading)
|
.font(TextStyle::Heading)
|
||||||
.desired_width(76.0)
|
.desired_width(84.0)
|
||||||
.cursor_at_end(true)
|
.cursor_at_end(true)
|
||||||
.ui(ui);
|
.ui(ui);
|
||||||
text_edit_resp.request_focus();
|
text_edit_resp.request_focus();
|
||||||
|
@ -307,7 +307,7 @@ impl PoolSetup {
|
||||||
let text_edit_resp = egui::TextEdit::singleline(&mut self.pool_size_edit)
|
let text_edit_resp = egui::TextEdit::singleline(&mut self.pool_size_edit)
|
||||||
.id(Id::from(modal.id))
|
.id(Id::from(modal.id))
|
||||||
.font(TextStyle::Heading)
|
.font(TextStyle::Heading)
|
||||||
.desired_width(64.0)
|
.desired_width(72.0)
|
||||||
.cursor_at_end(true)
|
.cursor_at_end(true)
|
||||||
.ui(ui);
|
.ui(ui);
|
||||||
text_edit_resp.request_focus();
|
text_edit_resp.request_focus();
|
||||||
|
@ -392,7 +392,7 @@ impl PoolSetup {
|
||||||
let text_edit_resp = egui::TextEdit::singleline(&mut self.stempool_size_edit)
|
let text_edit_resp = egui::TextEdit::singleline(&mut self.stempool_size_edit)
|
||||||
.id(Id::from(modal.id))
|
.id(Id::from(modal.id))
|
||||||
.font(TextStyle::Heading)
|
.font(TextStyle::Heading)
|
||||||
.desired_width(64.0)
|
.desired_width(72.0)
|
||||||
.cursor_at_end(true)
|
.cursor_at_end(true)
|
||||||
.ui(ui);
|
.ui(ui);
|
||||||
text_edit_resp.request_focus();
|
text_edit_resp.request_focus();
|
||||||
|
@ -477,7 +477,7 @@ impl PoolSetup {
|
||||||
let text_edit_resp = egui::TextEdit::singleline(&mut self.max_weight_edit)
|
let text_edit_resp = egui::TextEdit::singleline(&mut self.max_weight_edit)
|
||||||
.id(Id::from(modal.id))
|
.id(Id::from(modal.id))
|
||||||
.font(TextStyle::Heading)
|
.font(TextStyle::Heading)
|
||||||
.desired_width(64.0)
|
.desired_width(72.0)
|
||||||
.cursor_at_end(true)
|
.cursor_at_end(true)
|
||||||
.ui(ui);
|
.ui(ui);
|
||||||
text_edit_resp.request_focus();
|
text_edit_resp.request_focus();
|
||||||
|
|
|
@ -358,7 +358,7 @@ impl StratumSetup {
|
||||||
Navigator::show_modal(diff_modal);
|
Navigator::show_modal(diff_modal);
|
||||||
cb.show_keyboard();
|
cb.show_keyboard();
|
||||||
});
|
});
|
||||||
ui.add_space(12.0);
|
ui.add_space(6.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Draw minimum acceptable share difficulty [`Modal`] content.
|
/// Draw minimum acceptable share difficulty [`Modal`] content.
|
||||||
|
|
Loading…
Reference in a new issue