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 /default-plugins | |
| 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
Diffstat (limited to 'default-plugins')
| -rw-r--r-- | default-plugins/compact-bar/src/tab.rs | 7 | ||||
| -rw-r--r-- | default-plugins/tab-bar/src/tab.rs | 6 |
2 files changed, 9 insertions, 4 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 { |
