aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorlukeflo2024-10-04 14:54:27 +0200
committerlukeflo2024-10-04 14:54:27 +0200
commitfb1305f764460e834774944b722aea665c15ac43 (patch)
tree52d7e5f2138970c5089a5d52b978b6d96cf2b571 /src/frontend
parent124e3e59efb0bfc35b23f517767731a0eda3a0a6 (diff)
downloadbibiman-fb1305f764460e834774944b722aea665c15ac43.tar.gz
bibiman-fb1305f764460e834774944b722aea665c15ac43.zip
demo gif
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tui.rs9
-rw-r--r--src/frontend/ui.rs2
2 files changed, 4 insertions, 7 deletions
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 <https://www.gnu.org/licenses/>.
/////
-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;