build: update to ratatui 0.26

This commit is contained in:
EdJoPaTo
2024-02-03 01:05:47 +01:00
parent 969b78ab06
commit 4cbe932332
3 changed files with 6 additions and 10 deletions
+2 -6
View File
@@ -9,7 +9,7 @@ use crossterm::{
use ratatui::{
backend::{Backend, CrosstermBackend},
style::{Color, Modifier, Style},
widgets::{Block, Borders},
widgets::Block,
Terminal,
};
use std::error::Error;
@@ -85,11 +85,7 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> io::Result<(
let items = Tree::new(app.tree.items.clone())
.expect("all item identifiers are unique")
.block(
Block::new()
.borders(Borders::ALL)
.title(format!("Tree Widget {:?}", app.tree.state)),
)
.block(Block::bordered().title(format!("Tree Widget {:?}", app.tree.state)))
.highlight_style(
Style::new()
.fg(Color::Black)