Sync Kitty automatic themes from maxwell

This commit is contained in:
Anton Volnuhin 2026-07-27 22:44:57 +03:00
parent 92d4bbd7d5
commit a4eb8ae75d
4 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,31 @@
background #1c2836
foreground #ffffff
cursor #bbbbbb
selection_background #b4d5ff
color0 #000000
color8 #545454
color1 #f9555f
color9 #fa8b8e
color2 #20af89
color10 #34bb99
color3 #fdf029
color11 #ffff55
color4 #589cf5
color12 #589cf5
color5 #934d95
color13 #e75598
color6 #1e9ee6
color14 #3978bb
color7 #bbbbbb
color15 #ffffff
selection_foreground #1c2836
# START_AUTOGENERATED_TAB_STYLE
# Feel free to update these colors manually and remove these comments.
active_tab_foreground #1c2836
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #1c2836
# END_AUTOGENERATED_TAB_STYLE
macos_titlebar_color background

View File

@ -0,0 +1,28 @@
background #ffffff
foreground #4c4c4c
cursor #4c4c4c
selection_background #d6d6d6
color0 #000000
color8 #000000
color1 #c82828
color9 #c82828
color2 #708b00
color10 #708b00
color3 #e9b600
color11 #e9b600
color4 #4170ae
color12 #4170ae
color5 #8958a7
color13 #8958a7
color6 #3d999f
color14 #3d999f
color7 #fffefe
color15 #fffefe
selection_foreground #ffffff
active_tab_foreground #ffffff
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #ffffff
macos_titlebar_color background

View File

@ -0,0 +1,28 @@
background #1c2836
foreground #ffffff
cursor #bbbbbb
selection_background #b4d5ff
color0 #000000
color8 #545454
color1 #f9555f
color9 #fa8b8e
color2 #20af89
color10 #34bb99
color3 #fdf029
color11 #ffff55
color4 #589cf5
color12 #589cf5
color5 #934d95
color13 #e75598
color6 #1e9ee6
color14 #3978bb
color7 #bbbbbb
color15 #ffffff
selection_foreground #1c2836
active_tab_foreground #1c2836
active_tab_background #2e84e6
inactive_tab_foreground #2e84e6
inactive_tab_background #1c2836
macos_titlebar_color background

View File

@ -0,0 +1,27 @@
#!/bin/sh
set -eu
config_dir=${1:-"$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"}
for appearance in dark light no-preference; do
config_file="$config_dir/$appearance-theme.auto.conf"
if [ ! -f "$config_file" ]; then
echo "not ok - missing $appearance automatic Kitty theme" >&2
exit 1
fi
kitty +runpy '
from kitty.config import load_config
import sys
options = load_config(sys.argv[1])
if options.macos_titlebar_color != 1:
raise SystemExit(
f"{sys.argv[2]} automatic Kitty theme does not use its background "
"for the macOS titlebar"
)
' "$config_file" "$appearance"
done
echo "ok - automatic Kitty themes match their macOS titlebars"