mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
chore: tidy up
This commit is contained in:
parent
5afed6f055
commit
dc09ea901f
10 changed files with 321 additions and 160 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue