diff options
author | denis <denismaximov98@gmail.com> | 2021-05-02 12:57:48 +0300 |
---|---|---|
committer | denis <denismaximov98@gmail.com> | 2021-05-02 12:57:48 +0300 |
commit | 56cf44627596edab8959c18df655caf3acd705f1 (patch) | |
tree | 507dd906650262957effcee55ec4ce7326b70557 /default-plugins/tab-bar | |
parent | d48cc815368c6424977f3c6908e81e213fa260e1 (diff) |
chore: added zellij-tile-extra, moved macros from zellij-tile
Diffstat (limited to 'default-plugins/tab-bar')
-rw-r--r-- | default-plugins/tab-bar/Cargo.toml | 1 | ||||
-rw-r--r-- | default-plugins/tab-bar/src/line.rs | 1 | ||||
-rw-r--r-- | default-plugins/tab-bar/src/tab.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/default-plugins/tab-bar/Cargo.toml b/default-plugins/tab-bar/Cargo.toml index 59b95b4bf..d27144ddc 100644 --- a/default-plugins/tab-bar/Cargo.toml +++ b/default-plugins/tab-bar/Cargo.toml @@ -9,3 +9,4 @@ license = "MIT" colored = "2" ansi_term = "0.12" zellij-tile = { path = "../../zellij-tile" } +zellij-tile-extra = { path = "../../zellij-tile-extra" }
\ No newline at end of file diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index ae287d2e8..98ad51668 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -2,6 +2,7 @@ use ansi_term::ANSIStrings; use crate::{LinePart, ARROW_SEPARATOR}; use zellij_tile::prelude::*; +use zellij_tile_extra::*; fn get_current_title_len(current_title: &[LinePart]) -> usize { current_title diff --git a/default-plugins/tab-bar/src/tab.rs b/default-plugins/tab-bar/src/tab.rs index cbe744466..ab110634a 100644 --- a/default-plugins/tab-bar/src/tab.rs +++ b/default-plugins/tab-bar/src/tab.rs @@ -1,6 +1,7 @@ use crate::{LinePart, ARROW_SEPARATOR}; use ansi_term::ANSIStrings; use zellij_tile::prelude::*; +use zellij_tile_extra::*; pub fn active_tab(text: String, palette: Palette) -> LinePart { let left_separator = style!(palette.bg, palette.green).paint(ARROW_SEPARATOR); |