diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-10-22 18:32:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-22 18:32:44 +0200 |
| commit | 61908a7cfe4f617dfc77379bcfc395409e73cd85 (patch) | |
| tree | 577c2dbe72ace75c2dc6f15c1c0e2e32670315dc | |
| parent | docs(changelog): rebind keys UI (diff) | |
| download | sl0ppij-61908a7cfe4f617dfc77379bcfc395409e73cd85.tar.gz sl0ppij-61908a7cfe4f617dfc77379bcfc395409e73cd85.tar.xz sl0ppij-61908a7cfe4f617dfc77379bcfc395409e73cd85.zip | |
feat(ui): bring back fullscreen indication (#3688)
* feat(ui): bring back fullscreen indication
* fix e2e tests
| -rw-r--r-- | default-plugins/compact-bar/src/tab.rs | 7 | ||||
| -rw-r--r-- | default-plugins/tab-bar/src/tab.rs | 6 | ||||
| -rw-r--r-- | src/tests/e2e/snapshots/zellij__tests__e2e__cases__toggle_pane_fullscreen.snap | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/default-plugins/compact-bar/src/tab.rs b/default-plugins/compact-bar/src/tab.rs index 1aa13d4c..ec711cc9 100644 --- a/default-plugins/compact-bar/src/tab.rs +++ b/default-plugins/compact-bar/src/tab.rs @@ -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 { diff --git a/default-plugins/tab-bar/src/tab.rs b/default-plugins/tab-bar/src/tab.rs index 5044ac87..0c66d25a 100644 --- a/default-plugins/tab-bar/src/tab.rs +++ b/default-plugins/tab-bar/src/tab.rs @@ -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 { diff --git a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__toggle_pane_fullscreen.snap b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__toggle_pane_fullscreen.snap index a81f9814..58371d4e 100644 --- a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__toggle_pane_fullscreen.snap +++ b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__toggle_pane_fullscreen.snap @@ -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 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │$ █ │ │ │ |
