initial commit of TUI sketching

This commit is contained in:
sigil-03 2025-07-13 21:45:05 -06:00
parent 59ef0dd757
commit 5c7230d2f4
9 changed files with 429 additions and 2 deletions

24
src/bin/entui/ui.rs Normal file
View file

@ -0,0 +1,24 @@
use ratatui::{
buffer::Buffer,
layout::{Alignment, Rect, Layout, Direction, Constraint},
style::{Color, Stylize},
widgets::{Block, BorderType, Paragraph, Widget},
};
use crate::app::App;
impl Widget for &App {
fn render(self, area: Rect, buf: &mut Buffer) {
// LAYOUT
let layout = Layout::default()
.direction(Direction::Horizontal)
.constraints(vec![
Constraint::Percentage(100),
// Constraint::Percentage(50),
])
.split(area);
// BLOCK 0 - ISSUE LIST
self.issues_list.render(layout[0], buf);
}
}