From a6ad8e6f157ef8800eb692e520fa52a1bd314e4e Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 2 Apr 2021 11:24:13 +0300 Subject: [PATCH] wip: sending the ModeInfo on initial plugin load --- default-tiles/status-bar/src/main.rs | 12 ++++++------ src/common/mod.rs | 5 ++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/default-tiles/status-bar/src/main.rs b/default-tiles/status-bar/src/main.rs index 337c4a82c..f3cd4dc4e 100644 --- a/default-tiles/status-bar/src/main.rs +++ b/default-tiles/status-bar/src/main.rs @@ -67,16 +67,16 @@ impl ZellijTile for State { println!( "{}\u{1b}[{};{};{}m\u{1b}[0K", first_line, - self.mode_info.palette.bg.0, - self.mode_info.palette.bg.1, - self.mode_info.palette.bg.2 + self.mode_info.palette.black.0, + self.mode_info.palette.black.1, + self.mode_info.palette.black.2 ); println!( "{}\u{1b}[{};{};{}m\u{1b}[0K", second_line, - self.mode_info.palette.bg.0, - self.mode_info.palette.bg.1, - self.mode_info.palette.bg.2 + self.mode_info.palette.fg.0, + self.mode_info.palette.fg.1, + self.mode_info.palette.fg.2 ); } } diff --git a/src/common/mod.rs b/src/common/mod.rs index 38f3b5338..bbb2242c7 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -321,7 +321,10 @@ pub fn start(mut os_input: Box, opts: CliArgs) { &full_screen_ws, os_input, max_panes, - ModeInfo::default(), + ModeInfo { + palette: colors, + ..ModeInfo::default() + }, InputMode::Normal, colors, );