diff options
| author | Eric Yue <jiacheng.yue@foxmail.com> | 2026-09-20 22:33:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-20 16:33:50 +0200 |
| commit | 74505861e40c48e070e711bd4de662a17b0939b3 (patch) | |
| tree | 736ad65c9dba956554529b4169bc54827dc342e3 /src/client/shell/endpoint_sidebar.rs | |
| parent | c00a62dda169beb472fc2f386d0f673ca100dfa4 (diff) | |
fix: keep workspace navigation visible in terminal theme (#4408)
* fix: keep workspace navigation visible in terminal theme
refs #4300
* fix: clear workspace highlight on directional pane focus
refs #4300
---------
Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/client/shell/endpoint_sidebar.rs')
| -rw-r--r-- | src/client/shell/endpoint_sidebar.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/client/shell/endpoint_sidebar.rs b/src/client/shell/endpoint_sidebar.rs index 34d2ccdc..c4f701c3 100644 --- a/src/client/shell/endpoint_sidebar.rs +++ b/src/client/shell/endpoint_sidebar.rs @@ -128,7 +128,13 @@ pub(super) fn render_collapsed( if selected { buffer.set_style(rect, Style::default().bg(selection_background)); } else if focused { - buffer.set_style(rect, Style::default().bg(palette.active_row_bg)); + buffer.set_style( + rect, + Style::default().bg(super::sidebar::workspace_active_background( + palette, + state.selected_workspace_id.is_some(), + )), + ); } let stale = endpoint.status != ClientEndpointStatus::Online; let number = format!(" {}", workspace.number); @@ -449,19 +455,16 @@ pub(super) fn render_expanded( super::sidebar::render_workspace_rows( buffer, nested, - workspace, status, config.status_indicators, entry, tokens, - endpoint_active, + endpoint_active && workspace.focused, selected, + state.selected_workspace_id.is_some(), false, palette, ); - if selected && palette.selection_bg == ratatui::style::Color::Reset { - buffer.set_style(nested, Style::default().bg(palette.active_row_bg)); - } if endpoint.status != ClientEndpointStatus::Online { buffer.set_style( rect, |
