diff options
| author | user <user@clank> | 2026-08-14 19:14:29 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-14 19:14:29 +0200 |
| commit | e75eecfc64adbf5fae0f4ddc3eca1dae41028fa2 (patch) | |
| tree | 21b114e4b5a517b9762e25a3057504b69c9e38c8 /README.md | |
| parent | sl0ppty: give the scroll arrow room to breathe (diff) | |
| download | slosh-e75eecfc64adbf5fae0f4ddc3eca1dae41028fa2.tar.gz slosh-e75eecfc64adbf5fae0f4ddc3eca1dae41028fa2.tar.xz slosh-e75eecfc64adbf5fae0f4ddc3eca1dae41028fa2.zip | |
sl0ppty: one theme name per decision, and a tab you can see
The count, since it was asked: no hardcoded colours at all in the drawing code.
Every colour already came from the config. The problem was the other way round
— six names were serving about thirty decisions, so the names were the thing
that was hardcoded. frame_focus was the focused frame *and* the split guide
*and* the resize handle *and* the tab hover *and* a collapsed row under the
pointer. Recolouring one recoloured five.
There are thirty-five entries now, one per surface, each documented in
config.kdl by being its own default. Several still share a value: that is a
statement that they look right together, not that they are the same thing, and
the difference only matters the first time someone wants to change one of them.
The tab you are in is filled rather than merely bold, which was the ask. Bold
alone is easy to miss on a strip of short labels, and it was the only thing
distinguishing the tab you were in from the four you were not.
That immediately raised a question the old scheme could not ask: what does
hovering the active tab look like, when it already has the strongest treatment
on the strip? Keeping its fill and brightening its text, because it is still
the tab you are in and clicking it does nothing. My first version gave it no
hover at all, which reads as the hover being broken rather than as the click
being pointless.
Three surfaces were still borrowing a name that did not describe them: the
in-place rename editor was wearing the button colours, a pane's OSC status text
and a suspended pane's hint were wearing the frame's. They have their own now.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -130,6 +130,12 @@ tab, the focused pane's purpose or title, which of the tab's panes it is started yet. Either can be turned off (`status_bar`, `status_line`), and the panes get the row back. +Every colour the compositor draws has its own name in `theme` — the split +guide, the resize handle, a drop target, the scroll indicator, the rows of a +collapsed tab, each state of a tab, the status line, the finder, toasts, the +rename editor. Several share a default, which says they look right together +rather than that they are the same thing. + Configuration is [`config/config.kdl`](config/config.kdl), which documents every setting by being the defaults. Copy it to `~/.config/sl0ppty/config.kdl`. |
