diff --git a/CLAUDE.md b/CLAUDE.md index ff75a02..f6837ec 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -269,8 +269,9 @@ deliberately, one at a time, and say why in the code. screen's results were once windowed under its actions: the page came out exactly the screen's height, so ↓ on the last action did nothing while `↓ n more` sat under it. - Grouped-list section headings use `section_heading("Label")` → `── Label ──` in the - bold `heading` style — the frame title's colour, `title.border` (JP, 2026-10-15) — - never the `border` grey: a rule in the border's colour reads as + bold `heading` style — a creamy yellow, `#f5e5a8`, so a heading pops (JP, 2026-10-15; + pale enough to stay clear of `warn`'s amber; slot 11 on the VT) — never the `border` + grey: a rule in the border's colour reads as part of the frame. A chat's day divider wears the same dress. That is also what makes a heading *sticky* (it pins to the top row while its section scrolls, and the ^PgUp/^PgDn jumps step by it), so build them through it — a hand-rolled `Separator` is no landmark. Prose written *directly under* a heading (a description of diff --git a/meshterm/ui/theme.py b/meshterm/ui/theme.py index f8ca044..0c1e699 100644 --- a/meshterm/ui/theme.py +++ b/meshterm/ui/theme.py @@ -146,11 +146,13 @@ MESH_THEME = Theme( # age of a node). They must stay behind the real, muted values around them. "faint": "#737373", # The ``── Label ──`` of a section heading: in a grouped list, and the day divider - # of a chat. It has the colour of the title of the frame (``title.border``, JP, - # 2026-10-15). It was a dark grey before. It is never the grey of the border itself: - # when the rule of a heading had the colour of the border, it looked like part of - # the frame that it is in (JP, 2026-10-02). - "heading": "bold #d4d4d4", + # of a chat. It is a creamy yellow, so that a heading is easy to see (JP, + # 2026-10-15). It was a dark grey, and then the colour of the title of the frame. + # It is pale and has little chroma, so it is not the amber of ``warn`` (an OKLab + # distance of 0.12) or of ``title.warn`` (0.085). It is never the grey of the + # border: when the rule of a heading had the colour of the border, it looked like + # part of the frame that it is in (JP, 2026-10-02). + "heading": "bold #f5e5a8", # A further step darker than ``faint``, for the unlit track of a meter (the SNR # quality bars). It is dark enough to look like a background, and not like a # dimmer version of the reading. @@ -261,10 +263,10 @@ MESH_THEME = Theme( #: the span completely (a light-grey unknown hash becomes the white "you", and a brown #: highway becomes yellow). Thus each style for a dim slot is explicitly ``not bold`` #: (the colour is necessary, so keep it) or explicitly ``bold`` (the promotion is the -#: intent, and only ``title.muted``, ``title.border``, and ``heading`` have it). A -#: style is never silent. Never use bold on 5 and 6, because *different* meanings use -#: their partners here (5 purple = the chip fill under a pink name, 13 pink = a node -#: hue. 6 cyan = hint.brand, 14 bright cyan = brand). +#: intent, and only ``title.muted`` and ``title.border`` have it). A style is never +#: silent. Never use bold on 5 and 6, because *different* meanings use their partners +#: here (5 purple = the chip fill under a pink name, 13 pink = a node hue. 6 cyan = +#: hint.brand, 14 bright cyan = brand). #: * Backgrounds can use only slots 0–7 (SGR 40–47). #: * The six *chromatic bright* slots (9-14) are the place where the spectrum of node #: names lands. They are the console rendering of the hue wheel that comes from the key @@ -387,9 +389,8 @@ MESH_THEME_16 = Theme( # Light grey, a step *above* the dark grey of muted. The console has only two greys, # and the hash of an unidentified node is content, not chrome. "node.unknown": "not bold color(7)", - # Two of the promotions on purpose (``heading`` is the third): bold moves slot 7 to - # 15. These titles need a colour that is almost white (the regular theme writes it - # as #d4d4d4). + # The two promotions on purpose: bold moves slot 7 to 15. These titles need a colour + # that is almost white (the regular theme writes it as #d4d4d4). "title.border": "bold color(7)", "title.muted": "bold color(7)", "title.warn": "bold color(11)", @@ -403,8 +404,10 @@ MESH_THEME_16 = Theme( "hint.ok": "not bold color(2)", "hint.brand": "not bold color(6)", "faint": "color(8)", - # The colour of the title of the frame (``title.border``): bold moves slot 7 to 15. - "heading": "bold color(7)", + # The creamy yellow of the regular theme, at the resolution of the console: its + # nearest slot is the bright yellow, which ``warn`` also uses. Slot 11 is already in + # the bright bank, so bold changes nothing. + "heading": "bold color(11)", "track": "color(8)", "snr.good": "bold color(10)", "snr.ok": "bold color(11)",