From 2f7355426d64c71ce39517fd43bedaa3dea502de Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sun, 16 Aug 2026 18:07:20 +0800 Subject: [PATCH] style(tui): use brand accent for active status --- tui/src/app.test.ts | 1 + tui/src/app.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tui/src/app.test.ts b/tui/src/app.test.ts index e15b7d052..7a0163984 100644 --- a/tui/src/app.test.ts +++ b/tui/src/app.test.ts @@ -1270,6 +1270,7 @@ describe("NanobotTui layout", () => { .map((chunk) => chunk.fg?.toInts().join(",")), ) expect(shimmerColors.size).toBeGreaterThan(1) + expect([...shimmerColors].some((value) => value?.startsWith("239,142,48"))).toBe(true) app.accept({ event: "message", diff --git a/tui/src/app.ts b/tui/src/app.ts index fa143edd8..7ff8f2d29 100644 --- a/tui/src/app.ts +++ b/tui/src/app.ts @@ -256,7 +256,7 @@ function shimmerStatus( ): StyledText { const chars = Array.from(label) const base = RGBA.fromHex(palette.muted).toInts() - const highlight = RGBA.fromHex(palette.text).toInts() + const highlight = RGBA.fromHex(palette.accent).toInts() // Sweep immediately, then leave a quiet pause before repeating. The text // keeps a constant width throughout, so the footer never jitters. const position = frame % (chars.length + SHIMMER_PAUSE)