fix(desktop): the finished-session dot follows the theme
Every other dot in the set reads a token; unread was a hardcoded `emerald-500`. On a blue theme that left eight green marks down the sidebar fighting the palette around them. It now paints `--ui-success`, a success green rotated part of the way toward the accent along the shortest hue arc. Partway rather than all the way, because landing on the accent would make "finished" and "running" the same colour. The default costs nothing by construction: emerald sits at 162 degrees and GitHub green at 148, so a quarter rotation moves the dot about three degrees. The work only happens when the accent is genuinely far away, which is the case that was clashing.
This commit is contained in:
committed by
brooklyn!
parent
6dbd7d11d3
commit
38f46504fd
@@ -59,10 +59,13 @@ const DOT_VARIANTS: Record<SessionDotState, DotVariant> = {
|
||||
role: 'status',
|
||||
title: r => r.backgroundRunning
|
||||
},
|
||||
// Emerald — the turn finished while the user was looking elsewhere.
|
||||
// Emerald — the turn finished while the user was looking elsewhere. The
|
||||
// color is theme-derived (`--ui-success`, a success green rotated toward the
|
||||
// accent) so eight finished dots can't sit in the sidebar fighting a palette
|
||||
// they don't belong to. Under a green accent it stays emerald.
|
||||
unread: {
|
||||
ariaLabel: r => r.finishedUnread,
|
||||
className: `${DOT_BASE} bg-emerald-500`,
|
||||
className: `${DOT_BASE} bg-(--ui-success)`,
|
||||
role: 'status',
|
||||
title: r => r.finishedUnread
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user