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 | |
| parent | fix: don't have new on ColoredElements anymore, removed default for palette i... (diff) | |
| download | sl0ppij-56cf44627596edab8959c18df655caf3acd705f1.tar.gz sl0ppij-56cf44627596edab8959c18df655caf3acd705f1.tar.xz sl0ppij-56cf44627596edab8959c18df655caf3acd705f1.zip | |
chore: added zellij-tile-extra, moved macros from zellij-tile
Diffstat (limited to 'default-plugins')
| -rw-r--r-- | default-plugins/status-bar/Cargo.toml | 1 | ||||
| -rw-r--r-- | default-plugins/status-bar/src/main.rs | 1 | ||||
| -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 |
5 files changed, 5 insertions, 0 deletions
diff --git a/default-plugins/status-bar/Cargo.toml b/default-plugins/status-bar/Cargo.toml index c94d8feb..8c6cc85d 100644 --- a/default-plugins/status-bar/Cargo.toml +++ b/default-plugins/status-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/status-bar/src/main.rs b/default-plugins/status-bar/src/main.rs index 8b13e763..93898cea 100644 --- a/default-plugins/status-bar/src/main.rs +++ b/default-plugins/status-bar/src/main.rs @@ -5,6 +5,7 @@ use ansi_term::Style; use std::fmt::{Display, Error, Formatter}; use zellij_tile::prelude::*; +use zellij_tile_extra::*; use first_line::{ctrl_keys, superkey}; use second_line::keybinds; diff --git a/default-plugins/tab-bar/Cargo.toml b/default-plugins/tab-bar/Cargo.toml index 59b95b4b..d27144dd 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 ae287d2e..98ad5166 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 cbe74446..ab110634 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); |
