Skip to content

style: let the stash indicator recede - #201

Merged
jiminu merged 1 commit into
mainfrom
style/dim-stash-indicator
Sep 13, 2026
Merged

jiminu merged 1 commit into
mainfrom
style/dim-stash-indicator

Conversation

@jiminu

@jiminu jiminu commented Sep 13, 2026

Copy link
Copy Markdown
Owner

white put the quietest thing in the segment at its brightest.

contrast on #1e1e1e
white #e5e5e5 — shipped in #200 13.23:1
ordinary prompt text #cccccc 10.38:1
bright-black #666666 2.90:1

A stash was drawing more attention than the text around it, which is backwards for something you retrieve eventually rather than act on now.

bright-black is already what this config means by background information — [cmd_duration], [username] and the hostname's @ all sit there. It stays well clear of the rest of the segment:

vs yellow      dE 98.9
vs red         dE 71.2
vs bright-red  dE 73.8
vs green       dE 64.6
vs bright-blue dE 56.0

The tradeoff, stated plainly

2.90:1 is just under the 3:1 contrast floor — the dimmest thing in the prompt. That is the intent here, and it is the same value [cmd_duration] has always used, but it is a floor this crosses knowingly rather than by accident.

If a stash turns out to be too easy to miss, dropping the style entirely ([*${count}]()) lands at #cccccc / 10.38:1 — recessive relative to the colored states without leaving the floor. That is also what powerlevel10k's meta actually resolves to.

Verification

Rendered from the real config:

\033[90m*1  \033[31m-  \033[32m»  \033[33m!1  \033[32m+1  \033[94m?1
   grey       red    green   yellow   green    bright-blue

A repository with only a stash renders \033[90m*1.

scripts/check.sh passes: Bash syntax, Zsh syntax, ShellCheck, shfmt, 353 tests.

White put the quietest thing in the segment at its brightest: #e5e5e5 reads
13.2:1 against the terminal ground, above the 10.4:1 of ordinary prompt text,
so a stash drew more attention than the states around it.

A stash is something tucked out of the way for a moment, and the indicator
should behave like what it marks: present, but not asking for anything. That is
already what this config means by bright-black -- cmd_duration, username and the
hostname's @ all sit there -- and it stays 56 to 99 from the other five in Lab,
so nothing collides.

It measures 2.9:1, under the 3:1 contrast floor. That floor is about text you
have to read; this is a mark you either catch or you do not, and not catching it
until you look for it is the right behaviour for something put away on purpose.
cmd_duration has been at the same value all along.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jiminu
jiminu force-pushed the style/dim-stash-indicator branch from f802250 to 0b0e5d3 Compare September 13, 2026 12:36
@jiminu
jiminu merged commit 454d542 into main Sep 13, 2026
@jiminu
jiminu deleted the style/dim-stash-indicator branch September 13, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant