chore: tidy up

This commit is contained in:
🪞👃🪞 2024-06-10 18:30:10 +03:00
parent 5afed6f055
commit dc09ea901f
10 changed files with 321 additions and 160 deletions

View file

@ -52,6 +52,15 @@ pub fn draw_box (buffer: &mut Buffer, area: Rect) {
buffer.set_string(area.x, area.y + area.height - 1, bottom, border);
}
pub fn draw_focus_corners (buffer: &mut Buffer, area: Rect) {
use ratatui::style::{Style, Stylize};
let focus = Style::default().yellow().bold().not_dim();
buffer.set_string(area.x, area.y, "", focus);
buffer.set_string(area.x + area.width - 1, area.y, "", focus);
buffer.set_string(area.x, area.y + area.height - 1, "", focus);
buffer.set_string(area.x + area.width - 1, area.y + area.height - 1, "", focus);
}
pub fn render_toolbar_vertical (
stdout: &mut std::io::Stdout,
offset: (u16, u16),