refactor: compact

This commit is contained in:
🪞👃🪞 2024-06-07 16:51:30 +03:00
parent abee6cc2c8
commit 60627ac3e5
43 changed files with 923 additions and 780 deletions

View file

@ -58,6 +58,18 @@ pub fn draw_box (buffer: &mut Buffer, area: Rect) {
format!("{}", "".repeat((area.width - 2).into())),//.repeat(area.width.saturating_sub(2).into())),
Style::default().black()
);
for y in (area.y + 1)..(area.y + area.height - 1) {
buffer.set_string(
area.x, y,
format!(""),
Style::default().black().dim()
);
buffer.set_string(
area.x + area.width - 1, y,
format!(""),
Style::default().black().dim()
);
}
buffer.set_string(
area.x, area.y + area.height - 1,
format!("{}", "".repeat((area.width - 2).into())),//.repeat(area.width.saturating_sub(2).into())),