diff --git a/CLAUDE.md b/CLAUDE.md index 76a91ab..e47633f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -770,8 +770,8 @@ branch on the platform per frame, and never `from meshterm.platforms import PLAT - The borderless title bar (`frame._title_bar`) is this platform's whole panel border: `↑↓ ──── Title ─────── Esc back`. The **clip arrows lead the row and are always both drawn** — colour reads the scroll (lit like the title, `title.border`, where that - direction has more, `faint` where it doesn't; the `border` grey sits too close to - `faint` to say it), the same live/dim language the lane draws one row below. A + direction has more, `faint` where it doesn't; a `border`-grey arrow once sat too close + to `faint` to say it), the same live/dim language the lane draws one row below. A pair that appeared and vanished, half of it a blank cell, asked the reader to compare the row against a memory of itself; fixed furniture means the bar never changes width as the body scrolls either. diff --git a/meshterm/ui/theme.py b/meshterm/ui/theme.py index 778cb3f..155ce01 100644 --- a/meshterm/ui/theme.py +++ b/meshterm/ui/theme.py @@ -34,9 +34,9 @@ MESH_THEME = Theme( # ``muted``, and not a hue. A border is chrome, and a blue border was one more colour # on each screen that had no meaning (JP, 2026-10-14). The two caution tiers keep # their colours, because there the colour is the meaning: ``warn`` (amber) and - # ``err`` (red). It is darker than ``muted`` (JP chose it on a ladder of greys), so the - # frame stays behind the text that it holds. - "border": "#7c7c7c", + # ``err`` (red). It is darker than ``muted``, so the frame stays behind the text that + # it holds. JP chose it between #a2a2a2 (too light) and #7c7c7c (too dark). + "border": "#8f8f8f", # The only reverse-video chip: the committing button of a dialog, the Abort of a # running action, and the insertion slot of the composer where no chip fill carries # it. It is a *grey* block, and the ink of the page shows through it. It was cyan @@ -355,9 +355,9 @@ MESH_THEME_16 = Theme( { "brand": "bold color(14)", "accent": "bold color(12)", - # The border: the dark grey, which is the nearest slot to the grey of the regular - # theme. Slot 8 is already in the bright bank, so bold changes nothing. - "border": "color(8)", + # The border: the light grey, which is the nearest slot to the grey of the regular + # theme. It is ``not bold`` because 7 is a dim slot (refer to the bold rule). + "border": "not bold color(7)", # Slot 7 is the only grey that the VT can put *behind* a reverse. Backgrounds stop at # the dim bank, and the dark grey of slot 8 becomes black there. It is the same # light grey that the F-key lane already uses to fill its chips. This is the diff --git a/meshterm/ui/tui/frame.py b/meshterm/ui/tui/frame.py index 5e37ef1..f2f5d8b 100644 --- a/meshterm/ui/tui/frame.py +++ b/meshterm/ui/tui/frame.py @@ -310,9 +310,9 @@ def _title_bar( showed, a blank cell stood in for the other.) Thus the pair is fixed at the left edge, where the eye starts, and **colour** gives the information. An arrow whose direction has more content is lit as the title is (``title.border``). An arrow with nothing in - its direction becomes ``faint``. The live arrow once had the grey of the border. That - grey is now almost the grey of ``faint`` (JP chose a darker border), and the two arrows - looked the same. This is the same + its direction becomes ``faint``. The live arrow once had the grey of the border. When + the border was #7c7c7c, that grey was almost the grey of ``faint``, and the two arrows + looked the same. A lit arrow is clear at each border grey. This is the same live/dim language that the F-key lane draws one row below (a dim chip keeps its label and loses its fill). The two are the only indicators of the platform. diff --git a/tests/test_tui.py b/tests/test_tui.py index 044cf3c..8ea3623 100644 --- a/tests/test_tui.py +++ b/tests/test_tui.py @@ -1309,7 +1309,7 @@ def _cell_color(line: str, idx: int) -> tuple[int, int, int]: return (triplet.red, triplet.green, triplet.blue) -_BORDER = (124, 124, 124) # The border grey of the theme, #7c7c7c. +_BORDER = (143, 143, 143) # The border grey of the theme, #8f8f8f. def _find(plain: str, glyphs: frozenset[str]) -> int: