diff options
| author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2021-12-10 02:53:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-09 18:53:46 +0100 |
| commit | d79060f69a99e73215533c1acbdff79af99af8f9 (patch) | |
| tree | 626603f9756db04a41218cb3da9b02e6069bab1f /zellij-tile-utils | |
| parent | chore: update example layout (#926) (diff) | |
| download | sl0ppij-d79060f69a99e73215533c1acbdff79af99af8f9.tar.gz sl0ppij-d79060f69a99e73215533c1acbdff79af99af8f9.tar.xz sl0ppij-d79060f69a99e73215533c1acbdff79af99af8f9.zip | |
feat(status-bar): add multiple tips (#848)
* feat(status-bar): add draft for multiple tips
* feat: add TIPS_MAP
* Simplified 'tip' function.
* chore: update file structure
* feat(status-bar): update method of Tip rendering
* feat(status-bar): change type of tip in State
* refactor(status-bar): related to random tip selection
* feat(status-bar): add simple local cache for testing
* feat(status-bar): add cache system for tip data
* Add mpadir to wasm for plugin to access zellij temp folder.
* refactor(status-bar): update cache and utils
* fix(status-bar): update file read error
* refactor(status-bar): update macros
* chore(status-bar): delete test data
* chore(status-bar): update missing fixes
* feat(status-bar): add detailed error
* style: make clippy
Diffstat (limited to 'zellij-tile-utils')
| -rw-r--r-- | zellij-tile-utils/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-tile-utils/src/lib.rs b/zellij-tile-utils/src/lib.rs index 3e2cdb2b..dba15f17 100644 --- a/zellij-tile-utils/src/lib.rs +++ b/zellij-tile-utils/src/lib.rs @@ -6,6 +6,16 @@ macro_rules! rgb { } #[macro_export] +macro_rules! palette_match { + ($palette_color:expr) => { + match $palette_color { + PaletteColor::Rgb((r, g, b)) => RGB(r, g, b), + PaletteColor::EightBit(color) => Fixed(color), + } + }; +} + +#[macro_export] macro_rules! style { ($fg:expr, $bg:expr) => { ansi_term::Style::new() |
