diff options
| author | denis <denismaximov98@gmail.com> | 2021-03-28 10:51:15 +0300 |
|---|---|---|
| committer | denis <denismaximov98@gmail.com> | 2021-03-28 10:51:15 +0300 |
| commit | 42890d4e64f8176e20dd5f2fc8e87087bb9978f9 (patch) | |
| tree | 27fa6188eca64decad3aaf2b360e4634a0ae0abe /src/client | |
| parent | wip: move Palette out of zellij-tile (diff) | |
| download | sl0ppij-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')
| -rw-r--r-- | src/client/boundaries.rs | 4 | ||||
| -rw-r--r-- | src/client/tab.rs | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/client/boundaries.rs b/src/client/boundaries.rs index 70671b6b..cd489be0 100644 --- a/src/client/boundaries.rs +++ b/src/client/boundaries.rs @@ -1,8 +1,8 @@ -use crate::common::{colors, Palette}; +use crate::common::colors; use crate::tab::Pane; use ansi_term::Colour::RGB; use std::collections::HashMap; -use zellij_tile::data::InputMode; +use zellij_tile::data::{InputMode, Palette}; use std::fmt::{Display, Error, Formatter}; pub mod boundary_type { 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; |
