diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-04 17:26:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-04 17:26:30 +0300 |
| commit | cc9fa47540d8525f24fe46a10f759ca40090a6e0 (patch) | |
| tree | ef6979a7d5168952dc2de8d7a68e42b3ad69c45b /src/ui/navigator.rs | |
| parent | 4473e391962c68d59bd980fa98a44f3397d9931d (diff) | |
feat(ui): add distinct status indicators (#2282)
refs #2260
Diffstat (limited to 'src/ui/navigator.rs')
| -rw-r--r-- | src/ui/navigator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/navigator.rs b/src/ui/navigator.rs index 9269394b..cb2f235e 100644 --- a/src/ui/navigator.rs +++ b/src/ui/navigator.rs @@ -8,7 +8,7 @@ use ratatui::{ use super::{ scrollbar::{render_scrollbar, should_show_scrollbar}, - status::{state_dot, state_label_color}, + status::{state_icon, state_label_color}, text::{display_width_u16, middle_elide, truncate_end}, widgets::{panel_contrast_fg, render_panel_shell}, }; @@ -113,7 +113,7 @@ fn push_state_chip( label: &'static str, app: &AppState, ) { - let (icon, icon_style) = state_dot(state, seen, &app.palette); + let (icon, icon_style) = state_icon(state, seen, app.status_indicators, &app.palette); spans.push(Span::styled(icon, icon_style.add_modifier(Modifier::BOLD))); spans.push(Span::raw(" ")); spans.push(Span::styled( @@ -201,7 +201,7 @@ fn render_row( } else { Style::default().fg(p.subtext0).bg(p.panel_bg) }; - let (status_icon, status_style) = state_dot(row.status, row.seen, p); + let (status_icon, status_style) = state_icon(row.status, row.seen, app.status_indicators, p); let status_style = if selected { base_style.add_modifier(Modifier::BOLD) } else if context_only { |
