From fb1305f764460e834774944b722aea665c15ac43 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Fri, 4 Oct 2024 14:54:27 +0200 Subject: demo gif --- src/frontend/tui.rs | 9 ++++----- src/frontend/ui.rs | 2 -- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/frontend/tui.rs b/src/frontend/tui.rs index 17787e9..8aa8070 100644 --- a/src/frontend/tui.rs +++ b/src/frontend/tui.rs @@ -19,15 +19,14 @@ use crate::frontend::app::App; use crossterm::{ cursor, event::{ - DisableBracketedPaste, DisableMouseCapture, EnableBracketedPaste, EnableMouseCapture, - Event as CrosstermEvent, EventStream, KeyEvent, KeyEventKind, MouseEvent, + DisableMouseCapture, EnableMouseCapture, + Event as CrosstermEvent, KeyEvent, MouseEvent, }, terminal::{EnterAlternateScreen, LeaveAlternateScreen}, }; // use ratatui::backend::{Backend, CrosstermBackend}; use ratatui::backend::CrosstermBackend as Backend; -use ratatui::Terminal; -use std::io::{self, stdout, Stdout}; +use std::io::{stdout, Stdout}; use std::panic; use std::{ ops::{Deref, DerefMut}, @@ -35,7 +34,7 @@ use std::{ }; use color_eyre::eyre::{OptionExt, Result}; -use futures::{channel::mpsc::UnboundedSender, FutureExt, StreamExt}; +use futures::{FutureExt, StreamExt}; use tokio::sync::mpsc; use tokio_util::sync::CancellationToken; diff --git a/src/frontend/ui.rs b/src/frontend/ui.rs index ce77284..2383247 100644 --- a/src/frontend/ui.rs +++ b/src/frontend/ui.rs @@ -15,7 +15,6 @@ // along with this program. If not, see . ///// -use color_eyre::owo_colors::OwoColorize; use ratatui::{ buffer::Buffer, layout::{Constraint, Layout, Rect}, @@ -37,7 +36,6 @@ use super::app::{CurrentArea, FormerArea}; const MAIN_BLUE_COLOR: Color = Color::Indexed(39); // const MAIN_PURPLE_COLOR: Color = Color::Indexed(129); -const BOX_BORDER_STYLE_MAIN: Style = Style::new().fg(Color::White); //.bg(Color::Black); const BOX_SELECTED_BOX_STYLE: Style = Style::new().fg(Color::White); const BOX_UNSELECTED_BORDER_STYLE: Style = Style::new().fg(Color::DarkGray); const NORMAL_ROW_BG: Color = Color::Black; -- cgit v1.2.3