Compare commits
2 changed files with 11 additions and 29 deletions
15
README.md
15
README.md
|
|
@ -84,19 +84,8 @@ toggling Light/Dark by hand — nothing in the chain knows why it changed.
|
|||
> [!NOTE]
|
||||
> A running nvim will not follow a live change: the docs are explicit that the
|
||||
> TUI sets `background` *on startup* if it can detect it. New instances are
|
||||
> fine — verified, a fresh nvim in light mode reports `background=light` — but
|
||||
> existing ones need `:set background=light` or a restart.
|
||||
|
||||
Verified in light mode: the status bar switches in the same second the hook
|
||||
fires, a fresh nvim detects `light`, and delta resolves its light default
|
||||
(`syntax-theme = GitHub`, against `Monokai Extended` on dark).
|
||||
|
||||
> [!TIP]
|
||||
> When adding these hooks to an *already running* tmux server, detach and
|
||||
> reattach. tmux enables the terminal’s theme-reporting mode when a client
|
||||
> attaches, so a client that predates the hooks never gets asked to report
|
||||
> changes — `#{client_theme}` still reads correctly, because that is answered by
|
||||
> a direct query, but no hook fires until the client reattaches.
|
||||
> fine; existing ones need `:set background=light` or a restart. delta is
|
||||
> per-invocation so should be fine, but that is untested here.
|
||||
|
||||
> [!NOTE]
|
||||
> This previously used [`dark-mode-notify`](https://github.com/bouk/dark-mode-notify)
|
||||
|
|
|
|||
|
|
@ -37,22 +37,15 @@ input=$(cat)
|
|||
mkdir -p /tmp/claude
|
||||
|
||||
# ===== Colors =====
|
||||
# Palette indices rather than RGB, so these resolve through the terminal's own
|
||||
# palette and follow the ghostty tangere-light/tangere-dark swap for free. No
|
||||
# appearance detection, so no cost per statusline render.
|
||||
#
|
||||
# The previous values were One Dark RGB: fine on dark (4.3-10.8:1) but 1.35-3.4:1
|
||||
# on a light background, with 'white' effectively invisible. These clear WCAG AA
|
||||
# in both modes (5.8-14.3:1 on dark, 6.3-20.6:1 on light).
|
||||
blue='\033[38;5;4m'
|
||||
orange='\033[38;5;3m'
|
||||
amber='\033[38;5;11m'
|
||||
green='\033[38;5;2m'
|
||||
cyan='\033[38;5;14m'
|
||||
red='\033[38;5;1m'
|
||||
yellow='\033[38;5;3m'
|
||||
white='\033[39m'
|
||||
magenta='\033[38;5;5m'
|
||||
blue='\033[38;2;97;175;239m'
|
||||
orange='\033[38;2;255;176;85m'
|
||||
amber='\033[38;2;229;192;123m'
|
||||
green='\033[38;2;80;200;120m'
|
||||
cyan='\033[38;2;86;182;194m'
|
||||
red='\033[38;2;235;87;87m'
|
||||
yellow='\033[38;2;230;200;0m'
|
||||
white='\033[38;2;220;220;220m'
|
||||
magenta='\033[38;2;198;120;221m'
|
||||
dim='\033[2m'
|
||||
reset='\033[0m'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue