From 5fac7b25665fea8dc27bfb5edf9d2f7911549c7a Mon Sep 17 00:00:00 2001 From: Jeremy Rose <172423086+nornagon-openai@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:44:18 -0700 Subject: [PATCH] tweak thresholds for shimmer on non-true-color terminals (#2533) https://github.com/user-attachments/assets/dc7bf820-eeec-4b78-aba9-231e1337921c --- codex-rs/tui/src/shimmer.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/shimmer.rs b/codex-rs/tui/src/shimmer.rs index 24373cee..b5752fc3 100644 --- a/codex-rs/tui/src/shimmer.rs +++ b/codex-rs/tui/src/shimmer.rs @@ -63,9 +63,11 @@ pub(crate) fn shimmer_spans(text: &str) -> Vec> { } fn color_for_level(level: u8) -> Style { - if level < 144 { + // Tune thresholds so the edges of the shimmer band appear dim + // in fallback mode (no true color support). + if level < 160 { Style::default().add_modifier(Modifier::DIM) - } else if level < 208 { + } else if level < 224 { Style::default() } else { Style::default().add_modifier(Modifier::BOLD)