wip: sending the ModeInfo on initial plugin load

This commit is contained in:
denis 2021-04-02 11:24:13 +03:00
parent b8ee02d4bb
commit a6ad8e6f15
2 changed files with 10 additions and 7 deletions

View File

@ -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
);
}
}

View File

@ -321,7 +321,10 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
&full_screen_ws,
os_input,
max_panes,
ModeInfo::default(),
ModeInfo {
palette: colors,
..ModeInfo::default()
},
InputMode::Normal,
colors,
);