aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/tab.rs
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-03-28 10:51:15 +0300
committerdenis <denismaximov98@gmail.com>2021-03-28 10:51:15 +0300
commit42890d4e64f8176e20dd5f2fc8e87087bb9978f9 (patch)
tree27fa6188eca64decad3aaf2b360e4634a0ae0abe /src/client/tab.rs
parentwip: move Palette out of zellij-tile (diff)
downloadsl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.gz
sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.xz
sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.zip
wip: replace the impl with a fn load_palette instead
Diffstat (limited to 'src/client/tab.rs')
-rw-r--r--src/client/tab.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index 9203d75b..33a25446 100644
--- a/src/client/tab.rs
+++ b/src/client/tab.rs
@@ -1,9 +1,7 @@
//! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size,
//! as well as how they should be resized
-use crate::common::{
- colors, input::handler::parse_keys, AppInstruction, Palette, SenderWithContext,
-};
+use crate::common::{colors, input::handler::parse_keys, AppInstruction, SenderWithContext};
use crate::layout::Layout;
use crate::panes::{PaneId, PositionAndSize, TerminalPane};
use crate::pty_bus::{PtyInstruction, VteEvent};
@@ -16,7 +14,7 @@ use std::{
collections::{BTreeMap, HashSet},
};
use std::{io::Write, sync::mpsc::channel};
-use zellij_tile::data::{Event, InputMode};
+use zellij_tile::data::{Event, InputMode, Palette};
const CURSOR_HEIGHT_WIDTH_RATIO: usize = 4; // this is not accurate and kind of a magic number, TODO: look into this
const MIN_TERMINAL_HEIGHT: usize = 2;