ui: camera paddings, focus on password at wallet creation modal

This commit is contained in:
ardocrat
2026-03-24 02:06:00 +03:00
parent 497b967fd0
commit 26debcf51c
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ impl CameraContent {
});
});
}
ui.add_space(12.0);
ui.add_space(6.0);
ui.ctx().request_repaint();
}
+4 -5
View File
@@ -61,8 +61,7 @@ impl AddWalletModal {
// Show wallet name text edit.
let mut name_input = TextEdit::new(Id::from(modal.id).with("name"))
.focus(Modal::first_draw());
.focus(false);
name_input.ui(ui, &mut self.name_edit, cb);
ui.add_space(8.0);
@@ -74,13 +73,13 @@ impl AddWalletModal {
// Show wallet password text edit.
let mut pass_input = TextEdit::new(Id::from(modal.id).with("pass"))
.password()
.focus(false);
.focus(Modal::first_draw());
if name_input.enter_pressed {
pass_input.focus_request();
}
pass_input.ui(ui, &mut self.pass_edit, cb);
if pass_input.enter_pressed {
(on_next)(self);
on_next(self);
}
ui.add_space(12.0);
});
@@ -99,7 +98,7 @@ impl AddWalletModal {
});
columns[1].vertical_centered_justified(|ui| {
View::button(ui, t!("continue"), Colors::white_or_black(false), || {
(on_next)(self);
on_next(self);
});
});
});