This commit is contained in:
parent
821fe2d8d8
commit
ff18798674
2 changed files with 14 additions and 19 deletions
|
@ -109,25 +109,13 @@ impl App {
|
|||
|
||||
pub fn draw_passcode(&mut self, frame: &mut Frame) {
|
||||
frame.render_widget(Block::new().bg(PASSWORD_BACKGROUND), frame.area());
|
||||
let middle_vertical = Layout::new(
|
||||
Direction::Vertical,
|
||||
[
|
||||
Constraint::Ratio(1, 3),
|
||||
Constraint::Ratio(1, 3),
|
||||
Constraint::Ratio(1, 3),
|
||||
],
|
||||
)
|
||||
.split(frame.area())[1];
|
||||
let middle_vertical = Layout::new(Direction::Vertical, [Constraint::Length(8)])
|
||||
.flex(Flex::Center)
|
||||
.split(frame.area())[0];
|
||||
|
||||
let middle = Layout::new(
|
||||
Direction::Horizontal,
|
||||
[
|
||||
Constraint::Ratio(1, 3),
|
||||
Constraint::Ratio(1, 3),
|
||||
Constraint::Ratio(1, 3),
|
||||
],
|
||||
)
|
||||
.split(middle_vertical)[1];
|
||||
let middle = Layout::new(Direction::Horizontal, [Constraint::Length(28)])
|
||||
.flex(Flex::Center)
|
||||
.split(middle_vertical)[0];
|
||||
|
||||
let layout = Layout::new(
|
||||
Direction::Vertical,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue