ui: scan padding fix, remove connection ping log

This commit is contained in:
ardocrat
2024-05-25 10:45:25 +03:00
parent ca0cc3e33c
commit 8ccfa8f7fd
4 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ impl WalletMessages {
.size(17.0)
.color(Colors::RED));
});
ui.add_space(6.0);
ui.add_space(12.0);
// Setup spacing between buttons.
ui.spacing_mut().item_spacing = egui::Vec2::new(6.0, 0.0);
+6 -7
View File
@@ -572,18 +572,18 @@ impl WalletTransactions {
// Show buttons to close modal or come back to text request content.
ui.columns(2, |cols| {
cols[0].vertical_centered_justified(|ui| {
View::button(ui, t!("back"), Colors::WHITE, || {
self.tx_info_qr_code_content.clear_state();
self.tx_info_show_qr = false;
});
});
cols[1].vertical_centered_justified(|ui| {
View::button(ui, t!("close"), Colors::WHITE, || {
self.tx_info_qr_code_content.clear_state();
self.tx_info_show_qr = false;
modal.close();
});
});
cols[1].vertical_centered_justified(|ui| {
View::button(ui, t!("back"), Colors::WHITE, || {
self.tx_info_qr_code_content.clear_state();
self.tx_info_show_qr = false;
});
});
});
} else if self.tx_info_show_scanner {
// Show buttons to close modal or scanner.
@@ -715,7 +715,6 @@ impl WalletTransactions {
self.tx_info_show_scanner = false;
} else {
self.tx_info_scanner_content.ui(ui, cb);
ui.add_space(2.0);
}
return;
}