Skip to content

Commit

Permalink
feat(ui): bring back fullscreen indication (zellij-org#3688)
Browse files Browse the repository at this point in the history
* feat(ui): bring back fullscreen indication

* fix e2e tests
  • Loading branch information
imsnif authored and Tomcat-42 committed Nov 9, 2024
1 parent 1bc578d commit fe69341
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions default-plugins/compact-bar/src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 4 additions & 2 deletions default-plugins/tab-bar/src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
$ █ │
│ │
Expand Down

0 comments on commit fe69341

Please sign in to comment.