diff options
| author | user <user@clank> | 2026-08-15 00:20:34 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-15 00:20:34 +0200 |
| commit | 7f38aa2205ff5823693565593d8340c5f199d2fe (patch) | |
| tree | 705bb42bc8dc207d5d11159018b2fa1cec783dcd /src/expr.c | |
| parent | contrib: the shadertoy presets, usable in sl0ppty (diff) | |
| download | slosh-7f38aa2205ff5823693565593d8340c5f199d2fe.tar.gz slosh-7f38aa2205ff5823693565593d8340c5f199d2fe.tar.xz slosh-7f38aa2205ff5823693565593d8340c5f199d2fe.zip | |
sl0ppty: colour the states that mean a pane is not live
The shader machinery has been able to do this since it existed, and shipped
an opinion about exactly one state. Now it ships three, and the line between
those and the rest is the point:
a pane that is *not live* gets a default -- dead, suspended, scrolled. In
all three the cells are showing something other than a running program's
present: output from something that has exited, a pane that never started,
or the past. None of that is discoverable by looking unless something says
so, which is the whole argument for the feature.
a pane that is merely *not the one you are in* does not -- unfocused, and
one being dragged. That is ambient contrast, which is a taste, and a taste
shipped as a default is how a tool gets a reputation for fighting you. It
is one line of config away for anyone who disagrees, and there is now a
test asserting we have not quietly changed our minds.
So: suspended is greyed and dimmed (inert, still legible -- its contents are
the command it is waiting to run), and scrollback takes a 9% wash of the
scrollback indicator's own colour, so a theme moves the indicator and the
wash together. Checked against phosphor, amber and paper: each gets its own
hue rather than a hardcoded one.
The other half is the gap this leaves. A collapsed header never reaches the
shader pass -- a header is chrome and shaders colour contents (D13) -- so
collapsing a tab used to hide precisely the facts the colour exists to show.
The header now carries them in words, in the same order the status line ranks
them: `exited: status 3`, `not started`, `▲ 12`.
tests/test_states.py asserts the line in both directions, including that an
unfocused pane is left exactly as it was, and that a flattened tab still says
which of its panes never started.
Diffstat (limited to 'src/expr.c')
0 files changed, 0 insertions, 0 deletions
