mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 08:13:11 +03:00
style(tui): use brand accent for active status
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user