dotfiles/private_dot_config/kitty/theme-modes/private_light.conf
Anton Volnuhin af52fcf7a3 tide: ask the terminal for its background instead of reading config files
Over ssh the light prompt segments came out lighter than the background
instead of darker. __tide_terminal_background_color learned the
background by reading <appearance>-theme.auto.conf, which on a remote
host belongs to *that* machine: devry pins theme-mode to dark, so
apply-theme-mode.sh writes the dark theme into all three slots there,
including light-theme.auto.conf. Asked for a light background it found
#212121, correctly refused it as contradicting the appearance, ran out of
files and left the caller on its plain-white fallback -- and a segment
derived from white sits above a #EBE8E4 background rather than below it.
Dark was unaffected because that path never recomputes the palette.

Ask the terminal instead, with an OSC 11 query: it is the one source that
describes the window this shell is actually displayed in, whichever
machine the shell runs on. The config files stay as the fallback, where
they are still right, and the static white behind them.

The query costs one 0.2s-bounded read per appearance change, restores the
terminal settings before it can fail, and steps aside under tmux and
screen, which need the query wrapped and each want it wrapped
differently.

Covered by a new live pty scenario that reproduces the ssh case exactly --
config files all dark, terminal reporting light -- which fails on the
previous ordering, plus unit tests for the reply parser and the fallback
chain.
2026-08-06 16:08:40 +03:00

60 lines
954 B
Plaintext

# vim:ft=kitty
## name: Kaolin Breeze
## author: Ogden Webb
## license: GPLv3
## blurb: Light Kaolin theme with soft colors
# The basic colors
foreground #383e3f
background #EBE8E4
selection_foreground #EBE8E4
selection_background #383e3f
# Cursor colors
cursor #383e3f
cursor_text_color #EBE8E4
# kitty window border colors
active_border_color #48a9a9
inactive_border_color #7D8468
# Tab bar colors
active_tab_background #383e3f
active_tab_foreground #C9C2BD
inactive_tab_background #7D8468
inactive_tab_foreground #EBE8E4
# black
color0 #383e3f
color8 #7D8468
# red
color1 #cd5c60
color9 #ef6787
# green
color2 #39855f
color10 #3e594e
# yellow
color3 #b87e3c
color11 #d1832e
# blue
color4 #2683b5
color12 #4F9CB8
# magenta
color5 #845A84
color13 #605DB3
# cyan
color6 #48a9a9
color14 #008b8b
# white
color7 #C9C2BD
color15 #60696b