diff options
author | denis <denismaximov98@gmail.com> | 2021-05-01 14:44:43 +0300 |
---|---|---|
committer | denis <denismaximov98@gmail.com> | 2021-05-01 14:44:43 +0300 |
commit | f85822972ad6ed19f94bc1b30a7120bcd4b091e0 (patch) | |
tree | 7b65e9da4d56a9c87ab5829a6389ac28133cf940 /default-plugins/status-bar | |
parent | eabecde90b1617ce4c29be9d5af3f52ccb67e45f (diff) |
chore: cleanup, fix: the tests finally pass
Diffstat (limited to 'default-plugins/status-bar')
-rw-r--r-- | default-plugins/status-bar/src/main.rs | 13 | ||||
-rw-r--r-- | default-plugins/status-bar/src/second_line.rs | 20 |
2 files changed, 16 insertions, 17 deletions
diff --git a/default-plugins/status-bar/src/main.rs b/default-plugins/status-bar/src/main.rs index efa193985..4914efdb0 100644 --- a/default-plugins/status-bar/src/main.rs +++ b/default-plugins/status-bar/src/main.rs @@ -119,19 +119,6 @@ impl ColoredElements { } } -macro_rules! rgb { - ($a:expr) => { - RGB($a.0, $a.1, $a.2) - }; -} -macro_rules! style { - ($a:expr, $b:expr) => { - Style::new() - .fg(RGB($a.0, $a.1, $a.2)) - .on(RGB($b.0, $b.1, $b.2)) - }; -} - // I really hate this, but I can't come up with a good solution for this, // we need different colors from palette for the default theme // plus here we can add new sources in the future, like Theme diff --git a/default-plugins/status-bar/src/second_line.rs b/default-plugins/status-bar/src/second_line.rs index 73c4d7650..6982c4103 100644 --- a/default-plugins/status-bar/src/second_line.rs +++ b/default-plugins/status-bar/src/second_line.rs @@ -223,13 +223,25 @@ fn quicknav_short(palette: Palette) -> LinePart { part: format!( "{}{}{}{}{}{}{}{}", text_first_part, - Style::new().fg(RGB(palette.orange.0, palette.orange.1, palette.orange.2)).bold().paint(alt), + Style::new() + .fg(RGB(palette.orange.0, palette.orange.1, palette.orange.2)) + .bold() + .paint(alt), text_second_part, - Style::new().fg(RGB(palette.green.0, palette.green.1, palette.green.2)).bold().paint(new_pane_shortcut), + Style::new() + .fg(RGB(palette.green.0, palette.green.1, palette.green.2)) + .bold() + .paint(new_pane_shortcut), text_third_part, - Style::new().fg(RGB(palette.green.0, palette.green.1, palette.green.2)).bold().paint(brackets_navigation), + Style::new() + .fg(RGB(palette.green.0, palette.green.1, palette.green.2)) + .bold() + .paint(brackets_navigation), text_fifth_part, - Style::new().fg(RGB(palette.green.0, palette.green.1, palette.green.2)).bold().paint(hjkl_navigation), + Style::new() + .fg(RGB(palette.green.0, palette.green.1, palette.green.2)) + .bold() + .paint(hjkl_navigation), ), len, } |