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(",")),
|
.map((chunk) => chunk.fg?.toInts().join(",")),
|
||||||
)
|
)
|
||||||
expect(shimmerColors.size).toBeGreaterThan(1)
|
expect(shimmerColors.size).toBeGreaterThan(1)
|
||||||
|
expect([...shimmerColors].some((value) => value?.startsWith("239,142,48"))).toBe(true)
|
||||||
|
|
||||||
app.accept({
|
app.accept({
|
||||||
event: "message",
|
event: "message",
|
||||||
|
|||||||
+1
-1
@@ -256,7 +256,7 @@ function shimmerStatus(
|
|||||||
): StyledText {
|
): StyledText {
|
||||||
const chars = Array.from(label)
|
const chars = Array.from(label)
|
||||||
const base = RGBA.fromHex(palette.muted).toInts()
|
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
|
// Sweep immediately, then leave a quiet pause before repeating. The text
|
||||||
// keeps a constant width throughout, so the footer never jitters.
|
// keeps a constant width throughout, so the footer never jitters.
|
||||||
const position = frame % (chars.length + SHIMMER_PAUSE)
|
const position = frame % (chars.length + SHIMMER_PAUSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user