From 41d14b20cbb9557395bf4ff28755c854770997b5 Mon Sep 17 00:00:00 2001 From: Edwin Date: Tue, 21 Jul 2026 19:07:12 -0700 Subject: [PATCH] fix(tui): improve empty context gauge contrast --- crates/cli/src/ui.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/ui.rs b/crates/cli/src/ui.rs index 455639d3..acb7b42b 100644 --- a/crates/cli/src/ui.rs +++ b/crates/cli/src/ui.rs @@ -8025,9 +8025,12 @@ fn render_modeline(f: &mut Frame, area: Rect, app: &mut App) { ch.to_string(), Style::default() .bg(background) - .fg(if bar_cell { + .fg(if bar_cell && index - 1 < filled_cells { app.theme.modeline_bg } else { + // Empty cells retain the normal modeline foreground + // against the dim bar, rather than the low-contrast + // inverse color used over filled cells. app.theme.modeline_fg }) .add_modifier(if hovered && bar_cell {