aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-04-24 11:42:40 +0300
committerdenis <denismaximov98@gmail.com>2021-04-24 11:42:40 +0300
commitde72d3d2fb785117e599d17525b5043345ffa03c (patch)
treeb727c160d8e09302120476701a0dd243fab9dfad /src
parentwip: colors adjustments (diff)
downloadsl0ppij-de72d3d2fb785117e599d17525b5043345ffa03c.tar.gz
sl0ppij-de72d3d2fb785117e599d17525b5043345ffa03c.tar.xz
sl0ppij-de72d3d2fb785117e599d17525b5043345ffa03c.zip
wip: tab bar coloring
Diffstat (limited to 'src')
-rw-r--r--src/client/tab.rs2
-rw-r--r--src/common/mod.rs6
-rw-r--r--src/common/utils/shared.rs2
3 files changed, 3 insertions, 7 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index 3346428e..34bc585d 100644
--- a/src/client/tab.rs
+++ b/src/client/tab.rs
@@ -18,7 +18,7 @@ use std::{
collections::{BTreeMap, HashSet},
};
use std::{io::Write, sync::mpsc::channel};
-use zellij_tile::data::{colors, Event, InputMode, ModeInfo, Palette};
+use zellij_tile::data::{Event, InputMode, ModeInfo, Palette};
const CURSOR_HEIGHT_WIDTH_RATIO: usize = 4; // this is not accurate and kind of a magic number, TODO: look into this
diff --git a/src/common/mod.rs b/src/common/mod.rs
index af189915..0f896d1e 100644
--- a/src/common/mod.rs
+++ b/src/common/mod.rs
@@ -27,7 +27,6 @@ use crate::common::input::config::Config;
use crate::layout::Layout;
use crate::panes::PaneId;
use async_std::task_local;
-use colors_transform::{Color, Rgb};
use command_is_executing::CommandIsExecuting;
use directories_next::ProjectDirs;
use errors::{
@@ -45,10 +44,7 @@ use wasm_vm::PluginEnv;
use wasm_vm::{wasi_stdout, wasi_write_string, zellij_imports, PluginInstruction};
use wasmer::{ChainableNamedResolver, Instance, Module, Store, Value};
use wasmer_wasi::{Pipe, WasiState};
-use xrdb::Colors;
-use zellij_tile::data::{EventType, InputMode, ModeInfo, Palette, Theme};
-
-use self::utils::logging::debug_log_to_file;
+use zellij_tile::data::{EventType, InputMode, ModeInfo};
#[derive(Serialize, Deserialize, Debug)]
pub enum ApiCommand {
diff --git a/src/common/utils/shared.rs b/src/common/utils/shared.rs
index 4036a240..e559ebc1 100644
--- a/src/common/utils/shared.rs
+++ b/src/common/utils/shared.rs
@@ -6,7 +6,7 @@ use strip_ansi_escapes::strip;
use colors_transform::{Color, Rgb};
use xrdb::Colors;
-use zellij_tile::data::{Palette, Theme, PaletteSource};
+use zellij_tile::data::{Palette, PaletteSource, Theme};
fn ansi_len(s: &str) -> usize {
from_utf8(&strip(s.as_bytes()).unwrap())