Saving a theme stopped sticking: the choice was captured only by the fish `kitten` wrapper, so `kitty +kitten themes`, a keybinding or any non-fish shell wrote <appearance>-theme.auto.conf directly and the next regeneration overwrote it from theme-modes. The dark slot had already lost a pick that way -- dark-theme.auto.conf held #0d0f31 while canonical dark said #2b2c2e. Move the capture into apply-theme-mode.sh, which every path runs. It records a cksum of each generated file after the repair step; on the next run a file whose checksum differs was written by something else, so it becomes canonical for that appearance. With no state recorded yet nothing is adopted, so a first run cannot mistake a pinned mode's duplicated files for real choices. The fish wrapper keeps only its useful part: re-apply the mode and reload so the change shows at once. theme-modes/dark.conf is the recovered #0d0f31 (1984). Covered by a new case in tests/test_theme_mode.sh that writes the theme file with no shell involved.
38 lines
762 B
Plaintext
38 lines
762 B
Plaintext
# 1984 theme by Bertie Blackman, https://github.com/covertbert/iterm2-1984/
|
|
|
|
foreground #ffffff
|
|
background #0d0f31
|
|
selection_foreground #000000
|
|
selection_background #00d5eb
|
|
color0 #000000
|
|
color1 #ff16b0
|
|
color2 #b3f361
|
|
color3 #ffea16
|
|
color4 #46bdff
|
|
color5 #f806fa
|
|
color6 #59e1e3
|
|
color7 #feffff
|
|
color8 #000000
|
|
color9 #ff16b0
|
|
color10 #b3f361
|
|
color11 #ffea16
|
|
color12 #46bdff
|
|
color13 #f806fa
|
|
color14 #6be4e6
|
|
color15 #feffff
|
|
|
|
# URL styles
|
|
url_color #f806fa
|
|
url_style single
|
|
|
|
# Cursor styles
|
|
cursor #59e1e3
|
|
|
|
# START_AUTOGENERATED_TAB_STYLE
|
|
# Feel free to update these colors manually and remove these comments.
|
|
active_tab_foreground #eeeeee
|
|
active_tab_background #00d5eb
|
|
inactive_tab_foreground #ffffff
|
|
inactive_tab_background #0a0c27
|
|
# END_AUTOGENERATED_TAB_STYLE
|