diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-09 16:44:05 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-10 16:03:06 +0200 |
| commit | 088bcf3dd8aab4e522cface84c0a260b5b37a87c (patch) | |
| tree | 5ed94988521c3caa2eefc00277569345e0f0d8f6 /default-plugins/status-bar/src/main.rs | |
| parent | README: shortening + add explanation (#470) (diff) | |
| download | sl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.tar.gz sl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.tar.xz sl0ppij-088bcf3dd8aab4e522cface84c0a260b5b37a87c.zip | |
Add Option for Simplified Layout
* the simplified layout omits the Nerdfonts characters that are not
found in every Fontset
* add an optional config option to opt into the simplified ui
`simplified_ui: bool`
* add a config flag that allows opting into the simplified ui
`zellij options --simplified-ui`
* move the `clean` flag to the `setup` subcommand
Diffstat (limited to 'default-plugins/status-bar/src/main.rs')
| -rw-r--r-- | default-plugins/status-bar/src/main.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/default-plugins/status-bar/src/main.rs b/default-plugins/status-bar/src/main.rs index e1a79d49..bb56c279 100644 --- a/default-plugins/status-bar/src/main.rs +++ b/default-plugins/status-bar/src/main.rs @@ -140,9 +140,15 @@ impl ZellijPlugin for State { } fn render(&mut self, _rows: usize, cols: usize) { + let separator = if !self.mode_info.capabilities.arrow_fonts { + ARROW_SEPARATOR + } else { + &"" + }; + let colored_elements = color_elements(self.mode_info.palette); - let superkey = superkey(colored_elements); - let ctrl_keys = ctrl_keys(&self.mode_info, cols - superkey.len); + let superkey = superkey(colored_elements, separator); + let ctrl_keys = ctrl_keys(&self.mode_info, cols - superkey.len, separator); let first_line = format!("{}{}", superkey, ctrl_keys); let second_line = keybinds(&self.mode_info, cols); |
