style(tui): use brand accent for active status

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent 4391bbf4da
commit 2f7355426d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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",
+1 -1
View File
@@ -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)