mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor: compact
This commit is contained in:
parent
abee6cc2c8
commit
60627ac3e5
43 changed files with 923 additions and 780 deletions
|
|
@ -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())),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue