feat(ui): bring back fullscreen indication (#3688)

* feat(ui): bring back fullscreen indication

* fix e2e tests
This commit is contained in:
Aram Drevekenin 2024-10-22 18:32:44 +02:00 committed by GitHub
parent 20f114d02c
commit 61908a7cfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View file

@ -89,8 +89,11 @@ pub fn tab_style(
capabilities: PluginCapabilities,
) -> LinePart {
let separator = tab_separator(capabilities);
if tab.is_sync_panes_active {
tabname.push_str(" (Sync)");
if tab.is_fullscreen_active {
tabname.push_str(" (FULLSCREEN)");
} else if tab.is_sync_panes_active {
tabname.push_str(" (SYNC)");
}
// we only color alternate tabs differently if we can't use the arrow fonts to separate them
if !capabilities.arrow_fonts {

View file

@ -89,8 +89,10 @@ pub fn tab_style(
) -> LinePart {
let separator = tab_separator(capabilities);
if tab.is_sync_panes_active {
tabname.push_str(" (Sync)");
if tab.is_fullscreen_active {
tabname.push_str(" (FULLSCREEN)");
} else if tab.is_sync_panes_active {
tabname.push_str(" (SYNC)");
}
// we only color alternate tabs differently if we can't use the arrow fonts to separate them
if !capabilities.arrow_fonts {

View file

@ -3,7 +3,7 @@ source: src/tests/e2e/cases.rs
assertion_line: 386
expression: last_snapshot
---
Zellij (e2e-test)  Tab #1 
Zellij (e2e-test)  Tab #1 (FULLSCREEN)
┌ Pane #2 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│$ █ │
│ │