Theme: the cursor row is white, not the wordmark's teal
The row `❯` points at borrowed `brand` — so the app's identity ink and "the row you're on" were the same hue, and worse, teal/cyan is itself a node hue: a cyan-keyed node's name vanished into its own highlight. Give the highlight its own name. `cursor` is white on both platforms (slot 15 on the VT, the top of the bright bank, so the row's bold cannot promote it further and every dim-slot `not bold` pin inside a highlighted row goes on meaning what it meant). White sits outside the per-node spectrum, so it can never collide with an identity; it does share ink with `you`, which is the accepted cost — spans that set their own colour keep it over the base, so only unstyled text goes white, and only on the row already under the reader's eye. Every surface that draws its own cursor row follows: the select list and its reorder mode, the feed, chat, routes and actions on the node page, the composer, records, trace, tx, the walk, the paths screen, the prompt's suggestions. The composer's insertion-slot chip takes the same white — its docstring already tied it to "the colour the list cursor below it wears", and the chip ink was already picked to stay readable on white. Reverse-video chips keep `selected`: on the VT a reversed white lands on the light grey the F-key lane already owns, so a white default button would stop reading as the committing verb. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1b6a5cc1e7
commit
602bceea3b
18 files changed
+75
-49
No files matched your search
@@ -278,14 +278,14 @@ def test_livefeed_column_header_is_pinned_and_carries_no_sort_cue() -> None:
|
||||
|
||||
|
||||
def test_livefeed_highlight_uses_the_app_wide_cursor() -> None:
|
||||
"""The feed marks its row like every other list: a ``❯`` pointer over a brand row."""
|
||||
"""The feed marks its row like every other list: ``❯`` over a ``cursor``-white row."""
|
||||
screen = _screen(seed=[_obs(node="n0", age_s=1), _obs(node="n1", age_s=0)])
|
||||
screen.handle("down") # off the pin, onto the newest packet normally selected
|
||||
rows = _rows(screen, 100)
|
||||
assert rows[0].startswith("❯ ") and rows[1].startswith(" ")
|
||||
assert "▸" not in "\n".join(rows) # the old odd-one-out mark is gone
|
||||
raw = screen.render_body(100)[2]
|
||||
assert raw.startswith("\x1b[") # the pointer carries the brand style, not bare text
|
||||
assert raw.startswith("\x1b[") # the pointer carries the cursor style, not bare text
|
||||
|
||||
|
||||
def test_livefeed_opens_pinned_and_the_pin_rides_the_newest_packet() -> None:
|
||||
|
||||
@@ -113,7 +113,7 @@ def test_paths_screen_shows_unknown_relay_as_grey_mode_width_hash() -> None:
|
||||
row = next(ln for ln in lines if "e839f2" in _plain([ln]))
|
||||
assert "(e8)" not in _plain([row]) # the mode-width identity stands alone
|
||||
assert "38;2;148;163;184" in row # muted grey over the hash
|
||||
assert "38;2;94;234;212" not in row # never the brand highlight
|
||||
assert not _plain([row]).startswith("❯") # unselected, so no cursor highlight over it
|
||||
graph = _plain(lines).split("origin →")[0]
|
||||
assert "e8" in graph # the row's byte still cross-references the graph label
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ def test_the_cursor_is_a_hop_of_its_own_in_either_mode() -> None:
|
||||
chips = PathLine(hops, mode="powerline").text()
|
||||
assert chips.plain == f" a {POWERLINE_SEP} {CURSOR_GLYPH} {POWERLINE_SEP} b {POWERLINE_SEP}"
|
||||
slot = next(s for s in chips.spans if chips.plain[s.start : s.end] == CURSOR_GLYPH)
|
||||
assert str(slot.style).endswith(f"on {_style_hex('brand')}") # the brand accent fill
|
||||
assert str(slot.style).endswith(f"on {_style_hex('cursor')}") # the cursor-white fill
|
||||
|
||||
|
||||
def test_ellipsized_elides_the_middle_and_keeps_both_endpoints() -> None:
|
||||
|
||||
@@ -102,7 +102,7 @@ def test_unknown_node_grey_survives_a_selected_row() -> None:
|
||||
theme=MESH_THEME_16, width=20, file=StringIO(),
|
||||
force_terminal=True, color_system="standard", highlight=False,
|
||||
)
|
||||
for base in (None, "brand"): # unselected row, then the bold cursor row
|
||||
for base in (None, "cursor"): # unselected row, then the bold cursor row
|
||||
row = Text(" ")
|
||||
row.append("3d", style="node.unknown")
|
||||
if base:
|
||||
|
||||
Reference in new issue
Block a user